opt/vsftpd/Pkgfile

25 lines
787 B
Plaintext

# Description: Probably the most secure and fastest FTP server
# URL: http://vsftpd.beasts.org
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# Depends on: openssl
name=vsftpd
version=2.0.5
release=2
source=(ftp://vsftpd.beasts.org/users/cevans/$name-$version.tar.gz \
$name-config.patch $name-$version-syscall.patch vsftpd)
build () {
cd $name-$version
patch -p1 -i $SRC/$name-$version-syscall.patch
patch -p1 -i $SRC/$name-config.patch
make
make DESTDIR=$PKG install
install -d $PKG/{etc/{rc.d,ssl/{certs,keys}},var/log}
install -m 755 $SRC/vsftpd $PKG/etc/rc.d
touch $PKG/etc/ssl/{certs/$name.crt,keys/$name.key}
chmod 600 $PKG/etc/ssl/{certs/$name.crt,keys/$name.key}
touch $PKG/var/log/vsftpd.log
}