diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2b19708f1bbc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: danitool + +pkgname=stupid-ftpd +pkgver=1.5beta +pkgrel=3 +pkgdesc="stupid-ftpd is an ftp server, which provides a normal ftp-daemon functionality and a command-line mode. It has got a /etc/passwdindependent user database which allows many variations of permissions. The server is easy to configure and very flexible" +arch=('i686' 'x86_64') +url="http://stupid-ftpd.sourceforge.net/" +license=('GPL') +source=("http://downloads.sourceforge.net/project/stupid-ftpd/stupid-ftpd/V1_5beta/$pkgname-$pkgver.tar.gz" + 'stupid-ftpd.service' + '01-fixes.patch' + '02-cwd-interactive.patch') +md5sums=('be5700570bc38376515d33595e416663' + 'fc0a7a5f143ef657d8d495a030fa8c20' + '915b029020af010d9c3072b6a4d17700' + '93b8aa760d599e7124c78ad858b5a8e8') +install=post_install + +build() { + cd $srcdir/$pkgname + patch -p0 -i ${srcdir}/01-fixes.patch + patch -p0 -i ${srcdir}/02-cwd-interactive.patch + make || return 1 +} + +package() { + cd $srcdir/$pkgname + install -D -m755 stupid-ftpd.Linux6 $pkgdir/usr/bin/stupid-ftpd + #install -D -m644 $srcdir/stupid-ftpd.service $pkgdir/usr/lib/systemd/system/stupid-ftpd.service + sed -i "39s/real/virtual/g" stupid-ftpd.conf + sed -i "33cserverroot=/home" stupid-ftpd.conf + install -D -m644 stupid-ftpd.conf $pkgdir/etc/stupid-ftpd/stupid-ftpd.conf +} |