void-packages/srcpkgs/vsftpd/template
Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

44 lines
1.2 KiB
Bash

# Template file for 'vsftpd'
pkgname=vsftpd
version=3.0.4
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=6b9421bd27e8a6cdeed5b31154f294a20b003a11a26c09500715a0a6b1b86a26
patch_args=-Np0
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
}