1 # Maintainer: Roman Kyrylych <roman@archlinux.org>
2 # Contributor: William Rea <sillywilly@gmail.com>
3 # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
8 pkgdesc="A portable, modular and efficient ftp server"
10 url="http://www.wzdftpd.net"
12 depends=('avahi' 'gnutls' 'tcl' 'pam')
15 source=(http://downloads.sourceforge.net/wzdftpd/wzdftpd-$pkgver.tar.gz
16 wzd.cfg.sample wzdftpd)
17 install=$pkgname.install
18 md5sums=('6114c32fc91786d9485fbc10c6306082'
19 '28227e7b8df1836230bdc685817f6970'
20 'b58091cd089af812aad0511e146e4d00')
24 # Add to fix TCL 8.5 library path
25 sed -i 's|tcl84 |tcl8.5 tcl84 |g;
26 s|tk84 |tk8.5 tk84 |' \
27 $pkgname-$pkgver/cmake/FindTCLDev.cmake || return 1
30 cmake ../$pkgname-$pkgver \
31 -DCMAKE_BUILD_TYPE=Release \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DLOCALSTATE_INSTALL_DIR=/var \
34 -DCONF_INSTALL_PATH=/etc/wzdftpd \
35 -DSKIP_BUILD_RPATH=ON \
36 -DSKIP_INSTALL_RPATH=ON \
39 -DWITH_PostgreSQL=OFF \
47 make DESTDIR=$pkgdir install
49 cp $srcdir/wzd.cfg.sample $pkgdir/etc/$pkgname
50 mkdir -p $pkgdir/usr/var/log/$pkgname
51 install -D -m755 ../wzdftpd $pkgdir/etc/rc.d/wzdftpd