fix the path in a sample config file.

ok jasper@
This commit is contained in:
sthen 2010-03-03 20:39:15 +00:00
parent 28f9a1db02
commit 88f845cf81
2 changed files with 17 additions and 2 deletions

View File

@ -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/

View File

@ -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
# ============================================================================
#