diff options
author | dougb <dougb@FreeBSD.org> | 2003-01-13 10:41:01 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2003-01-13 10:41:01 +0000 |
commit | 937ed050342450ac1bd46ca04cc0602c5b37afa4 (patch) | |
tree | 304b708ba38663a822ddf38460aafad228d35241 /sysutils/nut22/Makefile | |
parent | dfbcd0dcda065acfa9c87218f51e7305e77d7fcd (diff) | |
download | FreeBSD-ports-937ed050342450ac1bd46ca04cc0602c5b37afa4.zip FreeBSD-ports-937ed050342450ac1bd46ca04cc0602c5b37afa4.tar.gz |
Major overhaul to reflect the update to the latest version, 1.2.1.
Development stalled on this distribution for a while, then went into a
frantic period of many updates per month. Now it's stabilized to the
point that it's worth keeping current again.
There are many new models of UPS supported, and a lot of changes to
how the various tools work, so users of the old port should read UPGRADING.
Unfortunately, the CGI stuff depends on a version of gd that we don't have
yet, so that'll have to be sidelined for a while.
Diffstat (limited to 'sysutils/nut22/Makefile')
-rw-r--r-- | sysutils/nut22/Makefile | 70 |
1 files changed, 26 insertions, 44 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile index 22d580c..0f2a447 100644 --- a/sysutils/nut22/Makefile +++ b/sysutils/nut22/Makefile @@ -6,47 +6,36 @@ # PORTNAME= nut -PORTVERSION= 0.45.3 +PORTVERSION= 1.2.1 CATEGORIES= sysutils -MASTER_SITES= http://www.exploits.org/nut/release/ +MASTER_SITES= http://www.exploits.org/nut/release/${PORTVERSION:R}/ MAINTAINER= DougB@FreeBSD.org GNU_CONFIGURE= yes CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \ --localstatedir=/var/db/nut \ - --with-modelpath=${PREFIX}/libexec/nut \ + --with-drvpath=${PREFIX}/libexec/nut \ --with-statepath=/var/db/nut \ --with-altpidpath=/var/db/nut \ --with-pidpath=/var/db/nut MAN5= ups.conf.5 upsd.conf.5 upsd.users.5 upsmon.conf.5 \ upssched.conf.5 -MAN8= apcsmart.8 belkin.8 bestups.8 fentonups.8 nutupsdrv.8 \ - powercom.8 upsc.8 upscmd.8 upsct.8 upsct2.8 upsd.8 \ - upsdrvctl.8 upslog.8 upsmon.8 upssched.8 +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 ALL_TARGET= all -.if defined(CGI) -LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd -.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache) -CGIDIR?= share/apache/cgi-bin -.else -CGIDIR?= www/cgi-bin -.endif -CONFIGURE_ARGS+=--with-cgipath=${PREFIX}/${CGIDIR}/nut -ALL_TARGET+= cgi -PLIST_SUB+= CGIFILES="${CGIDIR}/nut/" -PLIST_SUB+= CGIDIRRM="@dirrm ${CGIDIR}/nut" -.else -PLIST_SUB+= CGIFILES="@comment " -PLIST_SUB+= CGIDIRRM="@comment " -.endif - pre-fetch: -.if !defined(CGI) - @${ECHO_MSG} "Type \"make CGI=yes\" if you want to build CGI scripts." +.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.' .endif pre-install: @@ -54,29 +43,22 @@ pre-install: @${MKDIR} /var/db/nut @${CHOWN} uucp /var/db/nut -NDOCDIR= ${PREFIX}/share/doc/nut - post-install: - @${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" \ - ${WRKSRC}/scripts/FreeBSD/upsd.sh.sample \ - >${PREFIX}/etc/rc.d/nut.sh.sample + @${SED} -e "s#%%PREFIX%%#${PREFIX}#g" \ + ${FILESDIR}/nut.sh.sample > ${PREFIX}/etc/rc.d/nut.sh.sample @${CHMOD} 0755 ${PREFIX}/etc/rc.d/nut.sh.sample - ${INSTALL_DATA} ${WRKSRC}/conf/ups.conf \ - ${PREFIX}/etc/nut/ups.conf.sample .if !defined(NOPORTDOCS) - @${MKDIR} ${NDOCDIR}/cables - ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${NDOCDIR}/cables - ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${NDOCDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${NDOCDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/Changes.trust ${NDOCDIR} - ${INSTALL_DATA} ${WRKSRC}/CHANGES ${NDOCDIR} - ${INSTALL_DATA} ${WRKSRC}/CREDITS ${NDOCDIR} - ${INSTALL_DATA} ${WRKSRC}/INSTALL ${NDOCDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${NDOCDIR} -.endif -.if defined(CGI) - @${MKDIR} ${PREFIX}/${CGIDIR}/nut - ${INSTALL_DATA} ${WRKSRC}/clients/*.cgi ${PREFIX}/${CGIDIR}/nut + @${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 .endif .include <bsd.port.mk> |