summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f8bcea7e12dae20a9387ea48c00cbb94412ff3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id$
# Maintainer: danitool

pkgname=stupid-ftpd
pkgver=1.5beta
pkgrel=4
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'
	'03-ridoff-warnings.patch')
md5sums=('be5700570bc38376515d33595e416663'
	'fc0a7a5f143ef657d8d495a030fa8c20'
	'915b029020af010d9c3072b6a4d17700'
	'93b8aa760d599e7124c78ad858b5a8e8'
	'157beac3d7130cd11aaf6a61288c9607')
install=post_install

build() {
  cd $srcdir/$pkgname
	patch -p0 -i ${srcdir}/01-fixes.patch
	patch -p0 -i ${srcdir}/02-cwd-interactive.patch
	patch -p0 -i ${srcdir}/03-ridoff-warnings.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
}