[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / ups-nut

File: [cvs.NetBSD.org] / pkgsrc / sysutils / ups-nut / Makefile.common (download)

Revision 1.3, Fri Jul 29 15:11:40 2011 UTC (7 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3
Changes since 1.2: +16 -3 lines

Update ups-nut* from 2.0.5 to 2.6.1. Changes are too large to list here,
see: http://www.networkupstools.org/source/2.6/new-2.6.1.txt

# $NetBSD: Makefile.common,v 1.3 2011/07/29 15:11:40 bouyer Exp $
# used by sysutils/ups-nut/Makefile
# used by sysutils/ups-nut-cgi/Makefile
# used by sysutils/ups-nut-snmp/Makefile
# used by sysutils/ups-nut-usb/Makefile
# used by sysutils/p5-ups-nut/Makefile

DISTNAME=		nut-2.6.1
CATEGORIES=		sysutils
MASTER_SITES=		http://www.networkupstools.org/source/2.6/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.networkupstools.org/

LICENSE=		gnu-gpl-v2

NUT_USER?=		nut
NUT_GROUP?=		nut

DISTINFO_FILE=		${.CURDIR}/../../sysutils/ups-nut/distinfo
PATCHDIR=		${.CURDIR}/../../sysutils/ups-nut/patches

USE_LIBTOOL=		yes
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}
CONFIGURE_ARGS+=	--with-htmlpath=${PREFIX:Q}/share/nut/html
CONFIGURE_ARGS+=	--with-user=${NUT_USER}
CONFIGURE_ARGS+=	--with-group=${NUT_GROUP}

CHECK_PORTABILITY_SKIP=	packaging/*

.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