aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nut22
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2001-10-08 07:01:18 +0800
committerdougb <dougb@FreeBSD.org>2001-10-08 07:01:18 +0800
commitd8b8f1f9bae992528d4b5b867842871750df4c24 (patch)
tree5f38f652be619243744574c613ff55c665bfb436 /sysutils/nut22
parentb57d02accc4a4c3688eb28f04e9600dcd9ac37fe (diff)
downloadfreebsd-ports-gnome-d8b8f1f9bae992528d4b5b867842871750df4c24.tar.gz
freebsd-ports-gnome-d8b8f1f9bae992528d4b5b867842871750df4c24.tar.zst
freebsd-ports-gnome-d8b8f1f9bae992528d4b5b867842871750df4c24.zip
* Update to 0.45.1, which as numerous new features, new UPS', and
many bugfixes. Check out http://www.exploits.org/nut/release/new-0.45.1.txt for more details. Highlights include experimental USB support, and the various programs dropping more privileges after startup. * Clean up the Makefile a little by grouping more of the CGI-dependent stuff together. Improve the pkg-plist in this regard as well. Make a directory and install a conf file sample that the software Makefile's are missing for some reason. * Make the cgi directory depend on one of the previously discussed plans to use PREFIX/www/cgi-bin if it exists already, and PREFIX/share/apache if not.
Diffstat (limited to 'sysutils/nut22')
-rw-r--r--sysutils/nut22/Makefile45
-rw-r--r--sysutils/nut22/distinfo2
-rw-r--r--sysutils/nut22/pkg-plist23
3 files changed, 42 insertions, 28 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile
index 1f0b039155b8..dcc9633b64f5 100644
--- a/sysutils/nut22/Makefile
+++ b/sysutils/nut22/Makefile
@@ -6,34 +6,35 @@
#
PORTNAME= nut
-PORTVERSION= 0.45.0
+PORTVERSION= 0.45.1
CATEGORIES= sysutils
MASTER_SITES= http://www.exploits.org/nut/release/
MAINTAINER= DougB@FreeBSD.org
-.if defined(CGI)
-LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
-.endif
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
- --with-cgipath=${PREFIX}/share/nut/cgi \
--with-modelpath=${PREFIX}/libexec/nut \
--with-statepath=/var/db
-MAN8= powercom.8 apcsmart.8
+MAN8= apcsmart.8 powercom.8
ALL_TARGET= all
-NDOCDIR= ${PREFIX}/share/doc/nut
-
.if defined(CGI)
-NCGIDIR= ${PREFIX}/share/nut/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=""
+PLIST_SUB+= CGIFILES="${CGIDIR}/nut/"
+PLIST_SUB+= CGIDIRRM="@dirrm ${CGIDIR}/nut"
.else
PLIST_SUB+= CGIFILES="@comment "
+PLIST_SUB+= CGIDIRRM="@comment "
.endif
pre-fetch:
@@ -41,28 +42,32 @@ pre-fetch:
@${ECHO_MSG} "Type \"make CGI=yes\" if you want to build CGI scripts."
.endif
+pre-install:
+ @${MKDIR} ${PREFIX}/libexec/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
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/nut.sh.sample
+ ${INSTALL_DATA} ${WRKSRC}/conf/ups.conf \
+ ${PREFIX}/etc/nut/ups.conf.sample
.if !defined(NOPORTDOCS)
- @if ! [ -d ${NDOCDIR} ]; then ${MKDIR} ${NDOCDIR}; fi
- @if ! [ -d ${NDOCDIR}/cables ]; then ${MKDIR} ${NDOCDIR}/cables; fi
+ @${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}/README ${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)
- @if ! [ -d ${NCGIDIR} ]; then ${MKDIR} ${NCGIDIR}; fi
- ${INSTALL_DATA} ${WRKSRC}/clients/*.cgi ${NCGIDIR}
- @${ECHO_MSG} "Look in ${NCGIDIR} for cgi scripts."
-.endif
-.if !defined(NOPORTDOCS)
- @${ECHO_MSG} "Look in ${NDOCDIR} for documentation."
+ @${MKDIR} ${PREFIX}/${CGIDIR}/nut
+ ${INSTALL_DATA} ${WRKSRC}/clients/*.cgi ${PREFIX}/${CGIDIR}/nut
.endif
.include <bsd.port.mk>
diff --git a/sysutils/nut22/distinfo b/sysutils/nut22/distinfo
index 01556b8c6b0d..679e12ac94c5 100644
--- a/sysutils/nut22/distinfo
+++ b/sysutils/nut22/distinfo
@@ -1 +1 @@
-MD5 (nut-0.45.0.tar.gz) = 0b818140b1d818269dc0b70b1097b111
+MD5 (nut-0.45.1.tar.gz) = 523b492be0995c3d7049716190afdc88
diff --git a/sysutils/nut22/pkg-plist b/sysutils/nut22/pkg-plist
index 7b94c793ec0e..701cd6cedd02 100644
--- a/sysutils/nut22/pkg-plist
+++ b/sysutils/nut22/pkg-plist
@@ -5,18 +5,21 @@ bin/upsct2
bin/upslog
etc/nut/hosts.conf.sample
etc/nut/multimon.conf.sample
+etc/nut/ups.conf.sample
etc/nut/upsd.conf.sample
etc/nut/upsd.users.sample
etc/nut/upsmon.conf.sample
etc/nut/upssched.conf.sample
etc/nut/upsset.conf.sample
etc/rc.d/nut.sh.sample
+libexec/nut/aeg
libexec/nut/apcsmart
libexec/nut/belkin
libexec/nut/bestfort
libexec/nut/bestuferrups
libexec/nut/bestups
libexec/nut/engetron
+libexec/nut/everups
libexec/nut/fentonups
libexec/nut/genericups
libexec/nut/ipt-anzen
@@ -28,25 +31,32 @@ libexec/nut/newapc
libexec/nut/optiups
libexec/nut/powercom
libexec/nut/sec
+libexec/nut/sms
libexec/nut/toshiba1500
libexec/nut/ups-trust425+625
+libexec/nut/upsdrvctl
libexec/nut/upseyeux
libexec/nut/victronups
sbin/upsd
sbin/upsmon
sbin/upssched
-%%PORTDOCS%%share/doc/nut/Changes.trust
+%%PORTDOCS%%share/doc/nut/CHANGES
+%%PORTDOCS%%share/doc/nut/CREDITS
%%PORTDOCS%%share/doc/nut/FAQ
%%PORTDOCS%%share/doc/nut/INSTALL
%%PORTDOCS%%share/doc/nut/README
+%%PORTDOCS%%share/doc/nut/Changes.trust
%%PORTDOCS%%share/doc/nut/access.txt
%%PORTDOCS%%share/doc/nut/belkin.txt
%%PORTDOCS%%share/doc/nut/big-servers.txt
%%PORTDOCS%%share/doc/nut/chroot.txt
%%PORTDOCS%%share/doc/nut/commands.txt
+%%PORTDOCS%%share/doc/nut/config-files.txt
%%PORTDOCS%%share/doc/nut/configure.txt
%%PORTDOCS%%share/doc/nut/data-room.txt
%%PORTDOCS%%share/doc/nut/design.txt
+%%PORTDOCS%%share/doc/nut/driver-control.txt
+%%PORTDOCS%%share/doc/nut/dummycons.txt
%%PORTDOCS%%share/doc/nut/dummyups.txt
%%PORTDOCS%%share/doc/nut/generic-ups.txt
%%PORTDOCS%%share/doc/nut/mge-ellipse.txt
@@ -64,13 +74,12 @@ sbin/upssched
%%PORTDOCS%%share/doc/nut/cables/powerware.txt
%%PORTDOCS%%share/doc/nut/cables/repotec.txt
%%PORTDOCS%%share/doc/nut/cables/victron.txt
-%%CGIFILES%%share/nut/cgi/multimon.cgi
-%%CGIFILES%%share/nut/cgi/upsimage.cgi
-%%CGIFILES%%share/nut/cgi/upsset.cgi
-%%CGIFILES%%share/nut/cgi/upsstats.cgi
+%%CGIFILES%%multimon.cgi
+%%CGIFILES%%upsimage.cgi
+%%CGIFILES%%upsset.cgi
+%%CGIFILES%%upsstats.cgi
%%PORTDOCS%%@dirrm share/doc/nut/cables
%%PORTDOCS%%@dirrm share/doc/nut
-@dirrm share/nut/cgi
-@dirrm share/nut
+%%CGIDIRRM%%
@dirrm etc/nut
@dirrm libexec/nut