summaryrefslogtreecommitdiff
path: root/sysutils/bkpupsd/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-07-31 11:07:30 +0000
committerjmmv <jmmv@pkgsrc.org>2003-07-31 11:07:30 +0000
commit90828eda56019a0bba0cfa9de47dde461e3194aa (patch)
treef39ed33a84c55e24ce66922b106317ebf12903d8 /sysutils/bkpupsd/Makefile
parent019dd4bae2373c37260479e311cdc2da1cf535df (diff)
downloadpkgsrc-90828eda56019a0bba0cfa9de47dde461e3194aa.tar.gz
Convert to the bsd.pkg.install.mk framework:
- Honour PKG_SYSCONFDIR. - Install configuration files in sample directory and copy them to PKG_SYSCONFDIR when appropiate. - Use RCD_SCRIPTS to handle installed rc.d script. Use buildlink2 too. Bump PKGREVISION to 1.
Diffstat (limited to 'sysutils/bkpupsd/Makefile')
-rw-r--r--sysutils/bkpupsd/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/sysutils/bkpupsd/Makefile b/sysutils/bkpupsd/Makefile
index 669f8914f00..8e76fb3ea49 100644
--- a/sysutils/bkpupsd/Makefile
+++ b/sysutils/bkpupsd/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2003/07/21 17:24:10 martti Exp $
+# $NetBSD: Makefile,v 1.9 2003/07/31 11:07:30 jmmv Exp $
#
DISTNAME= bkpupsd-2.1.2
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.jone-system.com/pub/misc/ \
ftp://ftp.back-street.net/pub/misc/
@@ -11,16 +12,25 @@ MAINTAINER= taca@NetBSD.org
HOMEPAGE= # not exist
COMMENT= Simple UPS daemon for BK-Pro, BK series and FREQUPS F series
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+
.include "../../mk/bsd.prefs.mk"
DOCDIR= ${PREFIX}/share/doc/bkpupsd
PKGRCDIR= ${PREFIX}/etc/rc.d
-ETCDIR= ${DESTDIR}/etc
MAKE_ENV+= DEFAULT_DEVICE=${DEFAULT_SERIAL_DEVICE} DOCDIR=${DOCDIR}
-MESSAGE_SUBST+= DOCDIR=${DOCDIR} ETCDIR=${ETCDIR} PKGRCDIR=${PKGRCDIR}
+MESSAGE_SUBST+= DOCDIR=${DOCDIR}
+
+EGDIR= ${PREFIX}/share/examples/bkpupsd
+CONF_FILES= ${EGDIR}/upstab ${PKG_SYSCONFDIR}/upstab
+
+RCD_SCRIPTS= bkpupsd
-post-install:
+pre-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCDIR}