thttpd: modernize.
This commit is contained in:
parent
29e6c1918b
commit
0e0fc7b706
1 changed files with 5 additions and 12 deletions
|
@ -1,7 +1,8 @@
|
||||||
# Template file for 'thttpd'
|
# Template file for 'thttpd'
|
||||||
pkgname=thttpd
|
pkgname=thttpd
|
||||||
version=2.25b
|
version=2.25b
|
||||||
revision=1
|
revision=2
|
||||||
|
build_style=gnu-configure
|
||||||
short_desc="Tiny/turbo/throttling HTTP server"
|
short_desc="Tiny/turbo/throttling HTTP server"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
|
@ -9,20 +10,12 @@ homepage="http://www.acme.com/software/thttpd/"
|
||||||
distfiles="http://www.acme.com/software/thttpd/thttpd-${version}.tar.gz"
|
distfiles="http://www.acme.com/software/thttpd/thttpd-${version}.tar.gz"
|
||||||
checksum=07719b08b1cff6a21c08697a7bcb4395425b07ee753106262fb62a03a7d32360
|
checksum=07719b08b1cff6a21c08697a7bcb4395425b07ee753106262fb62a03a7d32360
|
||||||
|
|
||||||
do_configure() {
|
pre_configure() {
|
||||||
sed -e "s,-o bin -g bin,,g" -i Makefile.in
|
sed -e "s,-o bin -g bin,,g" -i Makefile.in
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
./configure --prefix=/usr --host=$XBPS_CROSS_TRIPLET
|
|
||||||
else
|
|
||||||
./configure --prefix=/usr
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
pre_build() {
|
||||||
do_build() {
|
export LD=$CC
|
||||||
make LD=$CC ${makejobs}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
vmkdir usr/share/man/man1
|
vmkdir usr/share/man/man1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue