IGNOREPATH=/etc:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/home:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.2.10 PROGNAME="ProFTPD $VERSION" DESC="\ proftpd (FTP server daemon) \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." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.proftpd.org PKGNAME=proftpd-$VERSION-s390-$BUILD TAG=REC compile() { tar -yxvf $CWD/proftpd-$VERSION.tar.bz2 cd proftpd-$VERSION/ chown -R root.root . CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-autoshadow \ --localstatedir=/var/run \ --with-modules=mod_readme:mod_ratio:mod_tls:mod_wrap \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux # This caused funny messages about "Quotas off" with every FTP command, # and mod_wrap gets a compile error: # --with-modules=mod_readme:mod_ratio:mod_quota:mod_wrap make } install() { make install DESTDIR=/package-proftpd rm /package-proftpd/etc/proftpd.conf cp -p $CWD/etc/proftpd.conf /package-proftpd/etc/proftpd.conf.new cp -p $CWD/etc/ftpusers /package-proftpd/etc/ftpusers.new mkdir -p /package-proftpd/usr/doc/proftpd-$VERSION cp -a COPYING CREDITS ChangeLog INSTALL NEWS README* \ contrib/README.mod_wrap contrib/README.ratio \ /package-proftpd/usr/doc/proftpd-$VERSION cp -a contrib/README /package-proftpd/usr/doc/proftpd-$VERSION/README.contrib cp -a doc sample-configurations /package-proftpd/usr/doc/proftpd-$VERSION ( cd /package-proftpd/usr/man for dir in 1 5 8; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) mkdir -p /package-proftpd/home/ftp \ /package-proftpd/var/run/proftpd ( cd /package-proftpd/usr/sbin/ rm -rf in.proftpd ; ln -sf proftpd in.proftpd ) } attributes() { chown -R root.bin $PKG/package-proftpd/usr/bin \ $PKG/package-proftpd/usr/sbin chmod 744 $PKG/package-proftpd/usr/doc/proftpd-$VERSION/doc/GetConf \ $PKG/package-proftpd/usr/doc/proftpd-$VERSION/doc/ShowUndocumented \ $PKG/package-proftpd/usr/doc/proftpd-$VERSION/sample-configurations/PFTEST.install } special() { cd $PKG mv package-proftpd/* ./ rmdir package-proftpd/ cd $CTL cat $CWD/slack-desc > slack-desc zcat $CWD/doinst.sh.gz >> doinst.sh sed -e 's%package-proftpd/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }