From 7a90ea4debcdcb729197fbd926e8a0e840b312a6 Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Thu, 24 Aug 2006 02:59:47 +0000 Subject: EncapPackages: Restructuring directory layout git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2100 ce84e21b-d406-0410-9b95-82705330c041 --- encap/epkg/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ encap/epkg/README | 23 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 encap/epkg/Makefile create mode 100644 encap/epkg/README (limited to 'encap/epkg') diff --git a/encap/epkg/Makefile b/encap/epkg/Makefile new file mode 100644 index 000000000..6f4cf7277 --- /dev/null +++ b/encap/epkg/Makefile @@ -0,0 +1,43 @@ +# $Id$ + +.PHONY : all clean distclean install zlib libtar openssl curl fget expat epkg +.SUFFIXES : + +BASEDIR = /usr/local +ENCAPDIR = ${BASEDIR}/encap +PREFIX = /tmp/epkg-static-libs +PATH = ${PREFIX}/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/local/bin:/opt/csw/bin:/usr/sbin:/usr/bin +LDFLAGS = -L${PREFIX}/lib +CPPFLAGS = -I${PREFIX}/include +export PATH LDFLAGS CPPFLAGS + +ZLIB = zlib-1.2.3 +LIBTAR = libtar-1.2.11 +OPENSSL = openssl-0.9.8b +CURL = curl-7.15.4 +FGET = fget-1.3.3 +EXPAT = expat-2.0.0 +EPKG = epkg-2.3.9 + +all: zlib libtar openssl curl fget expat epkg + +zlib: + cd ${ZLIB} && prefix=${PREFIX} CC=gcc ./configure && $(MAKE) && $(MAKE) install + +libtar: + cd ${LIBTAR} && ./configure --disable-encap --disable-epkg-install --prefix=${PREFIX} && $(MAKE) && $(MAKE) install + +openssl: + cd ${OPENSSL} && ./config --prefix=${PREFIX} zlib no-shared && $(MAKE) && $(MAKE) install + +curl: + cd ${CURL} && ./configure --disable-ipv6 --disable-shared --prefix=${PREFIX} && $(MAKE) && $(MAKE) install + +fget: + cd ${FGET} && ./configure --disable-encap --disable-epkg-install --prefix=${PREFIX} && $(MAKE) && $(MAKE) install + +expat: + cd ${EXPAT} && ./configure --disable-shared --prefix=${PREFIX} && $(MAKE) && $(MAKE) install + +epkg: + cd ${EPKG} && ./configure && $(MAKE) && $(MAKE) install \ No newline at end of file diff --git a/encap/epkg/README b/encap/epkg/README new file mode 100644 index 000000000..99355280b --- /dev/null +++ b/encap/epkg/README @@ -0,0 +1,23 @@ +If you can't find an epkg binary compiled with all of the extra +libraries for your platform, you can use this Makefile (which will +probably require a little bit of editing for platforms other than +Solaris/x86 10) to compile it. + +You'll need to manually download the versions of packages you want to +this directory, edit the Makefile to refer to those versions, +decompress/untar the distributions, and then run make (or gmake on +non-GNU platforms) + +All of the software is available from http://www.dclark.us/mirror (or +Google for it). + +Once you have a working epkg distribution, you should: + * cd /usr/local/encap + * mkencap -c epkg-x.y.z + * Rename the tar.gz file with the appropriate encap string + (i.e. mv epkg-x.y.z.tar.gz epkg-x.y.z-encap-i386-solaris10.tar.gz) + * Upload that file to the encap repository at: + http://www.encap.org/search/upload.fcgi + * Update the ticket at http://trac.mcs.anl.gov/projects/bcfg2/ticket/74 + with a quick note stating you've done the encap upload so it can be + mirrored at http://www.dclark.us/mirror/epkg-contrib -- cgit v1.2.3-1-g7c22