1
0
forked from ports/opt
opt/proftpd/Pkgfile
2005-11-30 14:06:50 +00:00

43 lines
1.1 KiB
Plaintext

# Description: Highly configurable GPL-licensed FTP server software
# URL: http://www.proftpd.org
# Maintainer: Simon Gloßner, viper at hometux dot de
# Packager: Daniel Mueller, daniel at danm dot de
name=proftpd
version=1.2.10
release=1
source=(ftp://ftp.proftpd.org/distrib/source/$name-$version.tar.bz2 \
proftpd ftpusers)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--sysconfdir=/etc/proftpd \
--localstatedir=/var \
--with-modules="mod_ratio:mod_rewrite:mod_tls:mod_wrap:mod_readme"
mkdir -p $PKG/etc/rc.d $PKG/var/run/proftpd
# Correct PID/RUN path
sed -i \
-e 's|^\#define PID_FILE_PATH.*|\#define PID_FILE_PATH "/var/run/proftpd/proftpd.pid"|' \
-e 's|^\#define RUN_DIR.*|\#define RUN_DIR "/var/run/proftpd"|' \
config.h
make
make DESTDIR=$PKG install
install -m 755 ../proftpd $PKG/etc/rc.d/
install -m 644 ../ftpusers $PKG/etc/
install -m 755 contrib/ftpasswd $PKG/usr/sbin/
# Correct default configuration
sed -i \
-e 's|^Group.*|Group\t\t\t\tnobody|' \
$PKG/etc/proftpd/proftpd.conf
rm -rf $PKG/var/proftpd
}