diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2009-02-12 08:46:09 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2009-02-12 08:46:09 +0000 |
commit | 66101679ec75ef7f6c675b0edf1e3c10a484946c (patch) | |
tree | 900ead76c8e84e2c1b43a3dbf203ff7cd046deeb /testing/wzdftpd | |
parent | 865b9a436cbeeaa2a782ec661bdb863ef8b293f5 (diff) | |
download | aports-66101679ec75ef7f6c675b0edf1e3c10a484946c.tar.bz2 aports-66101679ec75ef7f6c675b0edf1e3c10a484946c.tar.xz |
created new directory structure.
Diffstat (limited to 'testing/wzdftpd')
-rw-r--r-- | testing/wzdftpd/APKBUILD | 46 | ||||
-rw-r--r-- | testing/wzdftpd/wzdftpd-svn.initd | 28 |
2 files changed, 74 insertions, 0 deletions
diff --git a/testing/wzdftpd/APKBUILD b/testing/wzdftpd/APKBUILD new file mode 100644 index 0000000000..1606b45ad3 --- /dev/null +++ b/testing/wzdftpd/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=0 +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/wzdftpd-svn2040.tar.gz +wzdftpd-svn.initd" +subpackages="" + +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" diff --git a/testing/wzdftpd/wzdftpd-svn.initd b/testing/wzdftpd/wzdftpd-svn.initd new file mode 100644 index 0000000000..4f58d5b3f1 --- /dev/null +++ b/testing/wzdftpd/wzdftpd-svn.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript + +depend() { + need net + use dns +} + +checkconfig() { + if [ ! -f /etc/wzdftpd/wzd.cfg ] ; then + eerror "No /etc/wzdftpd/wzd.cnf file exists!" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting wzdftpd" + /usr/sbin/wzdftpd >/dev/null 2>&1 & + eend $? +} + +stop () { + ebegin "Stopping mysqld" + start-stop-daemon --stop --quiet \ + --pidfile=/var/run/wzdftpd/wzdftpd.pid --retry 20 + eend $? +} + |