void-packages/srcpkgs/twoftpd/template

35 lines
889 B
Bash

# Template file for 'twoftpd'
pkgname=twoftpd
version=1.43
revision=4
build_style=gnu-makefile
depends="sv-helper ucspi-tcp"
makedepends="bglibs-devel cvm-devel"
short_desc="Simple secure efficient FTP server"
maintainer="bougyman <bougyman@voidlinux.org>"
license="GPL-2"
homepage="http://untroubled.org/twoftpd/"
distfiles="http://untroubled.org/twoftpd/twoftpd-1.43.tar.gz"
checksum=ed77d2f3020bdbbe1a0a7d9a84780f3525431300e5000901e95a982873e24dc3
system_accounts="ftp"
ftp_pgroup="nogroup"
pre_build() {
echo '/usr/bin' > conf-bin
echo '/usr/share/man' > conf-man
echo '/usr/include' > conf-include
echo '/usr/lib' > conf-lib
echo "$CC $LDFLAGS" > conf-ld
sed -e 's|/usr/local/include|/usr/include|' -e "s|gcc|$CC $CFLAGS|" \
-i conf-cc
}
do_install() {
make install install_prefix=${DESTDIR}
vsv twoftpd-anon
vlicense COPYING
vdoc README
vdoc NEWS
vdoc ANNOUNCEMENT
}