44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'vsftpd'
|
|
pkgname=vsftpd
|
|
version=3.0.5
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
makedepends="pam-devel libcap-devel libnsl-devel openssl-devel"
|
|
short_desc="FTP daemon with focus on security"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://security.appspot.com/vsftpd.html"
|
|
distfiles="https://security.appspot.com/downloads/${pkgname}-${version}.tar.gz"
|
|
checksum=26b602ae454b0ba6d99ef44a09b6b9e0dfa7f67228106736df1f278c70bc91d3
|
|
|
|
system_accounts="ftp"
|
|
ftp_pgroup=nogroup
|
|
CFLAGS="-Wno-error"
|
|
conf_files="/etc/vsftpd.conf"
|
|
|
|
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
|
|
}
|
|
|
|
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 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 usr/share/doc/$pkgname/$i
|
|
done
|
|
}
|