aboutsummaryrefslogtreecommitdiff
path: root/sboconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sboconfig')
-rwxr-xr-xsboconfig9
1 files changed, 8 insertions, 1 deletions
diff --git a/sboconfig b/sboconfig
index 6d6ccc7..b245d24 100755
--- a/sboconfig
+++ b/sboconfig
@@ -41,6 +41,8 @@ Config options (defaults shown):
DISTCLEAN: if TRUE, DO clean distfiles by default after building.
-j|--jobs FALSE:
JOBS: numeric -j setting to feed to make for multicore systems.
+ -g|--gpg-key D3076BC3E783EE747F09B8B70368EF579C7BA3B6:
+ GPG_KEY GPG key ID for verification.
-p|--pkg-dir FALSE:
PKG_DIR: set a directory to store packages in.
-s|--sbo-home /usr/sbo:
@@ -60,7 +62,7 @@ my %options;
GetOptions(\%options, 'help|h', 'version|v', 'list|l', 'noclean|c=s',
'distclean|d=s', 'jobs|j=s', 'pkg-dir|p=s', 'sbo-home|s=s',
- 'local-overrides|o=s', 'slackware-version|V=s', 'repo|r=s');
+ 'local-overrides|o=s', 'slackware-version|V=s', 'repo|r=s', 'gpg-key|g=s');
if ($options{help}) { show_usage(); exit 0 }
if ($options{version}) { show_version(); exit 0 }
@@ -69,6 +71,7 @@ my %valid_confs = (
noclean => 'NOCLEAN',
distclean => 'DISTCLEAN',
jobs => 'JOBS',
+ 'gpg-key' => 'GPG_KEY',
'pkg-dir' => 'PKG_DIR',
'sbo-home' => 'SBO_HOME',
'local-overrides' => 'LOCAL_OVERRIDES',
@@ -80,6 +83,7 @@ my %params = (
NOCLEAN => 'c|--noclean',
DISTCLEAN => 'd|--distclean',
JOBS => 'j|--jobs',
+ GPG_KEY => 'g|--gpg-key',
PKG_DIR => 'p|--pkg-dir',
SBO_HOME => 's|--sbo-home',
LOCAL_OVERRIDES => 'o|--local-overrides',
@@ -116,6 +120,9 @@ if (exists $changes{DISTCLEAN}) {
if (exists $changes{JOBS}) {
usage_error("$warn -j") unless $changes{JOBS} =~ /^(\d+|FALSE)$/;
}
+if (exists $changes{GPG_KEY}) {
+ usage_error("$warn -g") unless $changes{GPG_KEY} =~ /^([0-9A-F]+|FALSE)$/;
+}
if (exists $changes{PKG_DIR}) {
usage_error("$warn -p") unless $changes{PKG_DIR} =~ qr#^(/|FALSE$)#;
}