updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wzdftpd / PKGBUILD
blobdad6d00943c0a4c37d199aa44f9b0367c7ecdb3a
1 # Maintainer: Roman Kyrylych <roman@archlinux.org>
2 # Contributor: William Rea <sillywilly@gmail.com>
3 # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
5 pkgname=wzdftpd
6 pkgver=0.8.3
7 pkgrel=3
8 pkgdesc="A portable, modular and efficient ftp server"
9 arch=('i686' 'x86_64')
10 url="http://www.wzdftpd.net"
11 license=('GPL')
12 depends=('avahi' 'gnutls' 'tcl' 'pam')
13 makedepends=('cmake')
14 options=('!libtool')
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')
22 build() {
23         cd $srcdir
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
28         mkdir build
29         cd build
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 \
37                 -DWITH_MySQL=OFF \
38                 -DWITH_PAM=ON \
39                 -DWITH_PostgreSQL=OFF \
40                 -DWITH_SQLite3=OFF \
41                 -DWITH_Zeroconf=ON \
42                 -DWITH_TCLDev=ON \
43                 -DWITH_PERLDev=OFF \
44                 -DWITH_GnuTLS=ON \
45                 -DWITH_SFV=ON
46         make || return 1
47         make DESTDIR=$pkgdir install
48   
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