summaryrefslogtreecommitdiffstats
path: root/apache/Pkgfile
blob: b615be9012e6c49b907414fe9f44f517dafee257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
}