diff options
author | ghen <ghen@pkgsrc.org> | 2006-08-16 13:15:54 +0000 |
---|---|---|
committer | ghen <ghen@pkgsrc.org> | 2006-08-16 13:15:54 +0000 |
commit | acb1338528605f33d2f84156a8bd71e017738a59 (patch) | |
tree | a70f003bd0828cebb8d4f6417b33775cd4035a21 /sysutils/ups-nut | |
parent | 9bb8e52e3f2cdc150016c84ca6318249ce02d82f (diff) | |
download | pkgsrc-acb1338528605f33d2f84156a8bd71e017738a59.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/Makefile | 34 | ||||
-rw-r--r-- | sysutils/ups-nut/Makefile.common | 28 |
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 |