* 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:
parent
c43c6511f4
commit
93c7c89b1a
|
@ -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
|
|
@ -1,11 +1,12 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
export PATH=/bin:/usr/bin
|
export PATH=/bin:/usr/bin
|
||||||
|
export LD_LIBRARY_PATH=$ssl/lib:
|
||||||
|
|
||||||
top=`pwd`
|
top=`pwd`
|
||||||
tar xvfz $src || exit 1
|
tar xvfz $src || exit 1
|
||||||
cd httpd-* || 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 || exit 1
|
||||||
make install || exit 1
|
make install || exit 1
|
||||||
cd $top || exit 1
|
cd $top || exit 1
|
||||||
|
|
|
@ -5,7 +5,7 @@ export PATH=/bin:/usr/bin
|
||||||
top=`pwd`
|
top=`pwd`
|
||||||
tar xvfz $src || exit 1
|
tar xvfz $src || exit 1
|
||||||
cd openssl-* || exit 1
|
cd openssl-* || exit 1
|
||||||
./config --prefix=$top || exit 1
|
./config --prefix=$top shared || exit 1
|
||||||
make || exit 1
|
make || exit 1
|
||||||
make install || exit 1
|
make install || exit 1
|
||||||
cd $top || exit 1
|
cd $top || exit 1
|
||||||
|
|
|
@ -8,9 +8,9 @@ my $selfdir = cwd;
|
||||||
my @dirs = ("bin", "sbin", "lib", "include", "man");
|
my @dirs = ("bin", "sbin", "lib", "include", "man");
|
||||||
|
|
||||||
# Create the subdirectories.
|
# Create the subdirectories.
|
||||||
mkdir $selfdir;
|
mkdir $selfdir, 0755;
|
||||||
foreach my $dir (@dirs) {
|
foreach my $dir (@dirs) {
|
||||||
mkdir "$selfdir/$dir";
|
mkdir "$selfdir/$dir", 0755;
|
||||||
}
|
}
|
||||||
|
|
||||||
# For each activated package, create symlinks.
|
# For each activated package, create symlinks.
|
||||||
|
@ -28,7 +28,7 @@ sub createLinks {
|
||||||
if (-d $srcfile) {
|
if (-d $srcfile) {
|
||||||
# !!! hack for resolving name clashes
|
# !!! hack for resolving name clashes
|
||||||
if (!-e $dstfile) {
|
if (!-e $dstfile) {
|
||||||
mkdir($dstfile) or
|
mkdir $dstfile, 0755 or
|
||||||
die "error creating directory $dstfile";
|
die "error creating directory $dstfile";
|
||||||
}
|
}
|
||||||
-d $dstfile or die "$dstfile is not a directory";
|
-d $dstfile or die "$dstfile is not a directory";
|
||||||
|
|
|
@ -1,18 +1,27 @@
|
||||||
#! /bin/sh
|
#! /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
|
export LDFLAGS=-s
|
||||||
|
|
||||||
top=`pwd`
|
top=`pwd`
|
||||||
|
|
||||||
|
if test $localServer; then
|
||||||
|
extraflags="--with-berkeley-db=$db4 $extraflags"
|
||||||
|
fi
|
||||||
|
|
||||||
if test $httpsClient; then
|
if test $httpsClient; then
|
||||||
extraflags="--with-ssl --with-libs=$ssl $extraflags"
|
extraflags="--with-ssl --with-libs=$ssl $extraflags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $httpServer; then
|
if test $httpServer; then
|
||||||
extraflags="--with-apxs=$httpd/bin/apxs --with-apr=$httpd --with-apr-util=$httpd $extraflags"
|
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
|
fi
|
||||||
|
|
||||||
echo "extra flags: $extraflags"
|
echo "extra flags: $extraflags"
|
||||||
|
@ -20,7 +29,13 @@ echo "extra flags: $extraflags"
|
||||||
tar xvfz $src || exit 1
|
tar xvfz $src || exit 1
|
||||||
cd subversion-* || exit 1
|
cd subversion-* || exit 1
|
||||||
./configure --prefix=$top $extraflags || exit 1
|
./configure --prefix=$top $extraflags || exit 1
|
||||||
make || exit 1
|
make $extramakeflags || exit 1
|
||||||
make install $extrainst || 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
|
cd $top || exit 1
|
||||||
rm -rf subversion-* || exit 1
|
rm -rf subversion-* || exit 1
|
||||||
|
|
|
@ -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
|
|
@ -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"))
|
||||||
|
]
|
||||||
|
)
|
|
@ -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"))
|
|
||||||
]
|
|
||||||
)
|
|
|
@ -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"))
|
||||||
|
]
|
||||||
|
)
|
|
@ -1,16 +1,22 @@
|
||||||
Descr(
|
Descr(
|
||||||
[ Bind("pkgId", "subversion-0.23.0")
|
[ Bind("pkgId", "subversion-0.23.0")
|
||||||
, Bind("releaseId", "1")
|
, Bind("releaseId", "3")
|
||||||
|
|
||||||
|
, Bind("localServer", Bool(True))
|
||||||
, Bind("httpsClient", Bool(True))
|
, Bind("httpsClient", Bool(True))
|
||||||
, Bind("httpServer", Bool(True))
|
, Bind("httpServer", Bool(True))
|
||||||
, Bind("httpsServer", 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("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("src", Url("59661f2145976437b371a0ab3a555dbd", "http://subversion.tigris.org/files/documents/15/4218/subversion-0.23.0.tar.gz"))
|
||||||
, Bind("build", Local("../build/subversion-build.sh"))
|
, Bind("build", Local("../build/subversion-build.sh"))
|
||||||
|
|
|
@ -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"))
|
||||||
|
]
|
||||||
|
)
|
|
@ -17,6 +17,9 @@ Descr(
|
||||||
, Bind("actGtkspell", Fix("./gtkspell-2.0.2.fix"))
|
, Bind("actGtkspell", Fix("./gtkspell-2.0.2.fix"))
|
||||||
, Bind("actPan", Fix("./pan-0.14.0.fix"))
|
, Bind("actPan", Fix("./pan-0.14.0.fix"))
|
||||||
, Bind("actSubversion", Fix("./subversion-0.23.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"))
|
, Bind("build", Local("../build/populate-linkdirs.pl"))
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue