# This is an example APKBUILD file. Use this as a start to creating your own, # and remove these comments. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Contributor: Your Name pkgname=wzdftpd-svn pkgver=2040 pkgrel=1 pkgdesc="A portable, modular, small, and efficient FTP server" url="http://www.wzdftpd.net" license='GPL' depends="openssl" makedepends="cmake mysql-dev sqlite-dev tcl-dev openssl-dev flex" source="http://alpine.nethq.org/clandmeter/src/wzdftpd-svn2040.tar.gz wzdftpd-svn.initd" subpackages="$pkgname-doc" build() { mkdir "$srcdir/${pkgname}" mv "$srcdir/wzdftpd-src" "$srcdir/${pkgname}/" cd "$srcdir/${pkgname}/" cmake \ -D CMAKE_INSTALL_PREFIX:PATH=/usr \ -D WITH_DUPECHECK:BOOL=ON \ -D WITH_SFV:BOOL=ON \ -D BUILD_TESTING:BOOL=OFF \ -D WITH_Zeroconf:BOOL=ON \ -D TCL_LIBRARY:FILEPATH=/usr/lib/libtcl8.5.so \ -D WITH_PAM:BOOL=OFF \ -D WITH_PerlDev:BOOL=OFF \ -D CONF_INSTALL_PATH:PATH=/etc/wzdftpd \ ./wzdftpd-src || return 1 make || return 1 make DESTDIR="$pkgdir/" install mv $pkgdir/usr/var $pkgdir/ sed -i -e 's|usr/var|var|' \ -e 's|usr/etc|etc|' \ -e 's|usr//etc|etc|' \ -e 's|#pid_file|pid_file|' \ $pkgdir/etc/wzdftpd/wzd.cfg.sample install -Dm 755 "$startdir"/$pkgname.initd $pkgdir/etc/init.d/wzdftpd } md5sums="4bdb2fcaa4ca316261e9f77380818769 wzdftpd-svn2040.tar.gz f2da00545b44a1a2c971d21be3b54142 wzdftpd-svn.initd"