2018-05-28 21:12:29 +02:00
|
|
|
#!/bin/bash
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2023-02-01 06:29:53 +01:00
|
|
|
# Copyright 2009, 2010, 2011, 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, MN, USA
|
2009-08-26 17:00:38 +02:00
|
|
|
# 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 SOFTWARE 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 SOFTWARE, EVEN IF
|
|
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
# originally by: David Cantrell <david@slackware.com>
|
|
|
|
# maintained by: <volkerdi@slackware.com>
|
|
|
|
|
2018-05-28 21:12:29 +02:00
|
|
|
cd $(dirname $0) ; CWD=$(pwd)
|
|
|
|
|
|
|
|
PKGNAM=perl
|
2022-06-03 18:51:58 +02:00
|
|
|
VERSION=5.36.0
|
Wed Mar 8 20:26:54 UTC 2023
Hey folks, just some more updates on the road to an eventual beta. :-)
At this point nothing remains linked with openssl-1.1.1 except for python2 and
modules, and vsftpd. I think nobody cares about trying to force python2 to use
openssl3... it's EOL but still a zombie, unfortunately. I have seen some
patches for vsftpd and intend to take a look at them. We've bumped PHP to 8.2
and just gone ahead and killed 8.0 and 8.1. Like 7.4, 8.0 is not compatible
with openssl3 and it doesn't seem worthwhile to try to patch it. And with 8.2
already out for several revisions, 8.1 does not seem particularly valuable.
If you make use of PHP you should be used to it being a moving target by now.
Enjoy, and let me know if anything isn't working right. Cheers!
a/aaa_libraries-15.1-x86_64-19.txz: Rebuilt.
Recompiled against openssl-3.0.8: libcups.so.2, libcurl.so.4.8.0,
libldap.so.2.0.200, libssh2.so.1.0.1.
a/cryptsetup-2.6.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
a/kmod-30-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
a/openssl-solibs-3.0.8-x86_64-1.txz: Upgraded.
Shared library .so-version bump.
a/openssl11-solibs-1.1.1t-x86_64-1.txz: Added.
ap/cups-2.4.2-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
ap/hplip-3.20.5-x86_64-7.txz: Rebuilt.
Recompiled against openssl-3.0.8.
ap/lxc-4.0.12-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
ap/mariadb-10.6.12-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
ap/qpdf-11.3.0-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
ap/sudo-1.9.13p3-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/cargo-vendor-filterer-0.5.7-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/cvs-1.11.23-x86_64-9.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/git-2.39.2-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/perl-5.36.0-x86_64-5.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/python3-3.9.16-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/ruby-3.2.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/rust-1.66.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
d/scons-4.5.1-x86_64-1.txz: Upgraded.
kde/falkon-22.12.3-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
kde/kitinerary-22.12.3-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/M2Crypto-0.38.0-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/SDL2-2.26.4-x86_64-1.txz: Upgraded.
l/gst-plugins-bad-free-1.22.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/libarchive-3.6.2-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/libevent-2.1.12-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/libimobiledevice-20211124_2c6121d-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/libssh2-1.10.0-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/libvncserver-0.9.14-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/mlt-7.14.0-x86_64-1.txz: Upgraded.
l/neon-0.32.5-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/nodejs-19.7.0-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/opusfile-0.12-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/pipewire-0.3.66-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/pulseaudio-16.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/pycurl-7.44.1-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/qca-2.3.5-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
l/qt5-5.15.8_20230304_d8b881f0-x86_64-1.txz: Upgraded.
Compiled against openssl-3.0.8.
l/serf-1.3.9-x86_64-8.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/alpine-2.26-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/bind-9.18.12-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/curl-7.88.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/cyrus-sasl-2.1.28-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/dovecot-2.3.20-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/epic5-2.1.12-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/fetchmail-6.4.37-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/htdig-3.2.0b6-x86_64-9.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/httpd-2.4.56-x86_64-1.txz: Upgraded.
This update fixes two security issues:
HTTP Response Smuggling vulnerability via mod_proxy_uwsgi.
HTTP Request Smuggling attack via mod_rewrite and mod_proxy.
For more information, see:
https://downloads.apache.org/httpd/CHANGES_2.4.56
https://www.cve.org/CVERecord?id=CVE-2023-27522
https://www.cve.org/CVERecord?id=CVE-2023-25690
(* Security fix *)
NOTE: This package is compiled against openssl-3.0.8.
n/irssi-1.4.3-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/krb5-1.20.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/lftp-4.9.2-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/links-2.28-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/lynx-2.9.0dev.10-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/mutt-2.2.9-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/net-snmp-5.9.3-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/netatalk-3.1.14-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/nmap-7.93-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/ntp-4.2.8p15-x86_64-12.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/openldap-2.6.4-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/openssh-9.2p1-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/openssl-3.0.8-x86_64-1.txz: Upgraded.
Shared library .so-version bump.
n/openssl11-1.1.1t-x86_64-1.txz: Added.
n/openvpn-2.6.0-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/php-8.2.3-x86_64-1.txz: Upgraded.
Compiled against openssl-3.0.8.
n/pidentd-3.0.19-x86_64-7.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/popa3d-1.0.3-x86_64-7.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/postfix-3.7.4-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/ppp-2.4.9-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/proftpd-1.3.8-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/rsync-3.2.7-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/s-nail-14.9.24-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/samba-4.18.0-x86_64-1.txz: Upgraded.
Build with the bundled Heimdal instead of the system MIT Kerberos.
Thanks again to rpenny.
n/slrn-1.0.3a-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/snownews-1.9-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/socat-1.7.4.4-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/stunnel-5.69-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/tcpdump-4.99.3-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/wget-1.21.3-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
n/wpa_supplicant-2.10-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
xap/freerdp-2.10.0-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
xap/gftp-2.9.1b-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
xap/gkrellm-2.3.11-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
xap/hexchat-2.16.1-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
xap/sane-1.0.32-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
xap/x3270-4.0ga14-x86_64-3.txz: Rebuilt.
Recompiled against openssl-3.0.8.
xap/xine-lib-1.2.13-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
y/bsd-games-2.17-x86_64-4.txz: Rebuilt.
Recompiled against openssl-3.0.8.
extra/php80/php80-8.0.28-x86_64-1.txz: Removed.
extra/php81/php81-8.1.16-x86_64-1.txz: Removed.
extra/rust-for-mozilla/rust-1.60.0-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
extra/sendmail/sendmail-8.17.1-x86_64-7.txz: Rebuilt.
Recompiled against openssl-3.0.8.
extra/sendmail/sendmail-cf-8.17.1-noarch-7.txz: Rebuilt.
testing/packages/rust-1.67.1-x86_64-2.txz: Rebuilt.
Recompiled against openssl-3.0.8.
testing/packages/samba-4.17.5-x86_64-2.txz: Removed.
2023-03-08 21:26:54 +01:00
|
|
|
BUILD=${BUILD:-5}
|
2010-05-19 10:58:23 +02:00
|
|
|
|
2011-04-25 15:37:00 +02:00
|
|
|
# Automatically determine the architecture we're building on:
|
|
|
|
if [ -z "$ARCH" ]; then
|
|
|
|
case "$( uname -m )" in
|
2016-06-30 22:26:57 +02:00
|
|
|
i?86) export ARCH=i586 ;;
|
2011-04-25 15:37:00 +02:00
|
|
|
arm*) export ARCH=arm ;;
|
|
|
|
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
|
|
*) export ARCH=$( uname -m ) ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2018-05-28 21:12:29 +02:00
|
|
|
# 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
|
|
|
|
|
2018-09-21 20:51:07 +02:00
|
|
|
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
|
2018-05-28 21:12:29 +02:00
|
|
|
|
|
|
|
# Set to "yes" to run tests:
|
|
|
|
MAKETEST=${MAKETEST:-no}
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
TMP=${TMP:-/tmp}
|
|
|
|
PKG=$TMP/package-perl
|
|
|
|
|
|
|
|
# Additional required modules:
|
2018-06-05 07:24:22 +02:00
|
|
|
#
|
2018-12-01 04:16:35 +01:00
|
|
|
# https://metacpan.org/release/Devel-CheckLib
|
2022-06-03 18:51:58 +02:00
|
|
|
DEVELCHECKLIB=1.16
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/DBD-mysql
|
2019-04-19 22:26:12 +02:00
|
|
|
DBDMYSQL=4.050
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/DBI
|
Sun Mar 15 19:50:24 UTC 2020
a/aaa_elflibs-15.0-x86_64-22.txz: Rebuilt.
Upgraded: libcap.so.2.33, libncurses.so.6.2, libncursesw.so.6.2,
libpcre.so.1.2.12, libpcreposix.so.0.0.7, libtinfo.so.6.2, libform.so.6.2,
libformw.so.6.2, libglib-2.0.so.0.6400.1, libgmodule-2.0.so.0.6400.1,
libgobject-2.0.so.0.6400.1, libgthread-2.0.so.0.6400.1,
liblber-2.4.so.2.10.12, libldap-2.4.so.2.10.12, libmenu.so.6.2,
libmenuw.so.6.2, libpanel.so.6.2, libpanelw.so.6.2, libstdc++.so.6.0.28.
a/xfsprogs-5.5.0-x86_64-1.txz: Upgraded.
ap/sudo-1.8.31p1-x86_64-1.txz: Upgraded.
This is a bugfix release:
Sudo once again ignores a failure to restore the RLIMIT_CORE resource limit,
as it did prior to version 1.8.29. Linux containers don't allow RLIMIT_CORE
to be set back to RLIM_INFINITY if we set the limit to zero, even for root,
which resulted in a warning from sudo.
d/help2man-1.47.13-x86_64-1.txz: Upgraded.
d/perl-5.30.2-x86_64-1.txz: Upgraded.
Also upgraded to Devel-CheckLib-1.14, DBI-1.643, and IO-Socket-SSL-2.067.
n/ModemManager-1.12.8-x86_64-1.txz: Upgraded.
n/bluez-5.54-x86_64-1.txz: Upgraded.
x/vulkan-sdk-1.2.131.2-x86_64-1.txz: Upgraded.
2020-03-15 20:50:24 +01:00
|
|
|
DBI=1.643
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/gettext
|
2016-06-30 22:26:57 +02:00
|
|
|
GETTEXT=1.07
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/TermReadKey
|
2019-04-19 22:26:12 +02:00
|
|
|
TERMREADKEY=2.38
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/URI
|
2023-02-01 06:29:53 +01:00
|
|
|
URI=5.17
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/XML-Parser
|
2019-11-12 04:35:35 +01:00
|
|
|
XMLPARSER=2.46
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/XML-Simple
|
2018-05-28 21:12:29 +02:00
|
|
|
XMLSIMPLE=2.25
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/Authen-SASL
|
2018-05-28 21:12:29 +02:00
|
|
|
AUTHENSASL=2.16
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/MIME-Base64
|
2020-11-12 22:20:07 +01:00
|
|
|
MIMEBASE64=3.16
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/IO-Socket-SSL
|
2023-02-01 06:29:53 +01:00
|
|
|
IOSOCKETSSL=2.081
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/Net-SSLeay
|
2022-03-14 02:55:37 +01:00
|
|
|
NETSSLEAY=1.92
|
2018-06-05 07:24:22 +02:00
|
|
|
# https://metacpan.org/release/libnet
|
2022-06-03 18:51:58 +02:00
|
|
|
LIBNET=3.14
|
2020-03-04 02:39:54 +01:00
|
|
|
# https://metacpan.org/release/Parse-Yapp
|
|
|
|
PARSEYAPP=1.21
|
2020-11-12 22:20:07 +01:00
|
|
|
# https://metacpan.org/release/Path-Tiny (freecell-solver)
|
2023-02-01 06:29:53 +01:00
|
|
|
PATHTINY=0.144
|
2020-11-12 22:20:07 +01:00
|
|
|
# https://metacpan.org/release/Template-Toolkit (freecell-solver)
|
2023-02-01 06:29:53 +01:00
|
|
|
TEMPLATETOOLKIT=3.101
|
2020-11-12 22:20:07 +01:00
|
|
|
# https://metacpan.org/release/Moo (freecell-solver)
|
2023-02-01 06:29:53 +01:00
|
|
|
MOO=2.005005
|
2020-11-12 22:20:07 +01:00
|
|
|
# https://metacpan.org/pod/Module::Runtime (freecell-solver)
|
|
|
|
MODULERUNTIME=0.016
|
|
|
|
# https://metacpan.org/pod/Sub::Quote (freecell-solver)
|
2023-02-01 06:29:53 +01:00
|
|
|
SUBQUOTE=2.006008
|
|
|
|
# https://metacpan.org/pod/JSON (samba with Heimdal)
|
|
|
|
JSON=4.10
|
2016-06-30 22:26:57 +02:00
|
|
|
|
|
|
|
if [ "$ARCH" = "i486" ]; then
|
|
|
|
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
|
2009-08-26 17:00:38 +02:00
|
|
|
LIBDIRSUFFIX=""
|
2016-06-30 22:26:57 +02:00
|
|
|
elif [ "$ARCH" = "i586" ]; then
|
|
|
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
2009-08-26 17:00:38 +02:00
|
|
|
LIBDIRSUFFIX=""
|
|
|
|
elif [ "$ARCH" = "s390" ]; then
|
|
|
|
SLKCFLAGS="-O2"
|
|
|
|
LIBDIRSUFFIX=""
|
|
|
|
elif [ "$ARCH" = "x86_64" ]; then
|
|
|
|
SLKCFLAGS="-O2 -fPIC"
|
|
|
|
LIBDIRSUFFIX="64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -x /usr/bin/perl ]; then
|
|
|
|
echo "Perl detected."
|
|
|
|
echo
|
2016-06-30 22:26:57 +02:00
|
|
|
echo "The perl package needs to be removed before building to ensure that"
|
|
|
|
echo "the perl modules are included in the new package."
|
2009-08-26 17:00:38 +02:00
|
|
|
echo
|
2016-06-30 22:26:57 +02:00
|
|
|
echo "Removing the perl package in 15 seconds, and then continuing with the build."
|
2009-08-26 17:00:38 +02:00
|
|
|
sleep 15
|
2016-06-30 22:26:57 +02:00
|
|
|
removepkg perl
|
2009-08-26 17:00:38 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Clear build location:
|
|
|
|
rm -rf $PKG
|
|
|
|
mkdir -p $PKG
|
|
|
|
|
|
|
|
# Extract the source code:
|
|
|
|
cd $TMP
|
|
|
|
rm -rf perl-$VERSION
|
2018-05-28 21:12:29 +02:00
|
|
|
tar xvf $CWD/perl-$VERSION.tar.?z || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
# Change into the source directory:
|
|
|
|
cd perl-$VERSION
|
|
|
|
|
|
|
|
# Adjust owner/perms to standard values:
|
|
|
|
chown -R root:root .
|
|
|
|
find . \
|
|
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
2019-09-30 23:08:32 +02:00
|
|
|
-exec chmod 755 {} \+ -o \
|
2009-08-26 17:00:38 +02:00
|
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
2019-09-30 23:08:32 +02:00
|
|
|
-exec chmod 644 {} \+
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
# If after all this time you still don't trust threads, comment
|
|
|
|
# out the variable below:
|
|
|
|
#
|
|
|
|
USE_THREADS="-Dusethreads -Duseithreads"
|
|
|
|
|
|
|
|
if [ "$ARCH" = "x86_64" ]; then # adopted from "Cross Linux From Scratch"
|
|
|
|
# Configure must be told to also use lib64:
|
|
|
|
zcat $CWD/perl.configure.multilib.patch.gz | patch -p1 --verbose || exit 1
|
|
|
|
# "perl -V" should report that libc is in /lib64
|
|
|
|
sed -i -e '/libc/s#/lib/#/lib64/#' hints/linux.sh
|
|
|
|
# make perl use lib64:
|
|
|
|
echo 'installstyle="lib64/perl5"' >>hints/linux.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
# We no longer include suidperl. To quote the INSTALL file:
|
|
|
|
#
|
|
|
|
# Because of the buggy history of suidperl, and the difficulty
|
|
|
|
# of properly security auditing as large and complex piece of
|
|
|
|
# software as Perl, we cannot recommend using suidperl and the feature
|
|
|
|
# should be considered deprecated.
|
|
|
|
# Instead use for example 'sudo': http://www.courtesan.com/sudo/
|
|
|
|
|
|
|
|
# Configure perl:
|
|
|
|
./Configure -de \
|
|
|
|
-Dprefix=/usr \
|
2012-09-26 03:10:42 +02:00
|
|
|
-Dsiteprefix=/usr/local \
|
|
|
|
-Dsitelib="/usr/local/share/perl5" \
|
|
|
|
-Dsitearch="/usr/local/lib${LIBDIRSUFFIX}/perl5" \
|
|
|
|
-Darchlib="/usr/lib${LIBDIRSUFFIX}/perl5" \
|
2009-08-26 17:00:38 +02:00
|
|
|
-Dvendorprefix=/usr \
|
2012-09-26 03:10:42 +02:00
|
|
|
-Dprivlib="/usr/share/perl5" \
|
|
|
|
-Dvendorlib="/usr/share/perl5/vendor_perl" \
|
|
|
|
-Dvendorarch="/usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl" \
|
|
|
|
-Dscriptdir='/usr/bin' \
|
2009-08-26 17:00:38 +02:00
|
|
|
-Dcccdlflags='-fPIC' \
|
|
|
|
-Dinstallprefix=/usr \
|
|
|
|
-Dlibpth="/usr/local/lib${LIBDIRSUFFIX} /usr/lib${LIBDIRSUFFIX} /lib${LIBDIRSUFFIX}" \
|
|
|
|
-Doptimize="$SLKCFLAGS" \
|
|
|
|
$USE_THREADS \
|
2012-09-26 03:10:42 +02:00
|
|
|
-Duseshrplib \
|
|
|
|
-Ubincompat5005 \
|
|
|
|
-Uversiononly \
|
2009-08-26 17:00:38 +02:00
|
|
|
-Dpager='/usr/bin/less -isr' \
|
2018-05-28 21:12:29 +02:00
|
|
|
-Darchname=$ARCH-linux || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2012-09-26 03:10:42 +02:00
|
|
|
# -Duseshrplib creates libperl.so
|
|
|
|
# -Ubincompat5005 helps create DSO -> libperl.so
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
# Build perl
|
2010-05-19 10:58:23 +02:00
|
|
|
make $NUMJOBS || exit 1
|
2018-05-28 21:12:29 +02:00
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
# Install perl (needed to build modules):
|
2018-05-28 21:12:29 +02:00
|
|
|
make install || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
( cd /usr/bin
|
|
|
|
ln -sf perl$VERSION perl
|
|
|
|
)
|
|
|
|
|
|
|
|
# Install perl package:
|
2018-05-28 21:12:29 +02:00
|
|
|
make install DESTDIR=$PKG || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
# Add additional modules:
|
|
|
|
( cd ext
|
2018-12-01 04:16:35 +01:00
|
|
|
( tar xzvf $CWD/Devel-CheckLib-${DEVELCHECKLIB}.tar.gz
|
|
|
|
cd Devel-CheckLib-${DEVELCHECKLIB}
|
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Devel-CheckLib-${DEVELCHECKLIB}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Devel-CheckLib-${DEVELCHECKLIB}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Devel-CheckLib-${DEVELCHECKLIB}/README*
|
|
|
|
) || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
( tar xzvf $CWD/DBI-${DBI}.tar.gz
|
|
|
|
cd DBI-${DBI}
|
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2018-05-28 21:12:29 +02:00
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/DBI-${DBI}
|
2016-06-30 22:26:57 +02:00
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/DBI-${DBI}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/DBI-${DBI}/README*
|
2018-05-28 21:12:29 +02:00
|
|
|
) || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
( tar xzvf $CWD/DBD-mysql-${DBDMYSQL}.tar.gz
|
|
|
|
cd DBD-mysql-${DBDMYSQL}
|
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2018-05-28 21:12:29 +02:00
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}
|
2016-06-30 22:26:57 +02:00
|
|
|
cp -a INSTALL.html README* TODO $PKG/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}
|
2009-08-26 17:00:38 +02:00
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}/*
|
2018-05-28 21:12:29 +02:00
|
|
|
) || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
( tar xzvf $CWD/XML-Parser-${XMLPARSER}.tar.gz
|
|
|
|
cd XML-Parser-${XMLPARSER}
|
|
|
|
chown -R root:root .
|
2018-05-28 21:12:29 +02:00
|
|
|
perl -I . Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}
|
2016-06-30 22:26:57 +02:00
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}
|
2009-08-26 17:00:38 +02:00
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}/*
|
2018-05-28 21:12:29 +02:00
|
|
|
) || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
( tar xzvf $CWD/XML-Simple-${XMLSIMPLE}.tar.gz
|
|
|
|
cd XML-Simple-${XMLSIMPLE}
|
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2018-05-28 21:12:29 +02:00
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/XML-Simple${XMLSIMPLE}
|
2016-06-30 22:26:57 +02:00
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/XML-Simple${XMLSIMPLE}
|
2009-08-26 17:00:38 +02:00
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/XML-Simple${XMLSIMPLE}/*
|
2018-05-28 21:12:29 +02:00
|
|
|
) || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
( tar xzvf $CWD/URI-${URI}.tar.gz
|
|
|
|
cd URI-${URI}
|
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2018-05-28 21:12:29 +02:00
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/URI-${URI}
|
2016-06-30 22:26:57 +02:00
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/URI-${URI}
|
2009-08-26 17:00:38 +02:00
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/URI-${URI}/*
|
|
|
|
)
|
2013-11-04 18:08:47 +01:00
|
|
|
( tar xzvf $CWD/gettext-${GETTEXT}.tar.gz
|
2016-06-30 22:26:57 +02:00
|
|
|
cd Locale-gettext-${GETTEXT}
|
2013-11-04 18:08:47 +01:00
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2018-05-28 21:12:29 +02:00
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
2013-11-04 18:08:47 +01:00
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/gettext-${GETTEXT}
|
2016-06-30 22:26:57 +02:00
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/gettext-${GETTEXT}
|
2013-11-04 18:08:47 +01:00
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/gettext-${GETTEXT}/*
|
2018-05-28 21:12:29 +02:00
|
|
|
) || exit 1
|
2016-06-30 22:26:57 +02:00
|
|
|
( tar xzvf $CWD/TermReadKey-${TERMREADKEY}.tar.gz
|
|
|
|
cd TermReadKey-${TERMREADKEY}
|
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2018-05-28 21:12:29 +02:00
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
2016-06-30 22:26:57 +02:00
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/TermReadKey-${TERMREADKEY}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/TermReadKey-${TERMREADKEY}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/TermReadKey-${TERMREADKEY}/*
|
2018-05-28 21:12:29 +02:00
|
|
|
) || exit 1
|
|
|
|
( tar xzvf $CWD/Authen-SASL-${AUTHENSASL}.tar.gz
|
|
|
|
cd Authen-SASL-${AUTHENSASL}
|
|
|
|
chown -R root:root .
|
|
|
|
perl -I . Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Authen-SASL-${AUTHENSASL}
|
|
|
|
cp -a README* META.yml $PKG/usr/doc/perl-$VERSION/Authen-SASL-${AUTHENSASL}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Authen-SASL-${AUTHENSASL}/*
|
|
|
|
) || exit 1
|
|
|
|
( tar xzvf $CWD/MIME-Base64-${MIMEBASE64}.tar.gz
|
|
|
|
cd MIME-Base64-${MIMEBASE64}
|
|
|
|
chown -R root:root .
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/MIME-Base64-${MIMEBASE64}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/MIME-Base64-${MIMEBASE64}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/MIME-Base64-${MIMEBASE64}/*
|
|
|
|
) || exit 1
|
2018-06-05 07:24:22 +02:00
|
|
|
( tar xzvf $CWD/IO-Socket-SSL-${IOSOCKETSSL}.tar.gz
|
|
|
|
cd IO-Socket-SSL-${IOSOCKETSSL}
|
|
|
|
chown -R root:root .
|
|
|
|
echo Y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/IO-Socket-SSL-${IOSOCKETSSL}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/IO-Socket-SSL-${IOSOCKETSSL}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/IO-Socket-SSL-${IOSOCKETSSL}/*
|
|
|
|
) || exit 1
|
|
|
|
( tar xzvf $CWD/Net-SSLeay-${NETSSLEAY}.tar.gz
|
|
|
|
cd Net-SSLeay-${NETSSLEAY}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Net-SSLeay-${NETSSLEAY}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Net-SSLeay-${NETSSLEAY}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Net-SSLeay-${NETSSLEAY}/*
|
|
|
|
) || exit 1
|
2018-05-28 21:12:29 +02:00
|
|
|
( tar xzvf $CWD/libnet-${LIBNET}.tar.gz
|
|
|
|
cd libnet-${LIBNET}
|
|
|
|
zcat $CWD/libnet-3.08-Do-not-create-Net-libnet.cfg.patch.gz | patch -p1 --verbose || exit 1
|
|
|
|
chown -R root:root .
|
|
|
|
echo | perl Makefile.PL \
|
|
|
|
PREFIX=/usr \
|
|
|
|
INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/libnet-${LIBNET}
|
|
|
|
cp -a Artistic Changes Copying INSTALL LICENCE README $PKG/usr/doc/perl-$VERSION/libnet-${LIBNET}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/libnet-${LIBNET}/*
|
|
|
|
) || exit 1
|
2020-03-04 02:39:54 +01:00
|
|
|
( tar xzvf $CWD/Parse-Yapp-${PARSEYAPP}.tar.gz
|
|
|
|
cd Parse-Yapp-${PARSEYAPP}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Parse-Yapp-${PARSEYAPP}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Parse-Yapp-${PARSEYAPP}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Parse-Yapp-${PARSEYAPP}/*
|
|
|
|
) || exit 1
|
2020-11-12 22:20:07 +01:00
|
|
|
( tar xzvf $CWD/Path-Tiny-${PATHTINY}.tar.gz
|
|
|
|
cd Path-Tiny-${PATHTINY}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Path-Tiny-${PATHTINY}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Path-Tiny-${PATHTINY}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Path-Tiny-${PATHTINY}/*
|
|
|
|
) || exit 1
|
|
|
|
( tar xzvf $CWD/Template-Toolkit-${TEMPLATETOOLKIT}.tar.gz
|
|
|
|
cd Template-Toolkit-${TEMPLATETOOLKIT}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Template-Toolkit-${TEMPLATETOOLKIT}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Template-Toolkit-${TEMPLATETOOLKIT}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Template-Toolkit-${TEMPLATETOOLKIT}/*
|
|
|
|
) || exit 1
|
|
|
|
( tar xzvf $CWD/Moo-${MOO}.tar.gz
|
|
|
|
cd Moo-${MOO}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Moo-${MOO}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Moo-${MOO}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Moo-${MOO}/*
|
|
|
|
) || exit 1
|
|
|
|
( tar xzvf $CWD/Module-Runtime-${MODULERUNTIME}.tar.gz
|
|
|
|
cd Module-Runtime-${MODULERUNTIME}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Module-Runtime-${MODULERUNTIME}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Module-Runtime-${MODULERUNTIME}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Module-Runtime-${MODULERUNTIME}/*
|
|
|
|
) || exit 1
|
|
|
|
( tar xzvf $CWD/Sub-Quote-${SUBQUOTE}.tar.gz
|
|
|
|
cd Sub-Quote-${SUBQUOTE}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/Sub-Quote-${SUBQUOTE}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/Sub-Quote-${SUBQUOTE}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/Sub-Quote-${SUBQUOTE}/*
|
|
|
|
) || exit 1
|
2023-02-01 06:29:53 +01:00
|
|
|
( tar xzvf $CWD/JSON-${JSON}.tar.gz
|
|
|
|
cd JSON-${JSON}
|
|
|
|
chown -R root:root .
|
|
|
|
echo y | perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make || exit 1
|
|
|
|
if [ "$MAKETEST" = "yes" ]; then
|
|
|
|
make test || exit 1
|
|
|
|
fi
|
|
|
|
make install || exit 1
|
|
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION/JSON-${JSON}
|
|
|
|
cp -a README* $PKG/usr/doc/perl-$VERSION/JSON-${JSON}
|
|
|
|
chmod 644 $PKG/usr/doc/perl-$VERSION/JSON-${JSON}/*
|
|
|
|
) || exit 1
|
2018-05-28 21:12:29 +02:00
|
|
|
) || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
# Strip everything:
|
|
|
|
( cd $PKG
|
|
|
|
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
|
|
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
|
|
|
)
|
|
|
|
|
|
|
|
# There are also miniperl and microperl.
|
|
|
|
# I haven't had any requests for them, but would be willing
|
|
|
|
# to consider adding one or both to the package if anyone
|
|
|
|
# actually needs them for some reason.
|
2018-05-28 21:12:29 +02:00
|
|
|
#make microperl || exit 1
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
# Symlinks that replace hard links
|
|
|
|
( cd $PKG/usr/bin
|
|
|
|
ln -sf perl$VERSION perl
|
2018-05-28 21:12:29 +02:00
|
|
|
)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-07-25 22:53:49 +02:00
|
|
|
# Add a symlink to libperl.so, since otherwise we occasionally run into
|
|
|
|
# binaries that can't find it since it's not in the LD_LIBRARY_PATH:
|
|
|
|
( cd $PKG/usr/lib${LIBDIRSUFFIX}
|
|
|
|
ln -sf perl*/CORE/libperl.so .
|
|
|
|
)
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
# Install documentation
|
|
|
|
mkdir -p $PKG/usr/doc/perl-$VERSION
|
|
|
|
cp -a \
|
2012-09-26 03:10:42 +02:00
|
|
|
AUTHORS Artistic Changes Copying INSTALL \
|
|
|
|
README* \
|
|
|
|
README.{cn,jp,ko,tw} README.linux \
|
2009-08-26 17:00:38 +02:00
|
|
|
$PKG/usr/doc/perl-$VERSION
|
|
|
|
|
|
|
|
# We follow LSB with symlinks in /usr/share:
|
|
|
|
( cd $PKG/usr/share
|
2018-05-28 21:12:29 +02:00
|
|
|
mv man ..
|
|
|
|
)
|
2009-08-26 17:00:38 +02:00
|
|
|
( cd $PKG/usr/man/man1
|
|
|
|
mkdir foo
|
|
|
|
cp *.1 foo
|
|
|
|
rm *.1
|
|
|
|
mv foo/* .
|
|
|
|
rmdir foo
|
|
|
|
gzip -9 *
|
2018-05-28 21:12:29 +02:00
|
|
|
)
|
2009-08-26 17:00:38 +02:00
|
|
|
( cd $PKG/usr/man/man3
|
2018-05-28 21:12:29 +02:00
|
|
|
gzip -9 *
|
|
|
|
)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
chmod 755 $PKG/usr/bin/*
|
|
|
|
chmod 644 $PKG/usr/man/man?/*
|
|
|
|
|
2018-05-28 21:12:29 +02:00
|
|
|
# Don't ship a perllocal.pod populated with vendor_perl additions. The file is
|
|
|
|
# meant for locally added perl modules:
|
2012-09-26 03:10:42 +02:00
|
|
|
if [ -r $PKG/usr/lib${LIBDIRSUFFIX}/perl5/perllocal.pod ]; then
|
2018-05-28 21:12:29 +02:00
|
|
|
mv $PKG/usr/lib${LIBDIRSUFFIX}/perl5/perllocal.pod $PKG/usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl.pod
|
2009-08-26 17:00:38 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Insert the slack-desc:
|
|
|
|
mkdir -p $PKG/install
|
|
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
2010-05-19 10:58:23 +02:00
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
# Build the package:
|
|
|
|
cd $PKG
|
2010-05-19 10:58:23 +02:00
|
|
|
/sbin/makepkg -l y -c n $TMP/perl-$VERSION-$ARCH-$BUILD.txz
|
2009-08-26 17:00:38 +02:00
|
|
|
|