Changeset 4933918 for npl/system/openssl/openssl.SlackBuild.orig
- Timestamp:
- 09/20/18 18:43:08 (7 years ago)
- Branches:
- master, perl-5.22
- Children:
- c9755c3
- Parents:
- c9ea2dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/system/openssl/openssl.SlackBuild.orig
rc9ea2dd r4933918 1 #!/bin/ bash1 #!/bin/sh 2 2 3 3 # Copyright 2000 BSDi, Inc. Concord, CA, USA 4 4 # Copyright 2001, 2002 Slackware Linux, Inc. Concord, CA, USA 5 # Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 , 2018Patrick J. Volkerding, Sebeka, MN, USA5 # Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Patrick J. Volkerding, Sebeka, MN, USA 6 6 # All rights reserved. 7 7 # … … 23 23 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 25 25 26 # Set initial variables: 26 cd $(dirname $0) ;CWD=$(pwd)27 CWD=$(pwd) 27 28 TMP=${TMP:-/tmp} 28 29 29 PKGNAM=openssl30 30 VERSION=${VERSION:-$(echo openssl-*.tar.gz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} 31 BUILD=${BUILD:- 2}31 BUILD=${BUILD:-1_slack14.2} 32 32 33 33 # Automatically determine the architecture we're building on: … … 46 46 NAME2=openssl-solibs-$VERSION-$ARCH-$BUILD 47 47 48 # If the variable PRINT_PACKAGE_NAME is set, then this script will report what49 # the name of the created package would be, and then exit. This information50 # could be useful to other scripts.51 if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then52 echo "${NAME1}.txz"53 echo "${NAME2}.txz"54 exit 055 fi56 57 48 # Parallel build doesn't link properly. 58 49 #NUMJOBS=${NUMJOBS:--j6} … … 70 61 find . -name "*.pod" -exec sed -i "s/^\=item \([0-9]\)\(\ \|$\)/\=item C<\1>/g" {} \; 71 62 72 ## For openssl-1.1.x, don't try to change the soname. 73 ## Use .so.1, not .so.1.0.0: 74 #sed -i "s/soname=\$\$SHLIB\$\$SHLIB_SOVER\$\$SHLIB_SUFFIX/soname=\$\$SHLIB.1/g" Makefile.shared 63 # Use .so.1, not .so.1.0.0: 64 sed -i "s/soname=\$\$SHLIB\$\$SHLIB_SOVER\$\$SHLIB_SUFFIX/soname=\$\$SHLIB.1/g" Makefile.shared 75 65 76 66 if [ "$ARCH" = "i586" ]; then … … 91 81 # what they were compiled against, whether or not the ABI has changed. 92 82 # 93 # So, we will use the OPENSSL_VERSION_NUMBER from openssl-1. 1.0hunless ABI83 # So, we will use the OPENSSL_VERSION_NUMBER from openssl-1.0.2e unless ABI 94 84 # breakage forces it to change. Yes, we're finally using this old trick. :) 95 sed -i "s/#define OPENSSL_VERSION_NUMBER.*/\/* Use 0x10 10008fL (1.1.0h) below to avoid pointlessly breaking the ABI *\/\n#define OPENSSL_VERSION_NUMBER 0x1000205fL/g" include/openssl/opensslv.h || exit 185 sed -i "s/#define OPENSSL_VERSION_NUMBER.*/\/* Use 0x1000205fL (1.0.2e) below to avoid pointlessly breaking the ABI *\/\n#define OPENSSL_VERSION_NUMBER 0x1000205fL/g" crypto/opensslv.h || exit 1 96 86 97 87 chown -R root:root . 98 88 mkdir -p $PKG1/usr/doc/openssl-$VERSION 99 cp -a ACKNOWLEDGEMENTS AUTHORS CHANGES* CONTRIBUTING FAQ INSTALL* \ 100 LICENSE* NEWS NOTES* README* doc \ 101 $PKG1/usr/doc/openssl-$VERSION 89 cp -a CHANGES CHANGES.SSLeay FAQ INSTALL INSTALL.MacOS INSTALL.VMS INSTALL.W32 \ 90 LICENSE NEWS README README.ENGINE doc $PKG1/usr/doc/openssl-$VERSION 102 91 find $PKG1/usr/doc/openssl-$VERSION -type d -exec chmod 755 {} \; 103 92 find $PKG1/usr/doc/openssl-$VERSION -type f -exec chmod 644 {} \; … … 115 104 # MDC-2: 4,908,861 2007-03-13, not included. 116 105 # IDEA: 5,214,703 2010-05-25, not included. 106 # RC5: 5,724,428 2015-03-03, not included. 117 107 # 118 108 # Although all of the above are expired, it's still probably … … 123 113 --prefix=/usr \ 124 114 --openssldir=/etc/ssl \ 125 zlib \ 126 enable-camellia \ 127 enable-seed \ 128 enable-rfc3779 \ 129 enable-cms \ 130 enable-md2 \ 131 enable-rc5 \ 132 enable-ssl3 \ 133 enable-ssl3-method \ 115 no-mdc2 \ 116 no-idea \ 117 no-rc5 \ 118 no-sse2 \ 119 no-ssl2 \ 134 120 no-weak-ssl-ciphers \ 135 no-mdc2 \136 no-ec2m \137 no-idea \138 no-sse2 \139 121 shared 140 122 … … 143 125 make $NUMJOBS || make || exit 1 144 126 145 make install DESTDIR=$PKG1 || exit 1 146 147 # No thanks on the static libraries: 148 rm -f $PKG1/usr/lib${LIBDIRSUFFIX}/*.a 149 150 # No thanks on manpages duplicated as html: 151 rm -rf $PKG1/usr/share/doc 127 make install INSTALL_PREFIX=$PKG1 || exit 1 152 128 153 129 # Make the .so.? library symlinks: … … 162 138 mv $file ../../lib${LIBDIRSUFFIX} 163 139 ln -sf ../../lib${LIBDIRSUFFIX}/$file . 164 done 165 #cp -a lib*.so.? ../../lib${LIBDIRSUFFIX}140 done 141 cp -a lib*.so.? ../../lib${LIBDIRSUFFIX} 166 142 ) 167 143 … … 171 147 chmod 755 $PKG1/etc/cron.daily/certwatch.new 172 148 173 # Make config file non-clobber:174 149 mv $PKG1/etc/ssl/openssl.cnf $PKG1/etc/ssl/openssl.cnf.new 175 176 # Remove duplicate config file:177 rm -f $PKG1/etc/ssl/openssl.cnf.dist178 150 179 151 ( cd $PKG1 … … 182 154 ) 183 155 184 # Relocate the manpages: 185 mv $PKG1/usr/share/man $PKG1/usr 186 rmdir $PKG1/usr/share 187 188 # Fix manpage name collisions, and relink anything that linked to the old name: 189 ( cd $PKG1/usr/man/man1 190 mv passwd.1 ssl_passwd.1 191 for file in *.1 ; do 192 if [ -L $file ]; then 193 if [ "$(readlink $file)" = "passwd.1" ]; then 194 rm -f $file 195 ln -sf ssl_passwd.1 $file 196 fi 197 fi 198 done ) 199 156 mv $PKG1/etc/ssl/man $PKG1/usr 157 ( cd $PKG1/usr/man/man1 ; mv passwd.1 ssl_passwd.1 ) 158 ( cd $PKG1/usr/man/man3 ; mv rand.3 ssl_rand.3 ) 159 ( cd $PKG1/usr/man/man3 ; mv err.3 ssl_err.3 ) 200 160 # Compress and symlink the man pages: 201 161 if [ -d $PKG1/usr/man ]; then … … 213 173 fi 214 174 215 # If there's an openssl 1 directory, then build openssl-1.0 shared libraries for175 # If there's an openssl0 directory, then build openssl-0 shared libraries for 216 176 # compatibility with programs linked to those: 217 if [ -d $CWD/openssl 1]; then218 ( cd $CWD/openssl 1219 ./openssl 1.build || exit 1177 if [ -d $CWD/openssl0 ]; then 178 ( cd $CWD/openssl0 179 ./openssl0.build || exit 1 220 180 ) || exit 1 221 181 # Don't put these in the openssl package... openssl-solibs is enough. 222 182 #mkdir -p $PKG1/lib${LIBDIRSUFFIX} 223 #cp -a $TMP/package-openssl 1/usr/lib/lib*.so.?.?.? $PKG1/lib${LIBDIRSUFFIX}183 #cp -a $TMP/package-openssl0/usr/lib/lib*.so.?.?.? $PKG1/lib${LIBDIRSUFFIX} 224 184 #( cd $PKG1/lib${LIBDIRSUFFIX} ; ldconfig -l lib*.so.?.?.? ) 225 185 mkdir -p $PKG2/lib${LIBDIRSUFFIX} 226 cp -a $TMP/package-openssl 1/usr/lib${LIBDIRSUFFIX}/lib*.so.?.?.? $PKG2/lib${LIBDIRSUFFIX}186 cp -a $TMP/package-openssl0/usr/lib/lib*.so.?.?.? $PKG2/lib${LIBDIRSUFFIX} 227 187 ( cd $PKG2/lib${LIBDIRSUFFIX} ; ldconfig -l lib*.so.?.?.? ) 228 188 fi … … 244 204 mkdir -p $PKG2/usr/doc/openssl-$VERSION 245 205 ( cd $TMP/openssl-$VERSION 246 cp -a ACKNOWLEDGEMENTS AUTHORS CHANGES* CONTRIBUTING FAQ INSTALL*\247 LICENSE * NEWS NOTES* README*$PKG2/usr/doc/openssl-$VERSION206 cp -a CHANGES CHANGES.SSLeay FAQ INSTALL INSTALL.MacOS INSTALL.VMS INSTALL.W32 \ 207 LICENSE NEWS README README.ENGINE $PKG2/usr/doc/openssl-$VERSION 248 208 # If there's a CHANGES file, installing at least part of the recent history 249 209 # is useful, but don't let it get totally out of control:
Note: See TracChangeset
for help on using the changeset viewer.