opt/mathopd/Pkgfile

32 lines
977 B
Plaintext

# Description: Very fast and highly configurable HTTP server
# URL: http://www.mathopd.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
name=mathopd
version=1.6b15
release=2
source=(http://www.mathopd.org/dist/$name-$version.tar.gz \
http://jue.li/misc/dir_cgi/dir_cgi-1.1.tar.gz \
http://www.mathopd.org/doc/mathopd.8.gz \
http://www.mathopd.org/doc/mathopd.conf.5.gz \
mathopd-config.patch mathopd.conf mathopd)
build () {
cd $name-$version/src
patch -p2 -i $SRC/mathopd-config.patch
make
install -d $PKG/{var/log,etc/rc.d,usr/{bin,sbin,man/man{8,5}}}
install -m 755 mathopd $PKG/usr/sbin
install -m 644 $SRC/mathopd.conf $PKG/etc
install -m 755 $SRC/mathopd $PKG/etc/rc.d
install -m 644 $SRC/mathopd.8.gz $PKG/usr/man/man8
install -m 644 $SRC/mathopd.conf.5.gz $PKG/usr/man/man5
install -d -o www -g www $PKG/var/log/mathopd
cd $SRC/dir_cgi-1.1
make DESTDIR=$PKG install
}