void-packages/srcpkgs/thttpd/template

36 lines
918 B
Text
Raw Normal View History

2013-04-23 07:44:03 +00:00
# Template file for 'thttpd'
pkgname=thttpd
2014-08-15 05:33:11 +00:00
version=2.26
2014-10-13 14:08:55 +00:00
revision=2
replaces="runit-void<20141013_2"
2014-06-05 09:53:15 +00:00
build_style=gnu-configure
2013-04-23 07:44:03 +00: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"
2014-08-15 05:33:11 +00:00
checksum=15b3f6c60f854061e333227e9ea9ff789d34a092c9365690a8c0d3ecfc85cbb7
2013-04-23 07:44:03 +00:00
2014-06-05 09:53:15 +00:00
pre_configure() {
2014-10-13 14:08:55 +00:00
sed "s,-o bin -g bin,,g" -i Makefile.in
2013-04-23 07:44:03 +00:00
}
2014-06-05 09:53:15 +00:00
pre_build() {
export LD=$CC
2013-04-23 07:44:03 +00:00
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/man/man1
vmkdir usr/share/man/man8
2014-10-13 14:08:55 +00:00
make WEBGROUP=$(whoami) \
2013-04-23 07:44:03 +00:00
WEBDIR=${DESTDIR}/usr/share/thttpd \
BINDIR=${DESTDIR}/usr/bin \
MANDIR=${DESTDIR}/usr/share/man install
2014-10-13 14:08:55 +00:00
vsv thttpd
2013-04-23 07:44:03 +00:00
# Rename htpasswd to not conflict with apache.
2014-10-13 14:08:55 +00:00
mv ${DESTDIR}/usr/bin/{htpasswd,thttpd-htpasswd}
mv ${DESTDIR}/usr/share/man/man1/{htpasswd,thttpd-htpasswd}.1
2013-04-23 07:44:03 +00:00
}