the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2:<<
Package: openssl100%type_pkg[-64bit]-dev
Version: 1.0.1c
Revision: 1
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = -64bit ) i386
Description: Secure Sockets Layer and Crypto Library
License: OSI-Approved
Homepage: http://www.openssl.org/
Maintainer: Daniel Johnson
Conflicts: libmd (<= 0.3-2), system-openssl-dev, openssl-dev, openssl097-dev, openssl098-dev, openssl100-dev, openssl100-64bit-dev
Replaces: system-openssl-dev, openssl-dev, openssl097-dev, openssl098-dev, openssl, openssl097, openssl100-dev, openssl100-64bit-dev
BuildDependsOnly: True
Source: mirror:custom:source/openssl-%v.tar.gz
CustomMirror: <<
Primary: http://www.openssl.org/
Secondary: ftp://ftp.openssl.org/
<<
Source-MD5: ae412727c8c15b67880aef7bd2999b2e
PatchFile: %{ni}.patch
PatchFile-MD5: bdedfbec3929ab3f36379704955c08c1
PatchScript: <<
perl util/perlpath.pl /usr/bin
perl -pi -e 's,LIBDEPS,SHARED_LDFLAGS=-bundle $&,' engines/Makefile engines/ccgost/Makefile
perl -pi -e 's,/engines,/engines100,g' Configure Makefile Makefile.org engines/Makefile engines/ccgost/Makefile
sed 's,@BUILDDIR@,%b,g' %{PatchFile} | patch -p1
<<
BuildDepends: fink (>= 0.24.12)
Depends: openssl100%type_pkg[-64bit]-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
#!/bin/sh -ev
export PATH="%p/bin:%p/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
if [ "%m" = "x86_64" ] || [ "%type_pkg[-64bit]" = "-64bit" ]
then
PERL=/usr/bin/perl ./Configure shared darwin64-x86_64-cc --prefix=%p --openssldir=%p/etc/ssl zlib-dynamic
elif [ "%m" = "powerpc" ]
then
PERL=/usr/bin/perl ./Configure shared darwin-ppc-cc --prefix=%p --openssldir=%p/etc/ssl zlib-dynamic
elif [ "%m" = "i386" ]
then
PERL=/usr/bin/perl ./Configure shared darwin-i386-cc --prefix=%p --openssldir=%p/etc/ssl zlib-dynamic
else
echo "Unknown architecture."
exit 1
fi
make LIBDIR=%lib
<<
InfoTest: <<
TestScript: make test || exit 2
<<
InstallScript: <<
#!/bin/sh -ev
make install INSTALL_PREFIX=%d MANDIR=%p/share/man LIBDIR=%lib
## skipped-links contains symlink commands that fail because they
## would involve filenames that differ only by case (rebuild on a
## case-insensitive filesystem to make sure the list is complete).
## as of 1.0.0k-3, the list is:
## ln -s "bn_internal.3" "bn_print.3" # created iff build on case-sens fs
## ln -s "hmac.3" "HMAC.3" # not created anywhere
## ln -s "md5.3" "MD5.3" # not created anywhere
## ln -s "mdc2.3" "MDC2.3" # not created anywhere
## ln -s "pem.3" "PEM.3" # not created anywhere
## ln -s "rc4.3" "RC4.3" # not created anywhere
## ln -s "ssl.3" "SSL.3" # not created anywhere
## i.e., those symlink names already exist as something else.
## Should patch build to avoid even trying to create these so get
## same .deb on all build FS even without hacks.
## There remain symlinks BN_print.3 -> BN_bn2bin.3 and bn_print.3 -> bn_internal.3, we rename the latter.
rm -f %i/share/man/man3/BN_print.3 %i/share/man/man3/bn_print.3 || true
ln -fs BN_bn2bin.3 %i/share/man/man3/BN_print.3
ln -fs bn_internal.3 %i/share/man/man3/_bn_print.3
### for comptibility with libmd (don't know how to set up
## update-alternatives with original capitalisation).
mv %i/share/man/man3/md5.3 %i/share/man/man3/md5.3.openssl100
for i in 2 4; do
mv %i/share/man/man3/MD$i.3 %i/share/man/man3/md$i.3.openssl100
done
<<
DocFiles: README LICENSE CHANGES FAQ NEWS
PostInstScript: <<
update-alternatives --install %p/share/man/man3/md5.3 md5.3 %p/share/man/man3/md5.3.openssl100 80 \
--slave %p/share/man/man3/md2.3 md2.3 %p/share/man/man3/md2.3.openssl100 \
--slave %p/share/man/man3/md4.3 md4.3 %p/share/man/man3/md4.3.openssl100
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove md5.3 %p/share/man/man3/md5.3.openssl100
fi
<<
SplitOff: <<
Package: openssl100%type_pkg[-64bit]-shlibs
Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Files: %lib/libcrypto.1.0.0.dylib %lib/libssl.1.0.0.dylib %lib/engines100
Shlibs: <<
%p/%lib/libcrypto.1.0.0.dylib 1.0.0 %n (>= 1.0.0a-1) %type_num[-64bit]
%p/%lib/libssl.1.0.0.dylib 1.0.0 %n (>= 1.0.0a-1) %type_num[-64bit]
<<
DocFiles: README LICENSE CHANGES FAQ NEWS
<<
SplitOff2: <<
Package: openssl%type_pkg[-64bit]
Depends: openssl100%type_pkg[-64bit]-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Conflicts: openssl097, openssl, openssl-64bit
Replaces: openssl097, openssl, openssl-64bit
Files: bin etc share/man/man1
DocFiles: README LICENSE CHANGES FAQ NEWS
ConfFiles: %p/etc/ssl/openssl.cnf
<<
DescDetail: <<
OpenSSL is a free implementation of the Secure Sockets Layer (SSL)
and Transport Layer Security (TLS) protocols. It includes command line
utilities to manage certificates and a separate library implementing common
cryptograhic algorithms.
<<
<<
diff -ru openssl-1.0.1a.orig/util/point.sh openssl-1.0.1a/util/point.sh
--- openssl-1.0.1a.orig/util/point.sh 2009-04-06 10:25:02.000000000 -0400
+++ openssl-1.0.1a/util/point.sh 2012-04-19 19:22:44.000000000 -0400
@@ -1,10 +1,17 @@
#!/bin/sh
-rm -f "$2"
+if [ `echo "$1" | tr '[[:upper:]]' '[[:lower:]]'` = `echo "$2" | tr '[[:upper:]]' '[[:lower:]]'` ]; then
+ echo "$2 => $1 not done ($1 =~ $2)"
+ echo "ln -s \"$1\" \"$2\"" >> @BUILDDIR@/skipped-links
+elif [ -e $2 ]; then # this part is useless (given linking below with "ln -s"), except for the file "skipped-links"
+ echo "$2 => $1 not done (-e $2)"
+ echo "ln -s \"$1\" \"$2\"" >> @BUILDDIR@/skipped-links
+else
if test "$OSTYPE" = msdosdjgpp || test "x$PLATFORM" = xmingw ; then
cp "$1" "$2"
else
ln -s "$1" "$2"
fi
echo "$2 => $1"
+fi