From 4ca835e49542b581600c63bfb145ec1567288c0f Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Thu, 26 Apr 2007 20:47:05 +0000 Subject: EncapPackages: Added m2crypto as hard dep git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3064 ce84e21b-d406-0410-9b95-82705330c041 --- encap/src/encap-profiles/Makefile | 4 +- encap/src/encap-profiles/bcfg2-0.9.3.ep | 1 + encap/src/encap-profiles/bcfg2-m2crypto-0.17.ep | 101 ++++++++++++++++++++++ encap/src/encap-profiles/bcfg2-openssl-0.9.8e.ep | 104 +++++++++++++++++++++++ encap/src/encap-profiles/bcfg2-swig-1.3.31.ep | 102 ++++++++++++++++++++++ encap/src/makeself-dist/makedist.sh | 3 +- 6 files changed, 313 insertions(+), 2 deletions(-) create mode 100644 encap/src/encap-profiles/bcfg2-m2crypto-0.17.ep create mode 100644 encap/src/encap-profiles/bcfg2-openssl-0.9.8e.ep create mode 100644 encap/src/encap-profiles/bcfg2-swig-1.3.31.ep diff --git a/encap/src/encap-profiles/Makefile b/encap/src/encap-profiles/Makefile index d16033350..b6fa55919 100644 --- a/encap/src/encap-profiles/Makefile +++ b/encap/src/encap-profiles/Makefile @@ -23,10 +23,12 @@ BCFG2_GZIP := $(basename $(wildcard bcfg2-gzip-*.ep)) BCFG2_LIBXML2 := $(basename $(wildcard bcfg2-libxml2-*.ep)) BCFG2_LIBXSLT := $(basename $(wildcard bcfg2-libxslt-*.ep)) BCFG2_LXML := $(basename $(wildcard bcfg2-lxml-*.ep)) +BCFG2_M2CRYPTO := $(basename $(wildcard bcfg2-m2crypto-*.ep)) BCFG2_PKG_CONFIG := $(basename $(wildcard bcfg2-pkg-config-*.ep)) BCFG2_PYREX := $(basename $(wildcard bcfg2-pyrex-*.ep)) BCFG2_PYTHON := $(basename $(wildcard bcfg2-python-[0-9].[0-9]*.ep)) BCFG2_READLINE := $(basename $(wildcard bcfg2-readline-*.ep)) +BCFG2_SWIG := $(basename $(wildcard bcfg2-swig-*.ep)) BCFG2_ZLIB := $(basename $(wildcard bcfg2-zlib-*.ep)) M4 := $(basename $(wildcard m4-*.sh)) MAKESELF := $(basename $(wildcard makeself-*.ep)) @@ -35,7 +37,7 @@ OSTIARTY_DOC := $(basename $(wildcard ostiary-doc-*.ep)) PATCH := $(basename $(wildcard patch-*.ep)) RUNIT := $(basename $(wildcard runit-[0-9].[0-9]*.ep)) -sources_ep := $(sort $(BCFG2) $(BCFG2_CHEETAH) $(BCFG2_ELEMENTTREE) $(BCFG2_GZIP) $(BCFG2_PKG_CONFIG) $(BCFG2_PYTHON) $(BCFG2_READLINE) $(BCFG2_ZLIB) $(MAKESELF) $(OSTIARTY) $(PATCH) $(RUNIT)) +sources_ep := $(sort $(BCFG2) $(BCFG2_CHEETAH) $(BCFG2_ELEMENTTREE) $(BCFG2_GZIP) $(BCFG2_M2CRYPTO) $(BCFG2_PKG_CONFIG) $(BCFG2_PYTHON) $(BCFG2_READLINE) $(BCFG2_SWIG) $(BCFG2_ZLIB) $(MAKESELF) $(OSTIARTY) $(PATCH) $(RUNIT)) sources_sh := $(sort $(M4)) diff --git a/encap/src/encap-profiles/bcfg2-0.9.3.ep b/encap/src/encap-profiles/bcfg2-0.9.3.ep index ba4fd647c..8576455b5 100644 --- a/encap/src/encap-profiles/bcfg2-0.9.3.ep +++ b/encap/src/encap-profiles/bcfg2-0.9.3.ep @@ -497,6 +497,7 @@ printf "Finished bcfg2 preremove script.\n" description Bcfg2 - Provides a declarative interface to system configuration prereq pkgspec >= bcfg2-python-2.4.4 prereq pkgspec >= bcfg2-elementtree-1.2.6 +prereq pkgspec >= bcfg2-m2crypto-0.17 diff --git a/encap/src/encap-profiles/bcfg2-m2crypto-0.17.ep b/encap/src/encap-profiles/bcfg2-m2crypto-0.17.ep new file mode 100644 index 000000000..7495245fa --- /dev/null +++ b/encap/src/encap-profiles/bcfg2-m2crypto-0.17.ep @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + +PLATFORM_IF_MATCH(linux) +PLATFORM_ELSE + +PLATFORM_ENDIF + + + + + + + + +/usr/local/lib/bcfg2/bin/python setup.py build_ext \ +-I/usr/local/lib/bcfg2/include/openssl \ +-L/usr/local/lib/bcfg2/lib/ + + + +/usr/local/lib/bcfg2/bin/python setup.py build \ +--build-base=${builddir}/build + + + +/usr/local/lib/bcfg2/bin/python setup.py install \ +--prefix=${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2 + + + +/usr/local/lib/bcfg2/bin/python setup.py clean + + + + + +# Make "this encap is installed" sentinal file available in /usr/local/var/encap +test -d var || mkdir var +test -d var/encap || mkdir var/encap +touch var/encap/${ENCAP_PKGNAME} + + + +description m2crypto - a crypto and SSL toolkit for Python + + + + diff --git a/encap/src/encap-profiles/bcfg2-openssl-0.9.8e.ep b/encap/src/encap-profiles/bcfg2-openssl-0.9.8e.ep new file mode 100644 index 000000000..7faef6ec7 --- /dev/null +++ b/encap/src/encap-profiles/bcfg2-openssl-0.9.8e.ep @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + +PLATFORM_IF_MATCH(linux) +PLATFORM_ELSE + +PLATFORM_ENDIF + + + + + + + + +if [ -f config.orig ]; then cp config.orig config; fi +cat config | sed s:CC\=ccc:CC\=gcc:g | sed s:CC\=cc:CC\=gcc:g > config.bcfg2 +mv config config.orig +cp config.bcfg2 config +chmod 755 config +./config \ + --prefix="${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2" \ + zlib-dynamic shared no-asm \ + -L/usr/local/lib/bcfg2/lib \ + -I/usr/local/lib/bcfg2/include + + + + ${MAKE} test || true + + + + + +# Put source back to pristine state +rm ${builddir}/config +cp ${builddir}/config.orig ${builddir}/config +chmod 755 ${builddir}/config +# Make man pages available from /usr/local/lib/bcfg2/man +mv lib/bcfg2/ssl/man lib/bcfg2/ +# Other stuff... +test -d bin || mkdir bin +ln -sf ../lib/bcfg2/bin/openssl bin/b2-openssl +# Make "this encap is installed" sentinal file available in /usr/local/var/encap +test -d var || mkdir var +test -d var/encap || mkdir var/encap +touch var/encap/${ENCAP_PKGNAME} + + + +description openssl - SSL encryption tool and library + + + diff --git a/encap/src/encap-profiles/bcfg2-swig-1.3.31.ep b/encap/src/encap-profiles/bcfg2-swig-1.3.31.ep new file mode 100644 index 000000000..ef18b9528 --- /dev/null +++ b/encap/src/encap-profiles/bcfg2-swig-1.3.31.ep @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + +PLATFORM_IF_MATCH(linux) +PLATFORM_ELSE + +PLATFORM_ENDIF + + + + + + + + +./configure \ + --prefix="${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2" \ + --without-x \ + --without-tcl \ + --with-python=/usr/local/lib/bcfg2/bin/python \ + --without-perl5 \ + --without-java \ + --without-gcj \ + --without-guile \ + --without-mzscheme \ + --without-ruby \ + --without-php4 \ + --without-ocaml \ + --without-pike \ + --without-chicken \ + --without-csharp \ + --without-lua \ + --without-allegrocl \ + --without-clisp \ + --without-r + + + + + +# Make "this encap is installed" sentinal file available in /usr/local/var/encap +test -d var || mkdir var +test -d var/encap || mkdir var/encap +touch var/encap/${ENCAP_PKGNAME} + + + +description swig - generate scripting interfaces to C/C++ code + + + + + diff --git a/encap/src/makeself-dist/makedist.sh b/encap/src/makeself-dist/makedist.sh index fdd5e81df..919c40efe 100755 --- a/encap/src/makeself-dist/makedist.sh +++ b/encap/src/makeself-dist/makedist.sh @@ -49,6 +49,7 @@ tar -cf $DISTDIR/epkg.tar $EPKGDIR/* # Copy bcfg2 and client deps to $DISTDIR BCFG2="`basename $EPDIR/bcfg2-[0-9].[0-9]*-encap-*.tar.gz`" BCFG2_ELEMENTTREE="`basename $EPDIR/bcfg2-elementtree-*-encap-*.tar.gz`" +BCFG2_M2CRYPTO="`basename $EPDIR/bcfg2-m2crypto-*-encap-*.tar.gz`" BCFG2_PYTHON="`basename $EPDIR/bcfg2-python-[0-9].[0-9]*-encap-*.tar.gz`" OSTIARTY="`basename $EPDIR/ostiary-[0-9].[0-9]*-encap-*.tar.gz`" RUNIT="`basename $EPDIR/runit-[0-9].[0-9]*-encap-*.tar.gz`" @@ -58,7 +59,7 @@ if [ "${BCFG2_PYTHON_APT_TMP}x" != 'bcfg2-python-apt-*-encap-*.tar.gzx' ]; then BCFG2_PYTHON_APT="$BCFG2_PYTHON_APT_TMP" fi -BCFG2DEPS="$BCFG2_ELEMENTTREE $BCFG2_PYTHON $BCFG2_PYTHON_APT" +BCFG2DEPS="$BCFG2_ELEMENTTREE $BCFG2_M2CRYPTO $BCFG2_PYTHON $BCFG2_PYTHON_APT" FILES="$BCFG2DEPS $BCFG2 $RUNIT $OSTIARTY" -- cgit v1.2.3-1-g7c22