From b2f62d2a21d76eee9256e5ac6adf2163260d315c Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 4 Mar 2015 14:35:41 +0100 Subject: [PATCH] New package: openresolv-3.6.1 --- srcpkgs/openresolv/patches/runit.patch | 23 +++++++++++++++++++++++ srcpkgs/openresolv/template | 12 ++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/openresolv/patches/runit.patch create mode 100644 srcpkgs/openresolv/template diff --git a/srcpkgs/openresolv/patches/runit.patch b/srcpkgs/openresolv/patches/runit.patch new file mode 100644 index 00000000000..64157c2b73c --- /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 00000000000..20a1ad05a57 --- /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