41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
|
# Description: Apache HTTP server version 2.0.x
|
|||
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
|||
|
# URL: http://httpd.apache.org/
|
|||
|
# Depends on: apr, db, expat, gdbm, openssl, zlib
|
|||
|
# Group: apache
|
|||
|
|
|||
|
name=apache
|
|||
|
version=2.0.55
|
|||
|
release=1
|
|||
|
source=(http://www.apache.org/dist/httpd/httpd-$version.tar.bz2 \
|
|||
|
$name-ssl_cert.patch crux.layout apache)
|
|||
|
|
|||
|
build(){
|
|||
|
cd httpd-$version
|
|||
|
patch -p1 < $SRC/$name-ssl_cert.patch
|
|||
|
cat $SRC/crux.layout >> config.layout
|
|||
|
./configure --enable-layout=CRUX \
|
|||
|
--with-apr=/usr \
|
|||
|
--with-apr-util=/usr \
|
|||
|
--enable-so \
|
|||
|
--enable-modules=all \
|
|||
|
--enable-mods-shared=all \
|
|||
|
--enable-ssl \
|
|||
|
--enable-deflate \
|
|||
|
--enable-proxy{,-connect,-ftp,-http} \
|
|||
|
--enable{,-disk,-mem}-cache \
|
|||
|
--with-gdbm \
|
|||
|
--with-expat=/usr \
|
|||
|
--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
|
|||
|
|
|||
|
rm -R $PKG/var/www/htdocs/*
|
|||
|
chown -R root:root $PKG
|
|||
|
}
|