diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-10-08 19:23:31 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-10-09 13:31:06 +0200 |
commit | 46235d1ce09f003a4ef490dd171c1935c91bca47 (patch) | |
tree | 443b05bc0dceb66f40e73617020cb1ddcd9a0c58 | |
parent | d0aaad7d2b1d5aea4c38920d6c8f0b9bc1aed341 (diff) | |
download | current-46235d1ce09f003a4ef490dd171c1935c91bca47.tar.gz current-46235d1ce09f003a4ef490dd171c1935c91bca47.tar.xz |
Sat Oct 8 19:23:31 UTC 202220221008192331_15.0
patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txz: Upgraded.
Detect a possible overflow directly in the TLV parser.
This patch detects possible integer overflows immmediately when creating
the TI object.
Reported-by: ZDI-CAN-18927, ZDI-CAN-18928, ZDI-CAN-18929
(* Security fix *)
-rw-r--r-- | ChangeLog.rss | 20 | ||||
-rw-r--r-- | ChangeLog.txt | 8 | ||||
-rw-r--r-- | FILELIST.TXT | 74 | ||||
-rw-r--r-- | patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txt | 11 | ||||
-rwxr-xr-x | patches/source/libksba/libksba.SlackBuild | 126 | ||||
-rw-r--r-- | patches/source/libksba/libksba.url | 1 | ||||
-rw-r--r-- | patches/source/libksba/slack-desc | 19 |
7 files changed, 224 insertions, 35 deletions
diff --git a/ChangeLog.rss b/ChangeLog.rss index d8838ddfd..300b9af92 100644 --- a/ChangeLog.rss +++ b/ChangeLog.rss @@ -11,10 +11,26 @@ <description>Tracking Slackware development in git.</description> <language>en-us</language> <id xmlns="http://www.w3.org/2005/Atom">urn:uuid:c964f45e-6732-11e8-bbe5-107b4450212f</id> - <pubDate>Fri, 7 Oct 2022 20:32:18 GMT</pubDate> - <lastBuildDate>Sat, 8 Oct 2022 11:30:20 GMT</lastBuildDate> + <pubDate>Sat, 8 Oct 2022 19:23:31 GMT</pubDate> + <lastBuildDate>Sun, 9 Oct 2022 11:30:54 GMT</lastBuildDate> <generator>maintain_current_git.sh v 1.17</generator> <item> + <title>Sat, 8 Oct 2022 19:23:31 GMT</title> + <pubDate>Sat, 8 Oct 2022 19:23:31 GMT</pubDate> + <link>https://git.slackware.nl/current/tag/?h=20221008192331</link> + <guid isPermaLink="false">20221008192331</guid> + <description> + <![CDATA[<pre> +patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txz: Upgraded. + Detect a possible overflow directly in the TLV parser. + This patch detects possible integer overflows immmediately when creating + the TI object. + Reported-by: ZDI-CAN-18927, ZDI-CAN-18928, ZDI-CAN-18929 + (* Security fix *) + </pre>]]> + </description> + </item> + <item> <title>Fri, 7 Oct 2022 20:32:18 GMT</title> <pubDate>Fri, 7 Oct 2022 20:32:18 GMT</pubDate> <link>https://git.slackware.nl/current/tag/?h=20221007203218</link> diff --git a/ChangeLog.txt b/ChangeLog.txt index 184b35f72..13c050bc2 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,11 @@ +Sat Oct 8 19:23:31 UTC 2022 +patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txz: Upgraded. + Detect a possible overflow directly in the TLV parser. + This patch detects possible integer overflows immmediately when creating + the TI object. + Reported-by: ZDI-CAN-18927, ZDI-CAN-18928, ZDI-CAN-18929 + (* Security fix *) ++--------------------------+ Fri Oct 7 20:32:18 UTC 2022 patches/packages/mozilla-thunderbird-102.3.2-x86_64-1_slack15.0.txz: Upgraded. This is a bugfix release. diff --git a/FILELIST.TXT b/FILELIST.TXT index ff549b5ae..20724ffab 100644 --- a/FILELIST.TXT +++ b/FILELIST.TXT @@ -1,20 +1,20 @@ -Fri Oct 7 20:35:38 UTC 2022 +Sat Oct 8 19:27:09 UTC 2022 Here is the file list for this directory. If you are using a mirror site and find missing or extra files in the disk subdirectories, please have the archive administrator refresh the mirror. -drwxr-xr-x 12 root root 4096 2022-10-07 20:32 . +drwxr-xr-x 12 root root 4096 2022-10-08 19:23 . -rw-r--r-- 1 root root 5767 2022-02-02 22:44 ./ANNOUNCE.15.0 -rw-r--r-- 1 root root 16609 2022-03-30 19:03 ./CHANGES_AND_HINTS.TXT --rw-r--r-- 1 root root 1154716 2022-10-05 19:01 ./CHECKSUMS.md5 --rw-r--r-- 1 root root 163 2022-10-05 19:01 ./CHECKSUMS.md5.asc +-rw-r--r-- 1 root root 1154716 2022-10-07 20:35 ./CHECKSUMS.md5 +-rw-r--r-- 1 root root 163 2022-10-07 20:35 ./CHECKSUMS.md5.asc -rw-r--r-- 1 root root 17976 1994-06-10 02:28 ./COPYING -rw-r--r-- 1 root root 35147 2007-06-30 04:21 ./COPYING3 -rw-r--r-- 1 root root 19573 2016-06-23 20:08 ./COPYRIGHT.TXT -rw-r--r-- 1 root root 616 2006-10-02 04:37 ./CRYPTO_NOTICE.TXT --rw-r--r-- 1 root root 1938334 2022-10-07 20:32 ./ChangeLog.txt +-rw-r--r-- 1 root root 1938687 2022-10-08 19:23 ./ChangeLog.txt drwxr-xr-x 3 root root 4096 2013-03-20 22:17 ./EFI drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT -rw-r--r-- 1 root root 1187840 2021-06-15 19:16 ./EFI/BOOT/bootx64.efi @@ -25,7 +25,7 @@ drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT -rwxr-xr-x 1 root root 2504 2019-07-05 18:54 ./EFI/BOOT/make-grub.sh -rw-r--r-- 1 root root 10722 2013-09-21 19:02 ./EFI/BOOT/osdetect.cfg -rw-r--r-- 1 root root 1273 2013-08-12 21:08 ./EFI/BOOT/tools.cfg --rw-r--r-- 1 root root 1507277 2022-10-05 19:01 ./FILELIST.TXT +-rw-r--r-- 1 root root 1507277 2022-10-07 20:35 ./FILELIST.TXT -rw-r--r-- 1 root root 1572 2012-08-29 18:27 ./GPG-KEY -rw-r--r-- 1 root root 864745 2022-02-02 08:25 ./PACKAGES.TXT -rw-r--r-- 1 root root 8034 2022-02-02 03:36 ./README.TXT @@ -738,13 +738,13 @@ drwxr-xr-x 2 root root 4096 2008-05-07 05:21 ./pasture/source/php/pear -rwxr-xr-x 1 root root 9448 2018-05-16 22:38 ./pasture/source/php/php.SlackBuild -rw-r--r-- 1 root root 775 2017-07-07 19:25 ./pasture/source/php/php.ini-development.diff.gz -rw-r--r-- 1 root root 830 2005-12-09 05:18 ./pasture/source/php/slack-desc -drwxr-xr-x 4 root root 4096 2022-10-07 20:35 ./patches --rw-r--r-- 1 root root 50367 2022-10-07 20:35 ./patches/CHECKSUMS.md5 --rw-r--r-- 1 root root 163 2022-10-07 20:35 ./patches/CHECKSUMS.md5.asc --rw-r--r-- 1 root root 67253 2022-10-07 20:35 ./patches/FILE_LIST --rw-r--r-- 1 root root 11649490 2022-10-07 20:35 ./patches/MANIFEST.bz2 --rw-r--r-- 1 root root 37322 2022-10-07 20:35 ./patches/PACKAGES.TXT -drwxr-xr-x 3 root root 16384 2022-10-07 20:35 ./patches/packages +drwxr-xr-x 4 root root 4096 2022-10-08 19:27 ./patches +-rw-r--r-- 1 root root 50884 2022-10-08 19:27 ./patches/CHECKSUMS.md5 +-rw-r--r-- 1 root root 163 2022-10-08 19:27 ./patches/CHECKSUMS.md5.asc +-rw-r--r-- 1 root root 67957 2022-10-08 19:27 ./patches/FILE_LIST +-rw-r--r-- 1 root root 11643073 2022-10-08 19:27 ./patches/MANIFEST.bz2 +-rw-r--r-- 1 root root 37791 2022-10-08 19:27 ./patches/PACKAGES.TXT +drwxr-xr-x 3 root root 16384 2022-10-08 19:27 ./patches/packages -rw-r--r-- 1 root root 327 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txt -rw-r--r-- 1 root root 10716 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txz -rw-r--r-- 1 root root 163 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txz.asc @@ -811,6 +811,9 @@ drwxr-xr-x 3 root root 16384 2022-10-07 20:35 ./patches/packages -rw-r--r-- 1 root root 402 2022-04-08 18:31 ./patches/packages/libarchive-3.6.1-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 514852 2022-04-08 18:31 ./patches/packages/libarchive-3.6.1-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-04-08 18:31 ./patches/packages/libarchive-3.6.1-x86_64-1_slack15.0.txz.asc +-rw-r--r-- 1 root root 332 2022-10-08 18:41 ./patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txt +-rw-r--r-- 1 root root 169288 2022-10-08 18:41 ./patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txz +-rw-r--r-- 1 root root 163 2022-10-08 18:41 ./patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txz.asc -rw-r--r-- 1 root root 518 2022-05-02 18:01 ./patches/packages/libxml2-2.9.14-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 1374356 2022-05-02 18:01 ./patches/packages/libxml2-2.9.14-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-05-02 18:01 ./patches/packages/libxml2-2.9.14-x86_64-1_slack15.0.txz.asc @@ -920,7 +923,7 @@ drwxr-xr-x 2 root root 4096 2022-08-26 04:06 ./patches/packages/linux-5.15 -rw-r--r-- 1 root root 388 2022-08-09 17:48 ./patches/packages/zlib-1.2.12-x86_64-2_slack15.0.txt -rw-r--r-- 1 root root 105196 2022-08-09 17:48 ./patches/packages/zlib-1.2.12-x86_64-2_slack15.0.txz -rw-r--r-- 1 root root 163 2022-08-09 17:48 ./patches/packages/zlib-1.2.12-x86_64-2_slack15.0.txz.asc -drwxr-xr-x 51 root root 4096 2022-10-07 20:22 ./patches/source +drwxr-xr-x 52 root root 4096 2022-10-08 19:06 ./patches/source drwxr-xr-x 2 root root 4096 2022-01-16 05:07 ./patches/source/aaa_base -rw-r--r-- 1 root root 11041 2022-02-15 04:49 ./patches/source/aaa_base/_aaa_base.tar.gz -rwxr-xr-x 1 root root 3894 2022-02-15 05:07 ./patches/source/aaa_base/aaa_base.SlackBuild @@ -1102,6 +1105,11 @@ drwxr-xr-x 2 root root 4096 2022-04-08 18:24 ./patches/source/libarchive -rwxr-xr-x 1 root root 3676 2022-04-08 18:29 ./patches/source/libarchive/libarchive.SlackBuild -rw-r--r-- 1 root root 41 2019-06-17 02:47 ./patches/source/libarchive/libarchive.url -rw-r--r-- 1 root root 856 2018-02-27 06:12 ./patches/source/libarchive/slack-desc +drwxr-xr-x 2 root root 4096 2022-10-08 18:27 ./patches/source/libksba +-rw-r--r-- 1 root root 568950 2022-10-07 08:13 ./patches/source/libksba/libksba-1.6.2.tar.lz +-rwxr-xr-x 1 root root 3977 2022-10-08 18:40 ./patches/source/libksba/libksba.SlackBuild +-rw-r--r-- 1 root root 36 2020-05-24 18:04 ./patches/source/libksba/libksba.url +-rw-r--r-- 1 root root 787 2018-02-27 06:13 ./patches/source/libksba/slack-desc drwxr-xr-x 2 root root 4096 2022-05-02 17:57 ./patches/source/libxml2 -rw-r--r-- 1 root root 3022896 2022-05-02 17:59 ./patches/source/libxml2/libxml2-2.9.14.tar.xz -rwxr-xr-x 1 root root 4926 2022-03-01 01:04 ./patches/source/libxml2/libxml2.SlackBuild @@ -2718,13 +2726,13 @@ drwxr-xr-x 2 root root 69632 2022-02-01 08:29 ./slackware64/kde -rw-r--r-- 1 root root 71816 2022-01-08 22:40 ./slackware64/kde/kdewebkit-5.90.0-x86_64-1.txz -rw-r--r-- 1 root root 163 2022-01-08 22:40 ./slackware64/kde/kdewebkit-5.90.0-x86_64-1.txz.asc -rw-r--r-- 1 root root 315 2022-01-06 22:03 ./slackware64/kde/kdf-21.12.1-x86_64-1.txt --rw-r--r-- 1 root root 603020 2022-01-06 22:03 ./slackware64/kde/kdf-21.12.1-x86_64-1.txz --rw-r--r-- 1 root root 163 2022-01-06 22:03 ./slackware64/kde/kdf-21.12.1-x86_64-1.txz.asc --rw-r--r-- 1 root root 272 2021-09-30 20:13 ./slackware64/kde/kdiagram-2.8.0-x86_64-4.txt --rw-r--r-- 1 root root 564724 2021-09-30 20:13 ./slackware64/kde/kdiagram-2.8.0-x86_64-4.txz --rw-r--r-- 1 root root 163 2021-09-30 20:13 ./slackware64/kde/kdiagram-2.8.0-x86_64-4.txz.asc --rw-r--r-- 1 root root 192 2022-01-06 22:00 ./slackware64/kde/kdialog-21.12.1-x86_64-1.txt --rw-r--r-- 1 root root 121204 2022-01-06 22:00 ./slackware64/kde/kdialog-21.12.1-x86_64-1.txz +-rw-r--r-- 1 root root 603020 2022-01-06 22:03 ./slackware64/kde/kdf-21.12.1-x86_64-1.txz +-rw-r--r-- 1 root root 163 2022-01-06 22:03 ./slackware64/kde/kdf-21.12.1-x86_64-1.txz.asc +-rw-r--r-- 1 root root 272 2021-09-30 20:13 ./slackware64/kde/kdiagram-2.8.0-x86_64-4.txt +-rw-r--r-- 1 root root 564724 2021-09-30 20:13 ./slackware64/kde/kdiagram-2.8.0-x86_64-4.txz +-rw-r--r-- 1 root root 163 2021-09-30 20:13 ./slackware64/kde/kdiagram-2.8.0-x86_64-4.txz.asc +-rw-r--r-- 1 root root 192 2022-01-06 22:00 ./slackware64/kde/kdialog-21.12.1-x86_64-1.txt +-rw-r--r-- 1 root root 121204 2022-01-06 22:00 ./slackware64/kde/kdialog-21.12.1-x86_64-1.txz -rw-r--r-- 1 root root 163 2022-01-06 22:00 ./slackware64/kde/kdialog-21.12.1-x86_64-1.txz.asc -rw-r--r-- 1 root root 269 2022-01-06 22:30 ./slackware64/kde/kdiamond-21.12.1-x86_64-1.txt -rw-r--r-- 1 root root 4781820 2022-01-06 22:30 ./slackware64/kde/kdiamond-21.12.1-x86_64-1.txz @@ -5466,13 +5474,13 @@ drwxr-xr-x 2 root root 65536 2022-02-01 04:47 ./slackware64/x -rw-r--r-- 1 root root 27472 2021-02-13 13:08 ./slackware64/x/libXxf86vm-1.1.4-x86_64-5.txz -rw-r--r-- 1 root root 163 2021-02-13 13:08 ./slackware64/x/libXxf86vm-1.1.4-x86_64-5.txz.asc -rw-r--r-- 1 root root 320 2021-02-13 13:08 ./slackware64/x/libdmx-1.1.4-x86_64-3.txt --rw-r--r-- 1 root root 45212 2021-02-13 13:08 ./slackware64/x/libdmx-1.1.4-x86_64-3.txz --rw-r--r-- 1 root root 163 2021-02-13 13:08 ./slackware64/x/libdmx-1.1.4-x86_64-3.txz.asc --rw-r--r-- 1 root root 259 2022-01-03 19:53 ./slackware64/x/libdrm-2.4.109-x86_64-1.txt --rw-r--r-- 1 root root 258996 2022-01-03 19:53 ./slackware64/x/libdrm-2.4.109-x86_64-1.txz --rw-r--r-- 1 root root 163 2022-01-03 19:53 ./slackware64/x/libdrm-2.4.109-x86_64-1.txz.asc --rw-r--r-- 1 root root 277 2021-08-15 17:47 ./slackware64/x/libepoxy-1.5.9-x86_64-1.txt --rw-r--r-- 1 root root 301548 2021-08-15 17:47 ./slackware64/x/libepoxy-1.5.9-x86_64-1.txz +-rw-r--r-- 1 root root 45212 2021-02-13 13:08 ./slackware64/x/libdmx-1.1.4-x86_64-3.txz +-rw-r--r-- 1 root root 163 2021-02-13 13:08 ./slackware64/x/libdmx-1.1.4-x86_64-3.txz.asc +-rw-r--r-- 1 root root 259 2022-01-03 19:53 ./slackware64/x/libdrm-2.4.109-x86_64-1.txt +-rw-r--r-- 1 root root 258996 2022-01-03 19:53 ./slackware64/x/libdrm-2.4.109-x86_64-1.txz +-rw-r--r-- 1 root root 163 2022-01-03 19:53 ./slackware64/x/libdrm-2.4.109-x86_64-1.txz.asc +-rw-r--r-- 1 root root 277 2021-08-15 17:47 ./slackware64/x/libepoxy-1.5.9-x86_64-1.txt +-rw-r--r-- 1 root root 301548 2021-08-15 17:47 ./slackware64/x/libepoxy-1.5.9-x86_64-1.txz -rw-r--r-- 1 root root 163 2021-08-15 17:47 ./slackware64/x/libepoxy-1.5.9-x86_64-1.txz.asc -rw-r--r-- 1 root root 599 2021-10-01 02:40 ./slackware64/x/liberation-fonts-ttf-2.1.5-noarch-1.txt -rw-r--r-- 1 root root 1473688 2021-10-01 02:40 ./slackware64/x/liberation-fonts-ttf-2.1.5-noarch-1.txz @@ -15088,11 +15096,11 @@ drwxr-xr-x 2 root root 4096 2022-01-25 05:57 ./source/x/x11/src/driver -rw-r--r-- 1 root root 265952 2012-07-17 06:31 ./source/x/x11/src/driver/xf86-video-tga-1.2.2.tar.xz -rw-r--r-- 1 root root 310436 2017-01-17 22:47 ./source/x/x11/src/driver/xf86-video-trident-1.3.8.tar.xz -rw-r--r-- 1 root root 277748 2012-07-17 06:33 ./source/x/x11/src/driver/xf86-video-tseng-1.2.5.tar.xz --rw-r--r-- 1 root root 274284 2018-08-14 19:04 ./source/x/x11/src/driver/xf86-video-v4l-0.3.0.tar.xz --rw-r--r-- 1 root root 296884 2017-11-29 08:54 ./source/x/x11/src/driver/xf86-video-vboxvideo-1.0.0.tar.xz --rw-r--r-- 1 root root 270212 2020-09-10 22:04 ./source/x/x11/src/driver/xf86-video-vesa-2.5.0.tar.xz --rw-r--r-- 1 root root 407744 2018-05-17 07:43 ./source/x/x11/src/driver/xf86-video-vmware-13.3.0.tar.xz --rw-r--r-- 1 root root 252404 2012-07-17 06:34 ./source/x/x11/src/driver/xf86-video-voodoo-1.2.5.tar.xz +-rw-r--r-- 1 root root 274284 2018-08-14 19:04 ./source/x/x11/src/driver/xf86-video-v4l-0.3.0.tar.xz +-rw-r--r-- 1 root root 296884 2017-11-29 08:54 ./source/x/x11/src/driver/xf86-video-vboxvideo-1.0.0.tar.xz +-rw-r--r-- 1 root root 270212 2020-09-10 22:04 ./source/x/x11/src/driver/xf86-video-vesa-2.5.0.tar.xz +-rw-r--r-- 1 root root 407744 2018-05-17 07:43 ./source/x/x11/src/driver/xf86-video-vmware-13.3.0.tar.xz +-rw-r--r-- 1 root root 252404 2012-07-17 06:34 ./source/x/x11/src/driver/xf86-video-voodoo-1.2.5.tar.xz drwxr-xr-x 2 root root 4096 2020-08-09 17:46 ./source/x/x11/src/font -rw-r--r-- 1 root root 319344 2019-06-17 16:45 ./source/x/x11/src/font/encodings-1.0.5.tar.xz -rw-r--r-- 1 root root 945192 2010-11-14 23:54 ./source/x/x11/src/font/font-adobe-100dpi-1.0.3.tar.xz diff --git a/patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txt b/patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txt new file mode 100644 index 000000000..d6bcdaec9 --- /dev/null +++ b/patches/packages/libksba-1.6.2-x86_64-1_slack15.0.txt @@ -0,0 +1,11 @@ +libksba: libksba (X.509 & CMS library for S/MIME and TLS) +libksba: +libksba: KSBA (pronounced Kasbah) is a library to make X.509 certificates as +libksba: well as the CMS easily accessible by other applications. +libksba: Both specifications are building blocks of S/MIME and TLS. +libksba: +libksba: +libksba: +libksba: +libksba: +libksba: diff --git a/patches/source/libksba/libksba.SlackBuild b/patches/source/libksba/libksba.SlackBuild new file mode 100755 index 000000000..74bfdc8b4 --- /dev/null +++ b/patches/source/libksba/libksba.SlackBuild @@ -0,0 +1,126 @@ +#!/bin/bash + +# Copyright 2006,2009, 2014 Robby Workman, Northport, AL, USA +# Copyright 2007, 2008, 2009, 2010, 2018, 2022 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SCRIPT IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SCRIPT, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PKGNAM=libksba +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +BUILD=${BUILD:-1_slack15.0} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i586 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1 +cd $PKGNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \+ -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \+ + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --infodir=/usr/info \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --enable-shared=yes \ + --enable-static=no \ + --build=$ARCH-slackware-linux || exit 1 + +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG || exit 1 + +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +find $PKG/usr/man -type f -exec gzip -9 {} \+ + +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/* + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS COPYING* INSTALL NEWS README* THANKS TODO VERSION \ + $PKG/usr/doc/$PKGNAM-$VERSION + +# If there's a ChangeLog, installing at least part of the recent history +# is useful, but don't let it get totally out of control: +if [ -r ChangeLog ]; then + DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION) + cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/patches/source/libksba/libksba.url b/patches/source/libksba/libksba.url new file mode 100644 index 000000000..d8a1f41ac --- /dev/null +++ b/patches/source/libksba/libksba.url @@ -0,0 +1 @@ +ftp://ftp.gnupg.org:/gcrypt/libksba diff --git a/patches/source/libksba/slack-desc b/patches/source/libksba/slack-desc new file mode 100644 index 000000000..5e4b91d1e --- /dev/null +++ b/patches/source/libksba/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +libksba: libksba (X.509 & CMS library for S/MIME and TLS) +libksba: +libksba: KSBA (pronounced Kasbah) is a library to make X.509 certificates as +libksba: well as the CMS easily accessible by other applications. +libksba: Both specifications are building blocks of S/MIME and TLS. +libksba: +libksba: +libksba: +libksba: +libksba: +libksba: |