void-packages/srcpkgs/thttpd/template

34 lines
922 B
Plaintext
Raw Normal View History

2013-04-23 09:44:03 +02:00
# Template file for 'thttpd'
pkgname=thttpd
version=2.25b
2014-06-05 11:53:15 +02:00
revision=2
build_style=gnu-configure
2013-04-23 09:44:03 +02:00
short_desc="Tiny/turbo/throttling HTTP server"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://www.acme.com/software/thttpd/"
distfiles="http://www.acme.com/software/thttpd/thttpd-${version}.tar.gz"
checksum=07719b08b1cff6a21c08697a7bcb4395425b07ee753106262fb62a03a7d32360
2014-06-05 11:53:15 +02:00
pre_configure() {
2013-04-23 09:44:03 +02:00
sed -e "s,-o bin -g bin,,g" -i Makefile.in
}
2014-06-05 11:53:15 +02:00
pre_build() {
export LD=$CC
2013-04-23 09:44:03 +02:00
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/man/man1
vmkdir usr/share/man/man8
make WEBGROUP=root \
WEBDIR=${DESTDIR}/usr/share/thttpd \
BINDIR=${DESTDIR}/usr/bin \
MANDIR=${DESTDIR}/usr/share/man install
# Rename htpasswd to not conflict with apache.
mv ${DESTDIR}/usr/bin/htpasswd ${DESTDIR}/usr/bin/thttpd-htpasswd
mv ${DESTDIR}/usr/share/man/man1/htpasswd.1 \
${DESTDIR}/usr/share/man/man1/thttpd-htpasswd.1
}