summaryrefslogtreecommitdiffstats
path: root/apache/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-05-13 21:25:08 +0200
committerpiernov <piernov@piernov.org>2012-05-13 21:25:08 +0200
commitf35fb119bf993d3454668f50a17334e09b77160b (patch)
tree9f1d840f10e24848f8b94eb9c5c4e811e0984232 /apache/Pkgfile
parent2814457a550d6a14e6134ac4c06b1f96a92d2061 (diff)
parent933ac25d27eb5fa5f8f983ab8ac8d507e773c044 (diff)
downloadnutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.tar.gz
nutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.tar.bz2
nutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.tar.xz
nutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.zip
Merge branch 'master' of http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe
Diffstat (limited to 'apache/Pkgfile')
-rw-r--r--apache/Pkgfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/apache/Pkgfile b/apache/Pkgfile
new file mode 100644
index 000000000..b615be901
--- /dev/null
+++ b/apache/Pkgfile
@@ -0,0 +1,42 @@
+# Description: Serveur Apache HTTP version 2.2.x
+# Maintainer: NuTyX coreteam / Linux from scratch
+# Packager: thierryn1 at hispeed dot ch
+# URL: http://httpd.apache.org/
+# Depends on: apr, sqlite3
+# Run on: apr,sqlite3,libpostgresql
+
+name=apache
+version=2.2.20
+release=3
+source=(http://archive.apache.org/dist/httpd/httpd-$version.tar.bz2 \
+ http://www.linuxfromscratch.org/patches/blfs/svn/httpd-2.2.21-config-1.patch )
+
+# http://www.linuxfromscratch.org/patches/blfs/svn/httpd-2.2.21-bdb51-1.patch \
+# http://www.linuxfromscratch.org/patches/blfs/svn/httpd-2.2.21-config-1.patch )
+
+build(){
+ source /etc/blfs-bootscripts
+# wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
+ wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2
+ tar xvf $scripts-$scriptsversion.tar.bz2
+ cd httpd-$version
+ patch -Np1 -i ../httpd-2.2.21-config-1.patch
+ ./configure --enable-layout=FHS --enable-mods-shared=all
+ make
+ make DESTDIR=$PKG install
+
+ mkdir -p $PKG/etc/ssl/{keys,certs}
+ # Installation
+ chown -R root:root $PKG
+ sed -i "s/^LoadModule isapi_module/# &/" \
+ $PKG/etc/apache/httpd.conf
+ sed -ri '/^(User|Group)/s/daemon/apache/' $PKG/etc/apache/httpd.conf
+ # sed -i '1s|local/||' $PKG/var/www/cgi-bin/printenv
+ rm -R $PKG/{srv/www/htdocs/*,usr/bin}
+ rm $PKG/srv/www/{error,icons}/README*
+
+ # Installation of the script
+ cd ../$scripts-$scriptsversion
+ make DESTDIR=$PKG install-apache
+}
+