2000-01-11 12:55:48 +01:00
|
|
|
# New ports collection makefile for: nut
|
|
|
|
# Date created: 08 Jan 2000
|
|
|
|
# Whom: Boris Popov <bp@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 21:09:11 +02:00
|
|
|
PORTNAME= nut
|
2003-01-13 11:41:01 +01:00
|
|
|
PORTVERSION= 1.2.1
|
2000-01-11 12:55:48 +01:00
|
|
|
CATEGORIES= sysutils
|
2003-01-13 11:41:01 +01:00
|
|
|
MASTER_SITES= http://www.exploits.org/nut/release/${PORTVERSION:R}/
|
2000-01-11 12:55:48 +01:00
|
|
|
|
2001-10-07 09:19:05 +02:00
|
|
|
MAINTAINER= DougB@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Network UPS Tools
|
2000-01-11 12:55:48 +01:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
|
2002-01-20 02:11:27 +01:00
|
|
|
--localstatedir=/var/db/nut \
|
2003-01-13 11:41:01 +01:00
|
|
|
--with-drvpath=${PREFIX}/libexec/nut \
|
2002-01-20 02:11:27 +01:00
|
|
|
--with-statepath=/var/db/nut \
|
|
|
|
--with-altpidpath=/var/db/nut \
|
|
|
|
--with-pidpath=/var/db/nut
|
2000-07-18 06:56:46 +02:00
|
|
|
|
2001-12-22 09:52:42 +01:00
|
|
|
MAN5= ups.conf.5 upsd.conf.5 upsd.users.5 upsmon.conf.5 \
|
|
|
|
upssched.conf.5
|
2003-01-13 11:41:01 +01:00
|
|
|
MAN8= apcsmart.8 bcmxcp.8 belkin.8 bestferrups801-807.8 \
|
|
|
|
bestfortress.8 bestuferrups.8 bestups.8 cyberpower.8 etapro.8 \
|
|
|
|
everups.8 fentonups.8 genericups.8 hp.8 isbmex.8 liebert.8 \
|
|
|
|
masterguard.8 mge-ellipse.8 mge-utalk.8 microdowell.8 newapc.8 \
|
|
|
|
nutupsdrv.8 oneac.8 powercom.8 powernet.8 sec.8 sms.8 \
|
|
|
|
snmp-ups.8 tripplite.8 upsc.8 upscmd.8 upsd.8 upsdrvctl.8 \
|
|
|
|
upslog.8 upsmon.8 upsrw.8 upssched.8 victronups.8
|
2000-01-11 12:55:48 +01:00
|
|
|
|
2001-03-23 14:32:11 +01:00
|
|
|
ALL_TARGET= all
|
2000-01-11 12:55:48 +01:00
|
|
|
|
|
|
|
pre-fetch:
|
2003-01-13 11:41:01 +01:00
|
|
|
.if defined(CGI) && !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
@${ECHO_MSG} 'CGI clients are currently disabled because they require'
|
|
|
|
@${ECHO_MSG} 'a later version of the gd2 library than we have.'
|
2000-01-11 12:55:48 +01:00
|
|
|
.endif
|
|
|
|
|
2001-10-08 01:01:18 +02:00
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/libexec/nut
|
2002-01-20 02:11:27 +01:00
|
|
|
@${MKDIR} /var/db/nut
|
|
|
|
@${CHOWN} uucp /var/db/nut
|
2001-10-08 01:01:18 +02:00
|
|
|
|
2000-01-11 12:55:48 +01:00
|
|
|
post-install:
|
2003-01-13 11:41:01 +01:00
|
|
|
@${SED} -e "s#%%PREFIX%%#${PREFIX}#g" \
|
|
|
|
${FILESDIR}/nut.sh.sample > ${PREFIX}/etc/rc.d/nut.sh.sample
|
2001-01-04 07:14:59 +01:00
|
|
|
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/nut.sh.sample
|
2000-01-11 12:55:48 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-01-13 11:41:01 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/cables
|
|
|
|
@${MKDIR} ${DOCSDIR}/drivers
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${DOCSDIR}/cables
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/drivers/*.txt ${DOCSDIR}/drivers
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/drivers/README ${DOCSDIR}/drivers
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/driver.list ${DOCSDIR}
|
|
|
|
.for file in CHANGES CREDITS INSTALL NEWS README UPGRADING
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
2001-03-23 14:32:11 +01:00
|
|
|
.endif
|
2000-01-11 12:55:48 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|