diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-16 12:39:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-16 12:39:02 +0000 |
commit | 6833f57b55e763d2e3fdac70daf15d73091e97f3 (patch) | |
tree | 20592a7b870820ab829c1d9f943cae189b56632b /unstable | |
parent | 89e5a3bd0117976fd4b318dec13cb2b02c710f68 (diff) | |
download | aports-6833f57b55e763d2e3fdac70daf15d73091e97f3.tar.bz2 aports-6833f57b55e763d2e3fdac70daf15d73091e97f3.tar.xz |
unstable/wzdftpd-svn: moved from testing
doesnt build
Diffstat (limited to 'unstable')
-rw-r--r-- | unstable/wzdftpd-svn/APKBUILD | 46 | ||||
-rw-r--r-- | unstable/wzdftpd-svn/wzdftpd-svn.initd | 32 |
2 files changed, 78 insertions, 0 deletions
diff --git a/unstable/wzdftpd-svn/APKBUILD b/unstable/wzdftpd-svn/APKBUILD new file mode 100644 index 0000000000..b9b4626564 --- /dev/null +++ b/unstable/wzdftpd-svn/APKBUILD @@ -0,0 +1,46 @@ +# 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 <youremail@domain.com> +pkgname=wzdftpd-svn +pkgver=2040 +pkgrel=2 +pkgdesc="A portable, modular, small, and efficient FTP server" +url="http://www.wzdftpd.net" +license='GPL' +depends= +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 +ae2b7497cc7729bfaf346ba0d3b607d2 wzdftpd-svn.initd" diff --git a/unstable/wzdftpd-svn/wzdftpd-svn.initd b/unstable/wzdftpd-svn/wzdftpd-svn.initd new file mode 100644 index 0000000000..25f4da6f47 --- /dev/null +++ b/unstable/wzdftpd-svn/wzdftpd-svn.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript + +depend() { + need net + after firewall + use dns +} + +checkconfig() { + if [ ! -f /etc/wzdftpd/wzd.cfg ] ; then + eerror "No /etc/wzdftpd/wzd.cnf file exists!" + return 1 + fi + if [ ! -d /var/run/wzdftpd ] ; then + install -dD -o ftp -g ftp /var/run/wzdftpd + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting wzdftpd" + /usr/sbin/wzdftpd >/dev/null 2>&1 & + eend $? +} + +stop () { + ebegin "Stopping wzdftpd" + start-stop-daemon --stop --quiet \ + --pidfile=/var/run/wzdftpd/wzdftpd.pid --retry 20 + eend $? +} + |