Commit 8ea34b27 authored by Natanael Copa's avatar Natanael Copa
Browse files

testing/gdnsd: add very basic init.d script

parent 00c10699
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gdnsd
pkgver=1.6.2
pkgrel=1
pkgrel=2
pkgdesc="Geographic Authoritative DNS server"
url="http://code.google.com/p/gdnsd/"
arch="all"
......@@ -12,7 +12,8 @@ depends_dev=""
makedepends="libev-dev libcap-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://gdnsd.googlecode.com/files/gdnsd-$pkgver.tar.xz"
source="http://gdnsd.googlecode.com/files/gdnsd-$pkgver.tar.xz
gdnsd.initd"
_builddir="$srcdir"/gdnsd-$pkgver
prepare() {
......@@ -33,6 +34,8 @@ build() {
--enable-fast-install \
|| return 1
make || return 1
install -Dm755 "$srcdir"/gdnsd.initd "$pkgdir"/etc/init.d/gdnsd \
|| return 1
}
package() {
......@@ -42,4 +45,5 @@ package() {
"$pkgdir"/usr/lib/gdnsd/*.la
}
md5sums="082f874d24cdc7073950ed6294f8d39b gdnsd-1.6.2.tar.xz"
md5sums="082f874d24cdc7073950ed6294f8d39b gdnsd-1.6.2.tar.xz
dad20779adfb4b85b57b45c7c903a636 gdnsd.initd"
#!/sbin/runscript
depend() {
need net
after firewall
}
start() {
ebegin "Starting dnsd"
start-stop-daemon --start --exec /usr/sbin/dnsd -- -d $DNSD_OPTS
eend $?
}
stop () {
ebegin "Stopping dnsd"
start-stop-daemon --stop --exec /usr/sbin/dnsd
eend $?
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment