summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/eggdrop/APKBUILD12
-rw-r--r--testing/eggdrop/eggdrop-install12
-rw-r--r--testing/wzdftpd/APKBUILD6
-rw-r--r--testing/wzdftpd/wzdftpd-svn.initd31
4 files changed, 39 insertions, 22 deletions
diff --git a/testing/eggdrop/APKBUILD b/testing/eggdrop/APKBUILD
index 68eded8a..2ab426e8 100644
--- a/testing/eggdrop/APKBUILD
+++ b/testing/eggdrop/APKBUILD
@@ -5,10 +5,12 @@ pkgrel=0
pkgdesc="World's most popular Open Source IRC bot"
url="http://www.eggheads.org/"
license='GPL-2'
-depends="tcl"
-makedepends="tcl-dev"
+depends="tcl bind-libs"
+makedepends="tcl-dev bind-dev"
+install=$pkgname-install
source="ftp://ftp.eggheads.org/pub/eggdrop/GNU/1.6/${pkgname}${pkgver}.tar.bz2
-eggdrop-installer"
+eggdrop-installer
+$pkgname-install"
build() {
cd "$srcdir/${pkgname}${pkgver}"
@@ -18,8 +20,8 @@ build() {
mkdir -p $pkgdir/opt/eggdrop
make -j1 DEST="$pkgdir/opt/eggdrop" install
install -Dm755 "$srcdir"/eggdrop-installer "$pkgdir"/usr/bin/eggdrop-installer
- msg "Please run /usr/bin/eggdrop-installer to install your eggdrop bot."
}
md5sums="b706bbe4fdd05964e0ea0cd920f28539 eggdrop1.6.19.tar.bz2
-d5214dc16c07c55edff22f495c9c367b eggdrop-installer"
+d5214dc16c07c55edff22f495c9c367b eggdrop-installer
+e96a44f5bcd972c4ad538ffe3940cbff eggdrop-install"
diff --git a/testing/eggdrop/eggdrop-install b/testing/eggdrop/eggdrop-install
new file mode 100644
index 00000000..9851aa56
--- /dev/null
+++ b/testing/eggdrop/eggdrop-install
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case "$1" in
+ post_install)
+
+ echo "*"
+ echo "* Please run /usr/bin/eggdrop-installer to install your eggdrop bot."
+ echo "*"
+
+esac
+exit 0
+
diff --git a/testing/wzdftpd/APKBUILD b/testing/wzdftpd/APKBUILD
index 85143eeb..dbcf9ca8 100644
--- a/testing/wzdftpd/APKBUILD
+++ b/testing/wzdftpd/APKBUILD
@@ -6,7 +6,7 @@
# Contributor: Your Name <youremail@domain.com>
pkgname=wzdftpd-svn
pkgver=2040
-pkgrel=0
+pkgrel=1
pkgdesc="A portable, modular, small, and efficient FTP server"
url="http://www.wzdftpd.net"
license='GPL'
@@ -14,7 +14,7 @@ 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=""
+subpackages="$pkgname-doc"
build() {
mkdir "$srcdir/${pkgname}"
@@ -43,4 +43,4 @@ build() {
}
md5sums="4bdb2fcaa4ca316261e9f77380818769 wzdftpd-svn2040.tar.gz
-f2da00545b44a1a2c971d21be3b54142 wzdftpd-svn.initd"
+991306944cc375b71ba9022a5e95aaf8 wzdftpd-svn.initd"
diff --git a/testing/wzdftpd/wzdftpd-svn.initd b/testing/wzdftpd/wzdftpd-svn.initd
index 4f58d5b3..4dc8d509 100644
--- a/testing/wzdftpd/wzdftpd-svn.initd
+++ b/testing/wzdftpd/wzdftpd-svn.initd
@@ -1,28 +1,31 @@
#!/sbin/runscript
depend() {
- need net
- use dns
+ need net
+ use dns
}
checkconfig() {
- if [ ! -f /etc/wzdftpd/wzd.cfg ] ; then
- eerror "No /etc/wzdftpd/wzd.cnf file exists!"
- return 1
- fi
+ 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 $?
+ 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 $?
+ ebegin "Stopping wzdftpd"
+ start-stop-daemon --stop --quiet \
+ --pidfile=/var/run/wzdftpd/wzdftpd.pid --retry 20
+ eend $?
}