void-packages/srcpkgs/vsftpd/template

43 lines
1.2 KiB
Bash
Raw Normal View History

2015-12-03 23:22:53 +01:00
# Template file for 'vsftpd'
pkgname=vsftpd
version=3.0.3
2015-12-04 06:33:50 +01:00
revision=2
2015-12-03 23:22:53 +01:00
build_style=gnu-makefile
makedepends="pam-devel libcap-devel libressl-devel"
short_desc="FTP deamon with focus on security"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-3"
homepage="https://security.appspot.com/vsftpd.html"
distfiles="https://security.appspot.com/downloads/$pkgname-$version.tar.gz"
checksum=9d4d2bf6e6e2884852ba4e69e157a2cecd68c5a7635d66a3a8cf8d898c955ef7
system_accounts="ftp"
ftp_pgroup="nogroup"
CFLAGS="-Wno-error"
conf_files="/etc/vsftpd.conf"
2015-12-03 23:22:53 +01:00
do_configure() {
local _nlsstring='-lcrypt -lnsl';
case "$XBPS_TARGET_MACHINE" in
*-musl) _nlsstring=-lcrypt ;;
esac
sed -i 's/#undef VSF_BUILD_SSL/#define VSF_BUILD_SSL/' builddefs.h
sed -i "s/-lcrypt -lnsl/${_nlsstring} -lssl -lcrypto/" Makefile
2015-12-03 23:22:53 +01:00
}
do_install() {
vbin $pkgname
vconf $pkgname.conf
vman $pkgname.8
vman $pkgname.conf.5
vinstall EXAMPLE/INTERNET_SITE/$pkgname.xinetd 644 $pkgdir/etc/xinetd.d/$pkgname
vinstall RedHat/$pkgname.log 644 $DESTDIR/etc/logrotate.d/$pkgname
vsv vsftpd
vsv vsftpd-ipv6
for i in BENCHMARKS BUGS Changelog FAQ INSTALL README README.ssl REFS \
REWARD SPEED TODO TUNING; do
vinstall $i 644 "$DESTDIR"/usr/share/doc/$pkgname/$i
done
}