diff options
Diffstat (limited to 'sysutils/nut22')
-rw-r--r-- | sysutils/nut22/Makefile | 182 | ||||
-rw-r--r-- | sysutils/nut22/distinfo | 6 | ||||
-rw-r--r-- | sysutils/nut22/files/nut.sh.in | 44 | ||||
-rw-r--r-- | sysutils/nut22/files/nut_upslog.sh.in | 36 | ||||
-rw-r--r-- | sysutils/nut22/files/nut_upsmon.sh.in | 34 | ||||
-rw-r--r-- | sysutils/nut22/files/patch-clients-Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/nut22/files/patch-data-html-Makefile.in | 20 | ||||
-rw-r--r-- | sysutils/nut22/files/patch-m4-nut_check_ipv6.m4 | 13 | ||||
-rw-r--r-- | sysutils/nut22/pkg-descr | 7 | ||||
-rw-r--r-- | sysutils/nut22/pkg-plist | 88 |
10 files changed, 0 insertions, 441 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile deleted file mode 100644 index 3783c61bec61..000000000000 --- a/sysutils/nut22/Makefile +++ /dev/null @@ -1,182 +0,0 @@ -# New ports collection makefile for: nut -# Date created: 08 Jan 2000 -# Whom: Boris Popov <bp@freebsd.org> -# -# $FreeBSD$ -# - -PORTNAME= nut -PORTVERSION= 2.2.2 -#PORTREVISION= 1 -CATEGORIES= sysutils -MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/ -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} - -MAINTAINER= Joerg.Pulz@frm2.tum.de -COMMENT= Network UPS Tools - -USE_AUTOTOOLS= autoconf:262 -GNU_CONFIGURE= yes -USE_GMAKE= yes -USE_LDCONFIG= yes -USE_GNOME= pkgconfig - -NUT_USER?= uucp -NUT_GROUP?= uucp -STATEDIR?= /var/db/nut - -OPTIONS= SERIAL "SERIAL support" on \ - USB "USB support" on \ - SNMP "SNMP support" on \ - NEON "NEON XML/HTTP support" on \ - HAL "HAL support" off \ - IPV6 "IPV6 support" on \ - DEVEL "Install header files" off \ - CGI "Web CGI interface" off \ - -USE_RC_SUBR= nut.sh nut_upsmon.sh nut_upslog.sh -SUB_LIST+= STATEDIR=${STATEDIR} -PLIST_SUB+= STATEDIR=${STATEDIR} - -MAN5= ups.conf.5 upsd.conf.5 upsd.users.5 upsmon.conf.5 \ - upssched.conf.5 - -MAN8= nutupsdrv.8 upsc.8 upscmd.8 upsd.8 upsdrvctl.8 \ - upslog.8 upsmon.8 upsrw.8 upssched.8 - -PORTDOCS= * - -.include <bsd.port.pre.mk> - -CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \ - --program-transform-name="" \ - --localstatedir=${STATEDIR} \ - --datadir=${PREFIX}/etc/nut \ - --with-drvpath=${PREFIX}/libexec/nut \ - --with-statepath=${STATEDIR} \ - --with-altpidpath=${STATEDIR} \ - --with-pidpath=${STATEDIR} \ - --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig \ - --with-linux-hiddev=no \ - --with-user=${NUT_USER} \ - --with-group=${NUT_GROUP} - -.if defined(WITH_CGI) -LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd -MAN5+= hosts.conf.5 upsset.conf.5 upsstats.html.5 -MAN8+= upsset.cgi.8 upsstats.cgi.8 upsimage.cgi.8 -CGIDIR?= ${PREFIX}/www/cgi-bin/${PORTNAME} -CGIDIR_REL?= ${CGIDIR:S,^${PREFIX}/,,} -CONFIGURE_ARGS+= --with-cgi --with-cgipath=${CGIDIR} \ - --with-htmlpath=${WWWDIR} \ - --with-gd-includes=-I${PREFIX}/include \ - --with-gd-libs="-L${PREFIX}/lib -lgd" -PLIST_SUB+= NUT_CGI="" -PLIST_SUB+= CGIDIR="${CGIDIR_REL}" -PLIST_SUB+= CGIETCDIR="etc/nut/" -.else -CONFIGURE_ARGS+= --without-cgi -PLIST_SUB+= NUT_CGI="@comment " -.endif - -.if !defined(WITHOUT_SERIAL) -CONFIGURE_ARGS+= --with-serial -MAN8+= al175.8 apcsmart.8 bcmxcp.8 belkin.8 belkinunv.8 \ - bestuferrups.8 bestups.8 bestfcom.8 cpsups.8 cyberpower.8 \ - dummy-ups.8 etapro.8 everups.8 gamatronic.8 genericups.8 \ - isbmex.8 liebert.8 masterguard.8 megatec.8 metasys.8 \ - mge-shut.8 mge-utalk.8 nitram.8 nutupsdrv.8 oneac.8 optiups.8 \ - powercom.8 powerpanel.8 rhino.8 safenet.8 solis.8 tripplite.8 \ - tripplitesu.8 upscode2.8 victronups.8 -PLIST_SUB+= NUT_SERIAL="" -.else -CONFIGURE_ARGS+= --without-serial -PLIST_SUB+= NUT_SERIAL="@comment " -.endif - -.if !defined(WITHOUT_USB) -LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb -CONFIGURE_ARGS+= --with-usb=auto -MAN8+= bcmxcp_usb.8 megatec_usb.8 tripplite_usb.8 usbhid-ups.8 -PLIST_SUB+= NUT_USB="" -.else -CONFIGURE_ARGS+= --without-usb -PLIST_SUB+= NUT_USB="@comment " -.endif - -.if !defined(WITHOUT_SNMP) -LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp -CONFIGURE_ARGS+= --with-snmp -MAN8+= snmp-ups.8 -PLIST_SUB+= NUT_SNMP="" -.else -CONFIGURE_ARGS+= --without-snmp -PLIST_SUB+= NUT_SNMP="@comment " -.endif - -.if !defined(WITHOUT_NEON) -.if exists(${LOCALBASE}/lib/libneon.so.26) -LIB_DEPENDS+= neon.26:${PORTSDIR}/www/neon26 -.else -LIB_DEPENDS+= neon.28:${PORTSDIR}/www/neon28 -.endif -CONFIGURE_ARGS+= --with-neonxml -MAN8+= netxml-ups.8 -PLIST_SUB+= NUT_NEON="" -.else -CONFIGURE_ARGS+= --without-neonxml -PLIST_SUB+= NUT_NEON="@comment " -.endif - -.if defined(WITH_HAL) -. if defined(WITHOUT_USB) -BROKEN= HAL is only usable with USB support enabled. Run 'make config' again! -. endif -LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal -CONFIGURE_ARGS+= --with-hal -#MAN8+= -PLIST_SUB+= NUT_HAL="" -.else -CONFIGURE_ARGS+= --without-hal -PLIST_SUB+= NUT_HAL="@comment " -.endif - -.if !defined(WITHOUT_IPV6) -CONFIGURE_ARGS+= --with-ipv6 -.else -CONFIGURE_ARGS+= --without-ipv6 -.endif - -.if defined(WITH_DEVEL) -CONFIGURE_ARGS+= --with-dev -MAN3+= upscli_connect.3 upscli_disconnect.3 upscli_fd.3 \ - upscli_get.3 upscli_list_next.3 upscli_list_start.3 \ - upscli_readline.3 upscli_sendline.3 upscli_splitaddr.3 \ - upscli_splitname.3 upscli_ssl.3 upscli_strerror.3 \ - upscli_upserror.3 upsclient.3 - -PLIST_SUB+= NUT_DEVEL="" -.else -CONFIGURE_ARGS+= --without-dev -PLIST_SUB+= NUT_DEVEL="@comment " -.endif - -pre-install: - @${MKDIR} ${PREFIX}/libexec/nut - @${MKDIR} ${STATEDIR} - @${CHOWN} ${NUT_USER}:${NUT_GROUP} ${STATEDIR} - @${CHMOD} 0750 ${STATEDIR} - -.if !defined(NOPORTDOCS) -post-install: - @${MKDIR} ${DOCSDIR}/cables - ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${DOCSDIR}/cables - ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${DOCSDIR} -.for file in AUTHORS COPYING ChangeLog INSTALL MAINTAINERS NEWS README UPGRADING - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor -.endif - -.include <bsd.port.post.mk> diff --git a/sysutils/nut22/distinfo b/sysutils/nut22/distinfo deleted file mode 100644 index 430e505e1878..000000000000 --- a/sysutils/nut22/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -MD5 (nut-2.2.2.tar.gz) = 677a84a83e9be7bc93610413ee696375 -SHA256 (nut-2.2.2.tar.gz) = 599d0024bcc116137a3eb65030d3dbc7132a64f30a7717f76a8254d8543422eb -SIZE (nut-2.2.2.tar.gz) = 1184406 -MD5 (nut-2.2.2.tar.gz.sig) = 2664e2b5bd2a7e7cd2939cb3f43d8e3d -SHA256 (nut-2.2.2.tar.gz.sig) = 17f420125e63368f127b6802aa60c3be6a99737276bf82163fc694c2d186fe22 -SIZE (nut-2.2.2.tar.gz.sig) = 65 diff --git a/sysutils/nut22/files/nut.sh.in b/sysutils/nut22/files/nut.sh.in deleted file mode 100644 index 9cd40c1430b5..000000000000 --- a/sysutils/nut22/files/nut.sh.in +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: nut -# REQUIRE: NETWORKING -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these nut_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/nut -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -nut_enable=${nut_enable-"NO"} -nut_prefix=${nut_prefix-"%%PREFIX%%"} - -. %%RC_SUBR%% - -name="nut" -rcvar=`set_rcvar` - -load_rc_config $name - -required_dirs="%%STATEDIR%%" -required_files="${nut_prefix}/etc/nut/ups.conf ${nut_prefix}/etc/nut/upsd.conf ${nut_prefix}/etc/nut/upsd.users" -command="${nut_prefix}/sbin/upsd" -pidfile="%%STATEDIR%%/upsd.pid" - -start_precmd="nut_prestart" -stop_postcmd="nut_poststop" - -nut_prestart() { - ${nut_prefix}/libexec/nut/upsdrvctl start -} - -nut_poststop() { - ${nut_prefix}/libexec/nut/upsdrvctl stop -} - -run_rc_command "$1" diff --git a/sysutils/nut22/files/nut_upslog.sh.in b/sysutils/nut22/files/nut_upslog.sh.in deleted file mode 100644 index 908451b9c331..000000000000 --- a/sysutils/nut22/files/nut_upslog.sh.in +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: nut_upslog -# REQUIRE: NETWORKING nut -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these nut_upslog* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/nut_upslog -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -nut_upslog_enable=${nut_upslog_enable-"NO"} -nut_upslog_prefix=${nut_upslog_prefix-"%%PREFIX%%"} -nut_upslog_logfile=${nut_upslog_logfile-"/var/log/ups.log"} -nut_upslog_interval=${nut_upslog_interval-"300"} -nut_upslog_ups=${nut_upslog_ups-"myups@localhost"} - -. %%RC_SUBR%% - -name="nut_upslog" -rcvar=`set_rcvar` - -load_rc_config $name - -required_dirs="%%STATEDIR%%" -command="${nut_upslog_prefix}/bin/upslog" -pidfile="%%STATEDIR%%/upslog.pid" -nut_upslog_flags=${nut_upslog_flags-"-s ${nut_upslog_ups} -l ${nut_upslog_logfile} -i ${nut_upslog_interval}"} - -run_rc_command "$1" diff --git a/sysutils/nut22/files/nut_upsmon.sh.in b/sysutils/nut22/files/nut_upsmon.sh.in deleted file mode 100644 index 5d5449dc3204..000000000000 --- a/sysutils/nut22/files/nut_upsmon.sh.in +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: nut_upsmon -# REQUIRE: NETWORKING nut -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these nut_upsmon* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/nut_upsmon -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -nut_upsmon_enable=${nut_upsmon_enable-"NO"} -nut_upsmon_prefix=${nut_upsmon_prefix-"%%PREFIX%%"} - -. %%RC_SUBR%% - -name="nut_upsmon" -rcvar=`set_rcvar` - -load_rc_config $name - -required_dirs="%%STATEDIR%%" -required_files="${nut_upsmon_prefix}/etc/nut/upsmon.conf" -command="${nut_upsmon_prefix}/sbin/upsmon" -pidfile="%%STATEDIR%%/upsmon.pid" -nut_upsmon_flags=${nut_upsmon_flags-"localhost"} - -run_rc_command "$1" diff --git a/sysutils/nut22/files/patch-clients-Makefile.in b/sysutils/nut22/files/patch-clients-Makefile.in deleted file mode 100644 index 5f1ff8b9b730..000000000000 --- a/sysutils/nut22/files/patch-clients-Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- clients/Makefile.in.orig 2007-07-05 15:21:22.000000000 +0200 -+++ clients/Makefile.in 2007-08-28 15:25:39.000000000 +0200 -@@ -440,7 +440,7 @@ - done - install-cgiexecPROGRAMS: $(cgiexec_PROGRAMS) - @$(NORMAL_INSTALL) -- test -z "$(cgiexecdir)" || $(MKDIR_P) "$(DESTDIR)$(cgiexecdir)" -+ test -z "$(cgiexec_PROGRAMS)" -o -z "$(cgiexecdir)" || $(MKDIR_P) "$(DESTDIR)$(cgiexecdir)" - @list='$(cgiexec_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ diff --git a/sysutils/nut22/files/patch-data-html-Makefile.in b/sysutils/nut22/files/patch-data-html-Makefile.in deleted file mode 100644 index da43f2a417c5..000000000000 --- a/sysutils/nut22/files/patch-data-html-Makefile.in +++ /dev/null @@ -1,20 +0,0 @@ ---- data/html/Makefile.in.orig 2007-07-05 15:21:23.000000000 +0200 -+++ data/html/Makefile.in 2007-08-28 15:25:08.000000000 +0200 -@@ -285,7 +285,7 @@ - uninstall-info-am: - install-dist_htmlDATA: $(dist_html_DATA) - @$(NORMAL_INSTALL) -- test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" -+ test -z "$(dist_html_DATA)" -o -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" - @list='$(dist_html_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ -@@ -302,7 +302,7 @@ - done - install-nodist_htmlDATA: $(nodist_html_DATA) - @$(NORMAL_INSTALL) -- test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" -+ test -z "$(nodist_html_DATA)" -o -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" - @list='$(nodist_html_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ diff --git a/sysutils/nut22/files/patch-m4-nut_check_ipv6.m4 b/sysutils/nut22/files/patch-m4-nut_check_ipv6.m4 deleted file mode 100644 index fa12e98b55d3..000000000000 --- a/sysutils/nut22/files/patch-m4-nut_check_ipv6.m4 +++ /dev/null @@ -1,13 +0,0 @@ ---- m4/nut_check_ipv6.m4.orig 2007-03-15 21:19:05.000000000 +0100 -+++ m4/nut_check_ipv6.m4 2007-10-15 11:42:02.000000000 +0200 -@@ -22,7 +22,9 @@ - struct in6_addr], - [:], - [nut_have_ipv6=no], -- [#include <netdb.h>]) -+ [#include <netdb.h> -+ #include <sys/socket.h> -+ #include <netinet/in.h>]) - - dnl AC_CHECK_MEMBERS([struct in6_addr.s6_addr32], - dnl [:], diff --git a/sysutils/nut22/pkg-descr b/sysutils/nut22/pkg-descr deleted file mode 100644 index c075d4fba383..000000000000 --- a/sysutils/nut22/pkg-descr +++ /dev/null @@ -1,7 +0,0 @@ -This is a developing project to monitor a large assortment of UPS hardware. -Network communications are used so that multiple systems can monitor a -single physical UPS and shut down together if necessary without any -special "sharing hardware" on the UPS itself. CGI scripts are provided -to monitor UPS status via a WEB browser. - -WWW: http://www.networkupstools.org/ diff --git a/sysutils/nut22/pkg-plist b/sysutils/nut22/pkg-plist deleted file mode 100644 index f18971be7baf..000000000000 --- a/sysutils/nut22/pkg-plist +++ /dev/null @@ -1,88 +0,0 @@ -@stopdaemon nut_upsmon -@stopdaemon nut_upslog -@stopdaemon nut -bin/upsc -bin/upscmd -bin/upslog -bin/upsrw -bin/upssched-cmd -etc/nut/cmdvartab -etc/nut/driver.list -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 -%%NUT_DEVEL%%include/parseconf.h -%%NUT_DEVEL%%include/upsclient.h -lib/libupsclient.so.1 -lib/libupsclient.so -lib/libupsclient.la -%%NUT_HAL%%libexec/hald-addon-bcmxcp_usb -%%NUT_HAL%%libexec/hald-addon-megatec_usb -%%NUT_HAL%%libexec/hald-addon-tripplite_usb -%%NUT_HAL%%libexec/hald-addon-usbhid-ups -%%NUT_SERIAL%%libexec/nut/al175 -%%NUT_SERIAL%%libexec/nut/apcsmart -%%NUT_SERIAL%%libexec/nut/bcmxcp -%%NUT_USB%%libexec/nut/bcmxcp_usb -%%NUT_SERIAL%%libexec/nut/belkin -%%NUT_SERIAL%%libexec/nut/belkinunv -%%NUT_SERIAL%%libexec/nut/bestfcom -%%NUT_SERIAL%%libexec/nut/bestuferrups -%%NUT_SERIAL%%libexec/nut/bestups -%%NUT_SERIAL%%libexec/nut/cpsups -%%NUT_SERIAL%%libexec/nut/cyberpower -%%NUT_SERIAL%%libexec/nut/dummy-ups -%%NUT_SERIAL%%libexec/nut/etapro -%%NUT_SERIAL%%libexec/nut/everups -%%NUT_SERIAL%%libexec/nut/gamatronic -%%NUT_SERIAL%%libexec/nut/genericups -%%NUT_SERIAL%%libexec/nut/isbmex -%%NUT_SERIAL%%libexec/nut/liebert -%%NUT_SERIAL%%libexec/nut/masterguard -%%NUT_SERIAL%%libexec/nut/megatec -%%NUT_USB%%libexec/nut/megatec_usb -%%NUT_SERIAL%%libexec/nut/metasys -%%NUT_SERIAL%%libexec/nut/mge-shut -%%NUT_SERIAL%%libexec/nut/mge-utalk -%%NUT_NEON%%libexec/nut/netxml-ups -%%NUT_SERIAL%%libexec/nut/newmge-shut -%%NUT_SERIAL%%libexec/nut/nitram -%%NUT_SERIAL%%libexec/nut/oneac -%%NUT_SERIAL%%libexec/nut/optiups -%%NUT_SERIAL%%libexec/nut/powercom -%%NUT_SERIAL%%libexec/nut/powerpanel -%%NUT_SERIAL%%libexec/nut/rhino -%%NUT_SERIAL%%libexec/nut/safenet -%%NUT_SNMP%%libexec/nut/snmp-ups -%%NUT_SERIAL%%libexec/nut/skel -%%NUT_SERIAL%%libexec/nut/solis -%%NUT_SERIAL%%libexec/nut/tripplite -%%NUT_USB%%libexec/nut/tripplite_usb -%%NUT_SERIAL%%libexec/nut/tripplitesu -%%NUT_SERIAL%%libexec/nut/upscode2 -libexec/nut/upsdrvctl -%%NUT_USB%%libexec/nut/usbhid-ups -%%NUT_SERIAL%%libexec/nut/victronups -%%NUT_DEVEL%%libdata/pkgconfig/libupsclient.pc -sbin/upsd -sbin/upsmon -sbin/upssched -%%NUT_CGI%%%%CGIDIR%%/upsimage.cgi -%%NUT_CGI%%%%CGIDIR%%/upsset.cgi -%%NUT_CGI%%%%CGIDIR%%/upsstats.cgi -%%NUT_CGI%%%%CGIETCDIR%%/hosts.conf.sample -%%NUT_CGI%%%%CGIETCDIR%%/upsset.conf.sample -%%NUT_CGI%%%%CGIETCDIR%%/upsstats.html.sample -%%NUT_CGI%%%%CGIETCDIR%%/upsstats-single.html.sample -%%NUT_CGI%%%%WWWDIR%%/bottom.html -%%NUT_CGI%%%%WWWDIR%%/header.html -%%NUT_CGI%%%%WWWDIR%%/index.html -%%NUT_CGI%%%%WWWDIR%%/nut-banner.png -@dirrmtry etc/nut -@dirrmtry libdata/pkgconfig -@dirrmtry libexec/nut -@dirrmtry %%STATEDIR%% -%%NUT_CGI%%@dirrm %%CGIDIR%% -%%NUT_CGI%%@dirrm %%WWWDIR%% |