#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=chttpd pkgver=1.3 pkgrel=1gv arch=x86_64 source=("http://nwonknu.org/software/chttpd/chttpd-1.3.tgz" "rc.chttpd" "chttpd.txt" "chttpd-index.html" "chttpd-1.3-config.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://nwonknu.org/chttpd/ options=('noautodotnew') dotnew=("etc/chttpd.conf") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "chttpd (a very small and portable webserver)" "chttpd is a tiny and efficient stand alone web server written" "entirely in C. It is an an improvement off of dhttpd." ) build() { cd $startdir/src/$pkgname patch -p1 < $startdir/src/chttpd-1.3-config.patch || exit 1 sed -i "s/-O2/$CFLAGS/" $startdir/src/chttpd/src/Makefile.in ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/etc/rc.d/desc.d cp $startdir/src/chttpd.txt $startdir/pkg/etc/rc.d/desc.d cp $startdir/src/rc.chttpd $startdir/pkg/etc/rc.d mkdir -p $startdir/pkg/var/www cp $startdir/src/chttpd-index.html $startdir/pkg/var/www/index.html mkdir -p $startdir/pkg/var/log }