Update to 0.9.8g. Remove -libs subpackage.

This commit is contained in:
Tom G. Christensen 2008-04-28 06:25:10 +00:00 committed by tgc
parent 90f02179ea
commit 0c1d7d7d6c
4 changed files with 75 additions and 63 deletions

View File

@ -10,7 +10,7 @@
# Check the following 4 variables before running the script # Check the following 4 variables before running the script
topdir=openssl topdir=openssl
version=0.9.8g version=0.9.8g
pkgver=1 pkgver=2
source[0]=$topdir-$version.tar.gz source[0]=$topdir-$version.tar.gz
# If there are no patches, simply comment this # If there are no patches, simply comment this
#patch[0]= #patch[0]=
@ -18,65 +18,69 @@ source[0]=$topdir-$version.tar.gz
# Source function library # Source function library
. ${BUILDPKG_BASE}/scripts/buildpkg.functions . ${BUILDPKG_BASE}/scripts/buildpkg.functions
abbrev_ver=$(echo $version|$SED -e 's/\.//g') # Global settings
baseversion=$(echo $version|$SED -e 's/[a-zA-Z]//g') abbrev_ver=$(echo $version|${__sed} -e 's/\.//g')
baseversion=$(echo $version|${__sed} -e 's/[a-zA-Z]//g')
__configure="./Configure"
shared_args="--prefix=$prefix --openssldir=${prefix}/${_sharedir}/ssl zlib shared"
if [ "$arch" = "sparc" ]; then
# For Solaris > 7 we default so sparcv8 ISA
configure_args="solaris-sparcv8-gcc $shared_args"
# Solaris < 8 supports sparcv7 hardware
[ "$_os" = "sunos56" -o "$_os" = "sunos57" ] && configure_args="$shared_args solaris-sparcv7-gcc"
else
: openssl defaults to --march=pentium which should be changed to --march=i386 --mcpu=i686
fi
ignore_deps="LWperl"
reg prep reg prep
prep() prep()
{ {
generic_prep generic_prep
setdir source
sed -e '/^SHELL/s/sh/ksh/' Makefile.org > Makefile.org.ksh
mv Makefile.org.ksh Makefile.org
} }
reg build reg build
build() build()
{ {
setdir source setdir source
$SED -e "s;@LIBDIR@;${prefix}/lib;g" Makefile.org > Makefile.new ${__gsed} -i '/^SHELL/s/sh/ksh/' Makefile.org
$MV -f Makefile.new Makefile.org ${__gsed} -i "s;@LIBDIR@;${prefix}/lib;g" Makefile.org
./config --prefix=$prefix --openssldir=$prefix/ssl shared $__configure $configure_args
$MAKE_PROG CC="gcc -static-libgcc" LIBSSL="-Wl,-R,$prefix/lib -L.. -lssl" LIBCRYPTO="-Wl,-R,$prefix/lib -L.. -lcrypto" all build-shared ${__gsed} -i "/^CFLAG=/s;.*=;CFLAG=-I${prefix}/include;" Makefile
$MAKE_PROG CC="gcc -static-libgcc" LIBSSL="-Wl,-R,$prefix/lib -L.. -lssl" LIBCRYPTO="-Wl,-R,$prefix/lib -L.. -lcrypto" all link-shared do_solaris-shared ${__gsed} -i "/EX_LIBS/s;-lz;-L${prefix}/lib -R${prefix}/lib -lz;" Makefile
${__make} SHARED_LDFLAGS="-shared -R${prefix}/${_libdir}" depend
${__make} SHARED_LDFLAGS="-shared -R${prefix}/${_libdir}"
} }
reg install reg install
install() install()
{ {
setdir source
clean stage clean stage
$MAKE_PROG CC="gcc -static-libgcc" INSTALL_PREFIX=$stagedir LIBSSL="-Wl,-R,$prefix/lib -L.. -lssl" LIBCRYPTO="-Wl,-R,$prefix/lib -L.. -lcrypto" install setdir source
setdir $stagedir$prefix/lib ${__make} INSTALL_PREFIX=$stagedir MANDIR=${prefix}/${_mandir} install
chmod a+x pkgconfig setdir ${stagedir}${prefix}/${_mandir}
#rmdir $stagedir$prefix/ssl/lib for j in $(${__ls} -1d man?)
$MV $stagedir$prefix/ssl/man $stagedir$prefix
setdir $stagedir$prefix/man
for j in $(ls -1d man?)
do do
cd $j cd $j
for manpage in * for manpage in *
do do
if [ -L "${manpage}" ]; then if [ -L "${manpage}" ]; then
TARGET=`ls -l "${manpage}" | awk '{ print $NF }'` TARGET=$(${__ls} -l "${manpage}" | ${__awk} '{ print $NF }')
ln -snf "${TARGET}"ssl "${manpage}"ssl ${__ln} -snf "${TARGET}"ssl "${manpage}"ssl
rm -f "${manpage}" ${__rm} -f "${manpage}"
else else
$MV "$manpage" "$manpage""ssl" ${__mv} "$manpage" "$manpage""ssl"
fi fi
done done
cd .. cd ..
done done
# A few stupid manpages left that pkgproto can't deal with
#setdir $stagedir$prefix/man/man7
#mv "Modes of DES.7ssl" "Modes_of_DES.7ssl"
# Make .sos writable # Make .sos writable
chmod 755 ${stagedir}${prefix}/${_libdir}/*.so.* chmod 755 ${stagedir}${prefix}/${_libdir}/*.so.*
chmod 755 ${stagedir}${prefix}/${_libdir}/engines/*.so.* chmod 755 ${stagedir}${prefix}/${_libdir}/engines/*.so
# Nuke static libraries - they just take up space # Nuke static libraries - they just take up space
rm -f ${stagedir}${prefix}/${_libdir}/*.a ${__rm} -f ${stagedir}${prefix}/${_libdir}/*.a
custom_install=1 custom_install=1
generic_install generic_install
} }
@ -84,18 +88,12 @@ install()
reg pack reg pack
pack() pack()
{ {
# Create depend file for openssl
echo "P ${pkgprefix}ossl${abbrev_ver}lib OpenSSL $version shared libraries" > $metadir/depend.openssl
generic_pack generic_pack
} }
reg distclean reg distclean
distclean() distclean()
{ {
# depend is created by build.sh so make sure
# it's removed by distclean
META_CLEAN="$META_CLEAN depend.openssl"
clean distclean clean distclean
} }

1
openssl/meta/depend Normal file
View File

@ -0,0 +1 @@
TGCossld openssl auto

View File

@ -1,41 +1,27 @@
[openssl] [openssl]
pkgname="${pkgprefix}ossl${abbrev_ver}" pkgname="${pkgprefix}ossl"
name="OpenSSL - Secure Socket Layer" name="openssl - Secure Sockets Layer"
pkgcat="application" pkgcat="system"
pkgvendor="http://www.openssl.org" pkgvendor="http://www.openssl.org"
pkgdesc="Toolkit implementing SSL v2/v3 and TLS v1" pkgdesc="Toolkit implementing SSL v2/v3 and TLS v1"
pkgver="$pkgver" pkgver="$pkgver"
files(-,root,bin) files(-,root,bin)
$_bindir $_bindir
$_libdir/*.so.*
$_libdir/engines/*.so
$_mandir/man{1,5,7} $_mandir/man{1,5,7}
$_sharedir/ssl
[openssl-devel]
pkgname="${pkgprefix}ossld"
name="openssl-devel - Development support for openssl"
pkgcat="application"
pkgvendor="http://www.openssl.org"
pkgdesc="Files needed for developing with openssl"
pkgver="$pkgver"
files(-,root,bin)
$_includedir $_includedir
$_libdir/*.so $_libdir/*.so
$_libdir/pkgconfig $_libdir/pkgconfig
ssl
dir ${_libdir}
dir ${_mandir}
[openssl-lib]
pkgname="${pkgprefix}ossl${abbrev_ver}lib"
name="OpenSSL - Secure Socket Layer"
pkgcat="library"
pkgvendor="http://www.openssl.org"
pkgdesc="Toolkit implementing SSL v2/v3 and TLS v1"
pkgver="$pkgver"
files(-,root,bin)
$_libdir/*.so.*
$_libdir/engines/*.so
dir $_libdir
dir $_libdir/engines
[openssl-dman]
pkgname="${pkgprefix}ossl${abbrev_ver}"
name="OpenSSL - Secure Socket Layer"
pkgcat="application"
pkgvendor="http://www.openssl.org"
pkgdesc="Toolkit implementing SSL v2/v3 and TLS v1"
pkgver="$pkgver"
files(-,root,bin)
$_mandir/man3 $_mandir/man3
dir ${_mandir}

27
openssl/meta/relnotes Normal file
View File

@ -0,0 +1,27 @@
PACKAGE DETAILS
---------------
Name: %%PKGNAME%%
Version: %%SOURCE_AND_VER%%
Vendor: %%VENDOR%%
Packager: %%PKGEDBY%%
Source (sha1sum):
%%SOURCE_SHA1SUM%%
BUILD DETAILS
-------------
Compiler:
%%COMPILER%%
Environment:
%%ENVIRONMENT%%
Configure:
%%CONFIGURE%%
KNOWN DEPENDENCIES
------------------
%%DEPENDENCIES%%
ERRORS/MISCELLANEOUS
--------------------