summaryrefslogtreecommitdiff
path: root/sysutils/bkpupsd/patches/patch-aa
blob: b827722aa9166e2c4ceaf40ac0aaef20a1a205f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-aa,v 1.5 2003/07/31 11:07:31 jmmv Exp $

--- src/Makefile.orig	2002-12-21 18:34:12.000000000 +0100
+++ src/Makefile
@@ -32,7 +32,7 @@
 OPSYS!=uname -s
 PROG=	bkpupsd
 SRCS=	bits.c main.c ups.c str2arg.c
-UPSTAB=	${PREFIX}/etc/upstab
+UPSTAB=	${PKG_SYSCONFDIR}/upstab
 
 .if exists(/usr/include/sys/com_ups.h)
 CFLAGS+=	 -DHAVE_UPS_CONTROL -DDEBUG
@@ -62,6 +62,7 @@ all:	${PROG} ${MAN8}
 
 upstab.5: upstab.5.in
 	@${SED} -e 's#%%prefix%%#${PREFIX}#g' \
+		-e 's#%%pkg_sysconfdir%%#${PKG_SYSCONFDIR}#g' \
 		${.CURDIR}/${.ALLSRC} > ${.TARGET}
 
 bkpupsd.8: bkpupsd.8.in
@@ -70,6 +71,6 @@ bkpupsd.8: bkpupsd.8.in
 
 afterinstall:
 	${INSTALL} -c -m 0644 -o ${BINOWN} -g ${BINGRP} ${.CURDIR}/upstab \
-		${UPSTAB}
+		${PREFIX}/share/examples/bkpupsd
 
 .include <bsd.prog.mk>