IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.9.7d PROGNAME="OpenSSL $VERSION" DESC="\ openssl (Secure Sockets Layer toolkit) \n\ \n\ The OpenSSL certificate management tool and the shared libraries that \n\ provide various encryption and decryption algorithms and protocols. \n\ \n\ This product includes software developed by the OpenSSL Project for \n\ use in the OpenSSL Toolkit (http://www.openssl.org). This product \n\ includes cryptographic software written by Eric Young \n\ (eay@cryptsoft.com). This product includes software written by Tim \n\ Hudson (tjh@cryptsoft.com)." BUILD=2 MAINTAINER="Mark Post " SOURCE=http://www.openssl.org/source PKGNAME=openssl-$VERSION-s390-$BUILD TAG=ADD compile() { # These are the known patent issues with OpenSSL: # name # expires # MDC-2: 4,908,861 13/03/2007, not included. # IDEA: 5,214,703 25/05/2010, not included. # RC5: 5,724,428 03/03/2015, not included. # In addition, MD2 is licensed only for a specific mail program, and # is not included. tar -yxvf $CWD/openssl-$VERSION.tar.bz2 cd openssl-$VERSION/ # Use .so.0, not .so.0.9.6: zcat $CWD/openssl.soname.diff.gz | patch -p1 --backup --verbose --suffix=.orig # We don't apply this since it only updates x86 compile options # Build with -march=i386 -mcpu=i686: # zcat $CWD/openssl.opts.diff.gz | patch -p1 --backup --verbose --suffix=.orig # Fix CAN-2005-2969 (SSL 2.0 rollback bug): zcat $CWD/patch-CAN-2005-2969.diff.gz | patch -p0 --backup --verbose --suffix=.orig || exit chown -R root.root . # make sure we use gcc, and not ccc (if it happens to be around) ./config --prefix=/usr --openssldir=/etc/ssl 386 no-mdc2 no-idea no-rc5 shared make depend make } install() { cd $TMP/openssl-$VERSION/ make install INSTALL_PREFIX=/package-openssl mkdir -p /package-openssl/usr/doc/openssl-$VERSION cp -a CHANGES CHANGES.SSLeay FAQ INSTALL INSTALL.MacOS INSTALL.VMS INSTALL.W32 \ LICENSE NEWS README README.ENGINE doc /package-openssl/usr/doc/openssl-$VERSION mv /package-openssl/etc/ssl/man /package-openssl/usr ( cd /package-openssl/usr/man/man1 mv passwd.1 ssl_passwd.1 ) ( cd /package-openssl/usr/man/man3 mv rand.3 ssl_rand.3 ) ( cd /package-openssl/usr/man for dir in 1 3 5 7; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) # Fix all the symbolic links ( cd /package-openssl/usr/man for dir in *;do (cd $dir echo Fixing symlinks in $dir IFS=" " # to avoid problems with filenames containing blanks for symlink in `find . -type l | cut -c3-`;do real_file=`file $symlink | sed -e 's%.*symbolic link to .%%' -e 's%.$%%'` rm -f $symlink ln -s $real_file.gz $symlink.gz done ) done ) } attributes() { chown -R root.bin $PKG/package-openssl/usr/bin chmod 555 $PKG/package-openssl/usr/lib/lib*.so* } special() { cd $PKG mv package-openssl/* ./ rmdir package-openssl/ cp -a $PKG $TMP/ssl cd $CTL cat $CWD/slack-desc.openssl > slack-desc sed -e 's%package-openssl/%%g' -e 's%\\\\%\\%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new } subpacks() { repack openssl-solibs }