* Descriptors for Berkeley DB and SWIG.

* Updated to Apache httpd 2.0.46.
* Build Subversion/Python bindings.

svn path=/nixpkgs/trunk/; revision=76
This commit is contained in:
Eelco Dolstra 2003-05-30 20:57:34 +00:00
parent c43c6511f4
commit 93c7c89b1a
12 changed files with 88 additions and 22 deletions

12
build/db4-build.sh Executable file
View File

@ -0,0 +1,12 @@
#! /bin/sh
export PATH=/bin:/usr/bin
top=`pwd`
tar xvfz $src || exit 1
cd db-*/build_unix || exit 1
../dist/configure --prefix=$top --enable-cxx --enable-compat185 || exit 1
make || exit 1
make install || exit 1
cd $top || exit 1
rm -rf db-* || exit 1

View File

@ -1,11 +1,12 @@
#! /bin/sh
export PATH=/bin:/usr/bin
export LD_LIBRARY_PATH=$ssl/lib:
top=`pwd`
tar xvfz $src || exit 1
cd httpd-* || exit 1
./configure --prefix=$top --enable-ssl --with-ssl=$ssl --enable-mods-shared=all || exit 1
./configure --prefix=$top --enable-ssl --with-ssl=$ssl --with-berkeley-db=$db4 --enable-mods-shared=all || exit 1
make || exit 1
make install || exit 1
cd $top || exit 1

View File

@ -5,7 +5,7 @@ export PATH=/bin:/usr/bin
top=`pwd`
tar xvfz $src || exit 1
cd openssl-* || exit 1
./config --prefix=$top || exit 1
./config --prefix=$top shared || exit 1
make || exit 1
make install || exit 1
cd $top || exit 1

View File

