36 lines
918 B
Bash
36 lines
918 B
Bash
# Template file for 'thttpd'
|
|
pkgname=thttpd
|
|
version=2.26
|
|
revision=2
|
|
replaces="runit-void<20141013_2"
|
|
build_style=gnu-configure
|
|
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=15b3f6c60f854061e333227e9ea9ff789d34a092c9365690a8c0d3ecfc85cbb7
|
|
|
|
pre_configure() {
|
|
sed "s,-o bin -g bin,,g" -i Makefile.in
|
|
}
|
|
pre_build() {
|
|
export LD=$CC
|
|
}
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
vmkdir usr/share/man/man1
|
|
vmkdir usr/share/man/man8
|
|
|
|
make WEBGROUP=$(whoami) \
|
|
WEBDIR=${DESTDIR}/usr/share/thttpd \
|
|
BINDIR=${DESTDIR}/usr/bin \
|
|
MANDIR=${DESTDIR}/usr/share/man install
|
|
|
|
vsv thttpd
|
|
|
|
# Rename htpasswd to not conflict with apache.
|
|
mv ${DESTDIR}/usr/bin/{htpasswd,thttpd-htpasswd}
|
|
mv ${DESTDIR}/usr/share/man/man1/{htpasswd,thttpd-htpasswd}.1
|
|
}
|