summaryrefslogtreecommitdiff
path: root/lib/SlackBuild
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2019-08-03 13:50:51 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2019-08-03 14:01:44 +0200
commit5a861a7d5312487cfa33ab09e61e32d4b3d7e5c4 (patch)
tree98fd646a8cefd5dfb7f42edf104af0a6dd7a730d /lib/SlackBuild
parent1873d5ef7af762ed08b9425e970e9a59b6f0723f (diff)
downloadslackbuilder-5a861a7d5312487cfa33ab09e61e32d4b3d7e5c4.tar.gz
slackbuilder-5a861a7d5312487cfa33ab09e61e32d4b3d7e5c4.tar.bz2
Verify MD5 checksums. Replace tag, if requested.
MD5 checksums of the downloaded source files are verified, if the info file contains a checksum in its MD5SUM attribute. This latter can be overridden by specifying the md5sum attribute in the request file. In both cases, the attribute is an array of the same dimension as the DOWNLOAD (source_uri) attribute. The core.tag configuration statement supplies the tag to use in the created package. If the create archive name has the tag part, it will be replaced by the value of this setting. The core.pkg-suffixes configuration setting contains possible suffixes for the created package archives. It defaults to ".tgz .txz". * Makefile.PL: Update dependencies * lib/SlackBuild/Config.pm: New statements: core.tag and core.pkg-suffixes. * lib/SlackBuild/Request.pm (md5sum): New attribute. * lib/SlackBuilder.pm (file): Replace tag in the destination file name, if core.tag is specified. (run): Verify MD5 digests, if available.
Diffstat (limited to 'lib/SlackBuild')
-rw-r--r--lib/SlackBuild/Config.pm2
-rw-r--r--lib/SlackBuild/Request.pm5
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/SlackBuild/Config.pm b/lib/SlackBuild/Config.pm
index 2d9fbb2..38e2c81 100644
--- a/lib/SlackBuild/Config.pm
+++ b/lib/SlackBuild/Config.pm
@@ -43,6 +43,8 @@ __DATA__
image = STRING :mandatory
verbose = NUMBER :mandatory 0
logging = STRING :mandatory /etc/slackbuilder/logging.conf
+ tag = STRING
+ pkg-suffixes = STRING :array :mandatory .tgz .txz
[dir]
root = STRING :check=check_dir :mandatory /srv/slackbuild
tmp = STRING :mandatory tmp
diff --git a/lib/SlackBuild/Request.pm b/lib/SlackBuild/Request.pm
index c45f834..16d855e 100644
--- a/lib/SlackBuild/Request.pm
+++ b/lib/SlackBuild/Request.pm
@@ -116,6 +116,11 @@ my %attributes = (
info => 'DOWNLOAD',
strategy => 'keep'
},
+ md5sum => {
+ type => 'ARRAY',
+ info => 'MD5SUM',
+ strategy => 'keep'
+ },
prereq => {
info => 'REQUIRES',
type => 'ARRAY',

Return to:

Send suggestions and report system problems to the System administrator.