forked from tgc/tgcware-for-irix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sw.base tgc_prngd.sw.base 000929004 maxint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |