Skip to content

Commit

Permalink
openssl 1.0.0a for IRIX 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tgc committed Sep 10, 2010
1 parent 53303d7 commit 06d8825
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 0 deletions.
112 changes: 112 additions & 0 deletions openssl1/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
#!/usr/tgcware/bin/bash
#
# This is a generic build.sh script
# It can be used nearly unmodified with many packages
#
# build.sh helper functions
. ${BUILDPKG_SCRIPTS}/build.sh.functions
#
###########################################################
# Check the following 4 variables before running the script
topdir=openssl
version=1.0.0a
pkgver=1
source[0]=http://www.openssl.org/source/$topdir-$version.tar.gz
# If there are no patches, simply comment this
#patch[0]=

# Source function library
. ${BUILDPKG_SCRIPTS}/buildpkg.functions

# Global settings
ignore_deps="tgc_perl5.sw.base"
check_ac=0
__configure="./Configure"
shared_args="--prefix=$prefix --openssldir=$prefix/ssl zlib shared"
if [ "$_os" == "irix53" ]; then
configure_args="irix-cc $shared_args"
mipspro=1
fi
if [ "$_os" == "irix62" ]; then
configure_args="irix-mips3-cc $shared_args"
mipspro=1
fi
make_check_target=test

reg prep
prep()
{
generic_prep
setdir source
# Hack that will allow the testsuite to run
${__gsed} -i "/eval \$rld_var/ s|/usr/lib|$prefix:/usr/lib|g" util/shlib_wrap.sh
}

reg build
build()
{
setdir source
$__configure $configure_args
${__gsed} -i '/^CFLAG=/s;.*=;CFLAG=-Olimit 3000 -I/usr/tgcware/include;' Makefile
if [ "$_os" == "irix53" ]; then
${__gsed} -i '/EX_LIBS/s;-lz;-Wl,-no_rqs -L/usr/tgcware/lib -Wl,-rpath,/usr/tgcware/lib -lz;' Makefile
${__make} SHARED_LDFLAGS="-Wl,-no_rqs -Wl,-rpath,${prefix}/${_libdir}" depend
${__make} SHARED_LDFLAGS="-Wl,-no_rqs -Wl,-rpath,${prefix}/${_libdir}"
else
${__gsed} -i '/EX_LIBS/s;-lz;-L/usr/tgcware/lib -Wl,-rpath,/usr/tgcware/lib -lz;' Makefile
${__make} SHARED_LDFLAGS="-Wl,-rpath,${prefix}/${_libdir}" depend
${__make} SHARED_LDFLAGS="-Wl,-rpath,${prefix}/${_libdir}"
fi
}

reg check
check()
{
generic_check
}

reg install
install()
{
clean stage
setdir source
${__make} INSTALL_PREFIX=$stagedir MANDIR=${prefix}/${_mandir} install
setdir ${stagedir}${prefix}/${_mandir}
for j in $($LS -1d man?)
do
cd $j
for manpage in *
do
if [ -L "${manpage}" ]; then
TARGET=`$LS -l "${manpage}" | $AWK '{ print $NF }'`
$LN -sf "${TARGET}"ssl "${manpage}"ssl
$RM -f "${manpage}"
else
$MV "$manpage" "$manpage""ssl"
fi
done
cd ..
done
doc README CHANGES FAQ INSTALL LICENSE NEWS
chmod 755 ${stagedir}${prefix}/${_libdir}/*.so.*
chmod 755 ${stagedir}${prefix}/${_libdir}/engines/*.so
custom_install=1
generic_install INSTALL_PREFIX
}

reg pack
pack()
{
generic_pack
}

reg distclean
distclean()
{
clean distclean
}

###################################################
# No need to look below here
###################################################
build_sh $*
4 changes: 4 additions & 0 deletions openssl1/meta/ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CHANGELOG
---------
* Sun Aug 29 2010 Tom G. Christensen <[email protected]> - 1.0.0a-1
- Initial package for openssl 1.0
1 change: 1 addition & 0 deletions openssl1/meta/depends
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sw.base tgc_prngd.sw.base 000929004 maxint
39 changes: 39 additions & 0 deletions openssl1/meta/pkgdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[common]
pkgname="${pkgprefix}${topdir}1"
name="$topdir"
pkgver="$pkgver"
pkgvendor="http://www.openssl.org"
shortdesc="SSL/TLS toolkit"

[base]
subsys=sw.base
files(-,root,sys)
$_bindir
$_sharedir
$_docdir
ssl

[lib]
subsys=sw.lib
files(-,root,sys)
$_libdir/*.so.*
$_libdir/engines/*.so

[man]
subsys=man.man
files(-,root,sys)
$_mandir/*[12456789]

[devel]
subsys=sw.dev
files(-,root,sys)
$_includedir
$_libdir/*.so
$_libdir/*.a
$_libdir/pkgconfig/*

[mandev]
subsys=man.dev
files(-,root,sys)
$_mandir/*3

33 changes: 33 additions & 0 deletions openssl1/meta/relnotes
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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
--------------------
prngd should be available to provide entropy through
/var/run/egd-pool

Cross your fingers that the openssl developers won't release a new
binary incompatible minor version.
Please see the INSTALL document for further information on that issue.
3 changes: 3 additions & 0 deletions openssl1/meta/replaces
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sw.base tgc_openssl.sw.base 908000 908007
sw.dev tgc_openssl.sw.dev 908000 908007
man.man tgc_openssl.man.man 908000 908007

0 comments on commit 06d8825

Please sign in to comment.