summaryrefslogtreecommitdiff
path: root/pure-ftpd/Pkgfile
blob: 2e610629920a4775499ca7ad15297b4a89f32464 (plain)
    1 # Description: Fast, secure, production-quality and standard-conformant FTP server
    2 # URL: https://www.pureftpd.org/project/pure-ftpd
    3 # Maintainer: Juergen Daubert, jue at crux dot nu
    4 # Depends on: openssl
    5 
    6 name=pure-ftpd
    7 version=1.0.51
    8 release=1
    9 source=(https://download.pureftpd.org/$name/releases/$name-$version.tar.bz2 \
   10 	pure-ftpd.rc pure-ftpd.pam)
   11 
   12 build() {
   13 	cd $name-$version
   14 
   15 	./configure \
   16 		--prefix=/usr \
   17 		--with-certfile=/etc/ssl/certs/pure-ftpd.pem \
   18 		--with-everything \
   19 		--with-tls \
   20 		--with-pam
   21 	make
   22 	make DESTDIR=$PKG install
   23 
   24 	install -d $PKG/etc/ssl/certs
   25 	touch $PKG/etc/ssl/certs/pure-ftpd.pem
   26 	chmod 0600 $PKG/etc/ssl/certs/pure-ftpd.pem
   27 
   28 	install -D -m 755 $SRC/pure-ftpd.rc $PKG/etc/rc.d/pure-ftpd
   29 	install -D -m 644 $SRC/pure-ftpd.pam $PKG/etc/pam.d/pure-ftpd
   30 	install -m 644 pam/ftpusers $PKG/etc/
   31 	install -m 644 pure-ftpd.conf $PKG/etc/
   32 
   33 	sed '/PIDFile/c PIDFile /run/pure-ftpd.pid' -i $PKG/etc/pure-ftpd.conf
   34 
   35 	rm -r $PKG/usr/share/doc
   36 }

Generated by cgit