opt/apache/Pkgfile

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2007-03-15 18:44:14 +01:00
# Description: Apache HTTP server version 2.2.x
2008-07-11 09:29:19 +02:00
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
2006-02-23 16:26:10 +01:00
# URL: http://httpd.apache.org/
# Depends on: apr libpcre openssl zlib
2006-02-23 16:26:10 +01:00
# Group: apache
name=apache
version=2.2.15
2010-03-14 15:17:35 +01:00
release=2
2006-02-23 16:26:10 +01:00
source=(http://www.apache.org/dist/httpd/httpd-$version.tar.bz2 \
$name-ssl_cert.patch crux.layout apache)
build(){
cd httpd-$version
2006-11-25 16:14:10 +01:00
2006-02-23 16:26:10 +01:00
patch -p1 < $SRC/$name-ssl_cert.patch
cat $SRC/crux.layout >> config.layout
2006-11-25 16:14:10 +01:00
2006-02-23 16:26:10 +01:00
./configure --enable-layout=CRUX \
--with-apr=/usr \
--with-apr-util=/usr \
--with-pcre=/usr \
2006-02-23 16:26:10 +01:00
--enable-so \
--enable-modules=all \
--enable-mods-shared=all \
--enable-ssl \
2010-03-14 15:17:35 +01:00
--enable-proxy \
--enable-cache --enable-{disk,file,mem}-cache \
2006-02-23 16:26:10 +01:00
--with-mpm=prefork
make
make DESTDIR=$PKG install
mkdir -p $PKG/etc/ssl/{keys,certs}
touch $PKG/etc/ssl/keys/apache.key
touch $PKG/etc/ssl/certs/apache.crt
install -D -m 755 $SRC/apache $PKG/etc/rc.d/apache
2006-11-25 16:14:10 +01:00
sed -ri '/^(User|Group)/s/daemon/www/' $PKG/etc/apache/httpd.conf
sed -i '1s|local/||' $PKG/var/www/cgi-bin/printenv
rm -R $PKG/{var/www/htdocs/*,usr/bin}
rm $PKG/var/www/{error,icons}/README*
2006-02-23 16:26:10 +01:00
}