Merge pull request #1059 from thypon/openresolv

New package: openresolv-3.6.1
This commit is contained in:
Juan RP 2015-03-08 08:09:59 +01:00
commit a10e6def18
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,23 @@
diff --git configure configure
index a32cc1c..fefad31 100755
--- configure
+++ configure
@@ -194,6 +194,18 @@ if [ -z "$RESTARTCMD" ]; then
fi
done
fi
+if [ -z "$RESTARTCMD" ]; then
+ printf "Checking for runit... "
+ if [ -x /bin/sv ]; then
+ RESTARTCMD="/bin/sv restart \1"
+ echo "yes"
+ elif [ -x /usr/bin/sv ]; then
+ RESTARTCMD="/usr/bin/sv restart \1"
+ echo "yes"
+ else
+ echo "no"
+ fi
+fi
if [ -z "$RESTARTCMD" ]; then
echo "$0: WARNING: No means of interacting with system services detected!"

View file

@ -0,0 +1,12 @@
# Template file for 'openresolv'
pkgname=openresolv
version=3.6.1
revision=2
build_style=gnu-configure
short_desc="Management framework for resolv.conf"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="BSD"
hostmakedepends="runit"
homepage="http://roy.marples.name/projects/openresolv/home"
distfiles="ftp://roy.marples.name/pub/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=38a6908c07b8474cf489095026808d1c5ea5c53bb299beaecd23c05593b09eab