summaryrefslogtreecommitdiffstats
path: root/apr/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /apr/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'apr/Pkgfile')
-rw-r--r--apr/Pkgfile36
1 files changed, 36 insertions, 0 deletions
diff --git a/apr/Pkgfile b/apr/Pkgfile
new file mode 100644
index 000000000..d3832c89e
--- /dev/null
+++ b/apr/Pkgfile
@@ -0,0 +1,36 @@
+# Description: Librairie exécutables pour Apache
+# URL: http://apr.apache.org/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: expat, sqlite3, libpostgresql, unixodbc
+# Run on: expat,sqlite3
+
+name=apr
+version=1.4.5
+release=1
+utilver=1.3.12
+source=(http://mirror.switch.ch/mirror/apache/dist/$name/$name-$version.tar.bz2 \
+ http://mirror.switch.ch/mirror/apache/dist/$name/$name-util-$utilver.tar.bz2)
+
+build() {
+ cd $name-$version
+ ./configure --prefix=/usr \
+ --with-devrandom=/dev/urandom \
+ --infodir=/usr/share/info \
+ --with-installbuilddir=/usr/share/apr-1
+ make
+ make DESTDIR=$PKG install
+ cd $SRC/$name-util-$utilver
+ ./configure --prefix=/usr \
+ --with-apr=$SRC/$name-$version \
+ --with-expat=/usr \
+ --with-berkeley-db=/usr \
+ --with-gdbm=/usr
+ make
+ make DESTDIR=$PKG install
+
+ sed -i -r "/^APR_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apr-1-config
+ sed -i -r "/^APU_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apu-1-config
+ rm -r $PKG/usr/lib/*.exp
+}
+