pkgsrc/sysutils/bkpupsd/patches/patch-aa
taca 8ce81d8e48 - Fix install problem on recent NetBSD current.
- Add DESTDIR support.

Bump PKGREVISION.
2008-10-22 03:28:22 +00:00

37 lines
932 B
Text

$NetBSD: patch-aa,v 1.6 2008/10/22 03:28:22 taca Exp $
--- src/Makefile.orig 2006-08-22 15:07:36.000000000 +0900
+++ src/Makefile
@@ -33,7 +33,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
@@ -46,6 +46,7 @@ LDADD+= -lutil
MAN5= upstab.5
MAN8= bkpupsd.8
.else
+MKHTML= no
WARNS= 1
MAN= upstab.5 bkpupsd.8
.endif
@@ -62,6 +63,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 +72,6 @@ bkpupsd.8: bkpupsd.8.in
afterinstall:
${INSTALL} -c -m 0644 -o ${BINOWN} -g ${BINGRP} ${.CURDIR}/upstab \
- ${UPSTAB}
+ ${DESTDIR}${PREFIX}/share/examples/bkpupsd
.include <bsd.prog.mk>