diff --git a/srcpkgs/openresolv/patches/runit.patch b/srcpkgs/openresolv/patches/runit.patch new file mode 100644 index 0000000000..64157c2b73 --- /dev/null +++ b/srcpkgs/openresolv/patches/runit.patch @@ -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!" diff --git a/srcpkgs/openresolv/template b/srcpkgs/openresolv/template new file mode 100644 index 0000000000..20a1ad05a5 --- /dev/null +++ b/srcpkgs/openresolv/template @@ -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 " +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