@ -8,9 +8,9 @@ my $selfdir = cwd;
my @dirs = ("bin", "sbin", "lib", "include", "man");
# Create the subdirectories.
mkdir $selfdir;
mkdir $selfdir, 0755;
foreach my $dir (@dirs) {
mkdir "$selfdir/$dir";
mkdir "$selfdir/$dir", 0755;
}
# For each activated package, create symlinks.
@ -28,7 +28,7 @@ sub createLinks {
if (-d $srcfile) {
# !!! hack for resolving name clashes
if (!-e $dstfile) {
mkdir($dstfile) or
mkdir $dstfile, 0755 or
die "error creating directory $dstfile";
}
-d $dstfile or die "$dstfile is not a directory";

View File

@ -1,18 +1,27 @@
#! /bin/sh
export PATH=$libxml/bin:/bin:/usr/bin
export PATH=$libxml/bin:/bin:/usr/bin:/usr/local/bin
export LD_LIBRARY_PATH=$ssl/lib:
export LDFLAGS=-s
top=`pwd`
if test $localServer; then
extraflags="--with-berkeley-db=$db4 $extraflags"
fi
if test $httpsClient; then
extraflags="--with-ssl --with-libs=$ssl $extraflags"
fi
if test $httpServer; then
extraflags="--with-apxs=$httpd/bin/apxs --with-apr=$httpd --with-apr-util=$httpd $extraflags"
extrainst="APACHE_LIBEXECDIR=$top/modules $extrainst"
extramakeflags="APACHE_LIBEXECDIR=$top/modules $extramakeflags"
fi
if test $pythonBindings; then
extraflags="--with-swig=$swig $extraflags"
fi
echo "extra flags: $extraflags"
@ -20,7 +29,13 @@ echo "extra flags: $extraflags"
tar xvfz $src || exit 1
cd subversion-* || exit 1
./configure --prefix=$top $extraflags || exit 1
make || exit 1
make install $extrainst || exit 1
make $extramakeflags || exit 1
make install $extramakeflags || exit 1
if test $pythonBindings; then
make swig-py || exit 1
make install-swig-py || exit 1
fi
cd $top || exit 1
rm -rf subversion-* || exit 1

12
build/swig-build.sh Executable file
View File

@ -0,0 +1,12 @@
#! /bin/sh
export PATH=/bin:/usr/bin:/usr/local/bin
top=`pwd`
tar xvfz $src || exit 1
cd SWIG-* || exit 1
./configure --prefix=$top || exit 1
gmake || exit 1
gmake install || exit 1
cd $top || exit 1
rm -rf SWIG-* || exit 1

View File

@ -0,0 +1,8 @@
Descr(
[ Bind("pkgId", "db-4.0.14")
, Bind("releaseId", "1")
, Bind("src", Url("12262c64fcd64b772e7cffad8e4d0ebc", "http://www.sleepycat.com/update/snapshot/db-4.0.14.tar.gz"))
, Bind("build", Local("../build/db4-build.sh"))
]
)

View File

@ -1,10 +0,0 @@
Descr(
[ Bind("pkgId", "httpd-2.0.45")
, Bind("releaseId", "1")
, Bind("ssl", Fix("./openssl-0.9.7b.fix"))
, Bind("src", Url("1f33e9a2e2de06da190230fa72738d75", "http://apache.cs.uu.nl/dist/httpd/httpd-2.0.45.tar.gz"))
, Bind("build", Local("../build/httpd-build.sh"))
]
)

View File

@ -0,0 +1,11 @@
Descr(
[ Bind("pkgId", "httpd-2.0.46")
, Bind("releaseId", "1")
, Bind("ssl", Fix("./openssl-0.9.7b.fix"))
, Bind("db4", Fix("./db-4.0.14.fix"))
, Bind("src", Url("ff682f82f0808eb01df60824d959ebe8", "http://apache.cs.uu.nl/dist/httpd/httpd-2.0.46.tar.gz"))
, Bind("build", Local("../build/httpd-build.sh"))
]
)

View File

@ -1,16 +1,22 @@
Descr(
[ Bind("pkgId", "subversion-0.23.0")
, Bind("releaseId", "1")
, Bind("releaseId", "3")
, Bind("localServer", Bool(True))
, Bind("httpsClient", Bool(True))
, Bind("httpServer", Bool(True))
, Bind("httpsServer", Bool(True))
, Bind("pythonBindings", Bool(True))
, Bind("libxml", Fix("./libxml2-2.5.7.fix"))
, Bind("db4", If(Var("localServer"), Fix("./db-4.0.14.fix"), ""))
, Bind("ssl", If(Var("httpsClient"), Fix("./openssl-0.9.7b.fix"), ""))
, Bind("httpd", If(Var("httpServer"), Fix("./httpd-2.0.45.fix"), ""))
, Bind("httpd", If(Var("httpServer"), Fix("./httpd-2.0.46.fix"), ""))
, Bind("libxml", Fix("./libxml2-2.5.7.fix"))
, Bind("swig", If(Var("pythonBindings"), Fix("./swig-1.3.19.fix"), ""))
, Bind("src", Url("59661f2145976437b371a0ab3a555dbd", "http://subversion.tigris.org/files/documents/15/4218/subversion-0.23.0.tar.gz"))
, Bind("build", Local("../build/subversion-build.sh"))

View File

@ -0,0 +1,8 @@
Descr(
[ Bind("pkgId", "swig-1.3.19")
, Bind("releaseId", "1")
, Bind("src", Url("a733455544426b31868dd87fc162e750", "http://heanet.dl.sourceforge.net/sourceforge/swig/swig-1.3.19.tar.gz"))
, Bind("build", Local("../build/swig-build.sh"))
]
)

View File

@ -17,6 +17,9 @@ Descr(
, Bind("actGtkspell", Fix("./gtkspell-2.0.2.fix"))
, Bind("actPan", Fix("./pan-0.14.0.fix"))
, Bind("actSubversion", Fix("./subversion-0.23.0.fix"))
, Bind("actDb4", Fix("./db-4.0.14.fix"))
, Bind("actHttpd", Fix("./httpd-2.0.46.fix"))
, Bind("actSsl", Fix("./openssl-0.9.7b.fix"))
, Bind("build", Local("../build/populate-linkdirs.pl"))
]