summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut
diff options
context:
space:
mode:
authorghen <ghen>2006-08-16 13:15:54 +0000
committerghen <ghen>2006-08-16 13:15:54 +0000
commitb2a83a2215df9f4ac7d2a46beeb0654b686e68c5 (patch)
treea70f003bd0828cebb8d4f6417b33775cd4035a21 /sysutils/ups-nut
parentf9931a112217c4c5ca5eca3214aaf1b09cbfd0d7 (diff)
downloadpkgsrc-b2a83a2215df9f4ac7d2a46beeb0654b686e68c5.tar.gz
Merge the common bits of net/ups-nut/Makefile and net/ups-nut-cgi/Makefile
into net/ups-nut/Makefile.common. No functional changes.
Diffstat (limited to 'sysutils/ups-nut')
-rw-r--r--sysutils/ups-nut/Makefile34
-rw-r--r--sysutils/ups-nut/Makefile.common28
2 files changed, 36 insertions, 26 deletions
diff --git a/sysutils/ups-nut/Makefile b/sysutils/ups-nut/Makefile
index ebbaf6303f2..75ff6532a00 100644
--- a/sysutils/ups-nut/Makefile
+++ b/sysutils/ups-nut/Makefile
@@ -1,33 +1,15 @@
-# $NetBSD: Makefile,v 1.46 2006/08/15 12:26:07 ghen Exp $
-#
+# $NetBSD: Makefile,v 1.47 2006/08/16 13:15:54 ghen Exp $
-DISTNAME= nut-2.0.4
-PKGNAME= ups-${DISTNAME}
-CATEGORIES= sysutils
-MASTER_SITES= http://random.networkupstools.org/source/2.0/
+.include "Makefile.common"
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://www.networkupstools.org/
+PKGNAME= ups-${DISTNAME}
COMMENT= Network UPS Tools
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --sysconfdir=${NUT_CONFDIR:Q} \
- --datadir=${NUT_DATADIR:Q} \
- --localstatedir=${NUT_STATEDIR:Q} \
- --with-user=${NUT_USER:Q} \
- --with-group=${NUT_GROUP:Q} \
- --with-statepath=${NUT_STATEDIR:Q} \
- --with-drvpath=${NUT_DRVDIR:Q} \
- --with-altpidpath=${NUT_STATEDIR:Q} \
- --with-pidpath=${NUT_STATEDIR:Q}
-
-PKG_SYSCONFSUBDIR?= nut
-NUT_CONFDIR= ${PKG_SYSCONFDIR}
-NUT_DATADIR= ${PREFIX}/share/nut
-NUT_DOCDIR= ${PREFIX}/share/doc/nut
-NUT_DRVDIR= ${PREFIX}/libexec/nut
-NUT_EGDIR= ${PREFIX}/share/examples/nut
-NUT_STATEDIR?= ${VARBASE}/db/nut
+CONFIGURE_ARGS+= --with-user=${NUT_USER:Q}
+CONFIGURE_ARGS+= --with-group=${NUT_GROUP:Q}
+CONFIGURE_ARGS+= --with-drvpath=${NUT_DRVDIR:Q}
+CONFIGURE_ARGS+= --with-altpidpath=${NUT_STATEDIR:Q}
+CONFIGURE_ARGS+= --with-pidpath=${NUT_STATEDIR:Q}
NUT_USER?= nut
NUT_GROUP?= nut
diff --git a/sysutils/ups-nut/Makefile.common b/sysutils/ups-nut/Makefile.common
new file mode 100644
index 00000000000..245a1533bd0
--- /dev/null
+++ b/sysutils/ups-nut/Makefile.common
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile.common,v 1.1 2006/08/16 13:15:54 ghen Exp $
+
+DISTNAME= nut-2.0.4
+CATEGORIES= sysutils
+MASTER_SITES= http://random.networkupstools.org/source/2.0/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.networkupstools.org/
+
+DISTINFO_FILE= ${.CURDIR}/../../sysutils/ups-nut/distinfo
+PATCHDIR= ${.CURDIR}/../../sysutils/ups-nut/patches
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --sysconfdir=${NUT_CONFDIR:Q}
+CONFIGURE_ARGS+= --datadir=${NUT_DATADIR:Q}
+CONFIGURE_ARGS+= --localstatedir=${NUT_STATEDIR:Q}
+CONFIGURE_ARGS+= --with-statepath=${NUT_STATEDIR:Q}
+
+.include "../../mk/bsd.prefs.mk"
+
+PKG_SYSCONFSUBDIR?= nut
+NUT_CONFDIR= ${PKG_SYSCONFDIR}
+NUT_DATADIR= ${PREFIX}/share/nut
+NUT_DOCDIR= ${PREFIX}/share/doc/nut
+NUT_DRVDIR= ${PREFIX}/libexec/nut
+NUT_EGDIR= ${PREFIX}/share/examples/nut
+NUT_STATEDIR?= ${VARBASE}/db/nut
+NUT_CGIDIR= ${PREFIX}/libexec/cgi-bin