From 88f845cf81f1d86ce4be801e2f409549d9d00fee Mon Sep 17 00:00:00 2001 From: sthen Date: Wed, 3 Mar 2010 20:39:15 +0000 Subject: [PATCH] fix the path in a sample config file. ok jasper@ --- sysutils/nut/Makefile | 7 +++++-- .../nut/patches/patch-conf_upssched_conf_sample_in | 12 ++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 sysutils/nut/patches/patch-conf_upssched_conf_sample_in diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile index cae4c5904e0..0ee932febef 100644 --- a/sysutils/nut/Makefile +++ b/sysutils/nut/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.33 2010/01/15 11:25:15 sthen Exp $ +# $OpenBSD: Makefile,v 1.34 2010/03/03 20:39:15 sthen Exp $ COMMENT-main= UPS monitoring program supporting many brands COMMENT-cgi= CGIs for monitoring Nut-based UPSs COMMENT-snmp= driver for monitoring UPSs via SNMP DISTNAME= nut-2.4.1 -PKGNAME-main= ${DISTNAME}p1 +PKGNAME-main= ${DISTNAME}p2 PKGNAME-cgi= ${DISTNAME:S/-/-cgi-/}p0 PKGNAME-snmp= ${DISTNAME:S/-/-snmp-/}p0 CATEGORIES= sysutils @@ -69,6 +69,9 @@ USE_LIBTOOL= Yes NO_REGRESS= Yes +pre-configure: + ${SUBST_CMD} ${WRKSRC}/conf/upssched.conf.sample.in + post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nut/ cp -R ${WRKSRC}/docs/* ${PREFIX}/share/doc/nut/ diff --git a/sysutils/nut/patches/patch-conf_upssched_conf_sample_in b/sysutils/nut/patches/patch-conf_upssched_conf_sample_in new file mode 100644 index 00000000000..c2d403d1747 --- /dev/null +++ b/sysutils/nut/patches/patch-conf_upssched_conf_sample_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-conf_upssched_conf_sample_in,v 1.1 2010/03/03 20:39:16 sthen Exp $ +--- conf/upssched.conf.sample.in.orig Wed Mar 3 17:29:20 2010 ++++ conf/upssched.conf.sample.in Wed Mar 3 17:29:29 2010 +@@ -14,7 +14,7 @@ + # A shell script with a big case..esac construct should work nicely for this. + # An example has been provided to help you get started. + +-CMDSCRIPT /usr/local/ups/bin/upssched-cmd ++CMDSCRIPT ${LOCALBASE}/bin/upssched-cmd + + # ============================================================================ + #