VERSION=1.2.2rc1 BUILD=1 ARCH=i386 TAG=REC PKGNAME=proftpd MAINTAINER="tg " IGNOREPATH=/tmp:/proc:/dev:/root:/var:/home STRIPLIB=y STRIPBIN=y PROGNAME="proftpd-$VERSION" DESC="\ proftpd-$VERSION\n\ \n\ ProFTPD is the Professional File Transfer Protocol (FTP) server\n\ daemon. ProFTPD grew out of the desire to have a secure and\n\ configurable FTP server, and out of a significant admiration of the\n\ Apache web server. ProFTPD powers major sites like ftp.kernel.org." compile() { tar xvyf $CWD/proftpd-$VERSION.tar.bz2 cd proftpd-$VERSION #zcat $CWD/proftpd-$VERSION.diff.gz | patch -p1 CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/run \ --with-modules=mod_readme:mod_linuxprivs:mod_ratio:mod_wrap \ $ARCH-slackware-linux # This caused funny messages about "Quotas off" with every FTP command: # --with-modules=mod_readme:mod_linuxprivs:mod_ratio:mod_quota:mod_wrap make } install() { # install binaries cp ftpcount ftpwho /usr/bin cp ftpshut /usr/sbin cp proftpd /usr/sbin/proftpd.N mv /usr/sbin/proftpd.N /usr/sbin/proftpd ( cd /usr/sbin ; rm -rf in.proftpd ; ln -sf proftpd in.proftpd ) # install man pages ( cd src cp *.1 /usr/man/man1 cp *.5 /usr/man/man5 cp *.8 /usr/man/man8 ) # install config files cp $CWD/etc/proftpd.conf /etc cp $CWD/etc/ftpusers /etc # install documentation mkdir -p /usr/doc/proftpd-$VERSION cp -r COPYING CREDITS ChangeLog INSTALL NEWS README* \ contrib/README.mod_wrap contrib/README.ratio \ /usr/doc/proftpd-$VERSION cp contrib/README /usr/doc/proftpd-$VERSION/README.contrib cp -r doc sample-configurations /usr/doc/proftpd-$VERSION } attributes() { chmod 755 $PKG/usr/doc/proftpd-$VERSION/doc/GetConf chmod 755 $PKG/usr/doc/proftpd-$VERSION/doc/ShowUndocumented chmod 755 $PKG/usr/doc/proftpd-$VERSION/sample-configurations/PFTEST.install } special() { mkdir -p $PKG/home/ftp mkdir -p $PKG/var/run/proftpd }