aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nut22
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/nut22')
-rw-r--r--sysutils/nut22/Makefile144
-rw-r--r--sysutils/nut22/distinfo6
-rw-r--r--sysutils/nut22/files/nut.sh.in44
-rw-r--r--sysutils/nut22/files/nut_upslog.sh.in36
-rw-r--r--sysutils/nut22/files/nut_upsmon.sh.in34
-rw-r--r--sysutils/nut22/files/patch-clients-Makefile.in11
-rw-r--r--sysutils/nut22/files/patch-data-html-Makefile.in20
-rw-r--r--sysutils/nut22/files/patch-include-Makefile.in11
-rw-r--r--sysutils/nut22/files/patch-m4-nut_check_ipv6.m413
-rw-r--r--sysutils/nut22/pkg-descr7
-rw-r--r--sysutils/nut22/pkg-plist87
11 files changed, 0 insertions, 413 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile
deleted file mode 100644
index e6beba1a69de..000000000000
--- a/sysutils/nut22/Makefile
+++ /dev/null
@@ -1,144 +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.1
-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:261
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
-
-NUT_USER?= uucp
-NUT_GROUP?= uucp
-STATEDIR?= /var/db/nut
-
-OPTIONS= USB "USB support" on \
- SNMP "SNMP support" on \
- IPV6 "IPV6 support" on \
- LIBUPSCLIENT "Include the libupsclient library" 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= 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 upsc.8 upscmd.8 upscode2.8 upsd.8 upsdrvctl.8 \
- upslog.8 upsmon.8 upsrw.8 upssched.8 victronups.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-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
-.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
-CGIDIR?= share/apache/cgi-bin
-WWWDIR?= share/apache/htdocs
-.else
-CGIDIR?= www/cgi-bin
-WWWDIR?= www/data
-.endif
-CONFIGURE_ARGS+= --with-cgi --with-cgipath=${PREFIX}/${CGIDIR}/nut \
- --with-htmlpath=${PREFIX}/${WWWDIR}/nut \
- --with-gd-includes=-I${PREFIX}/include \
- --with-gd-libs="-L${PREFIX}/lib -lgd"
-PLIST_SUB+= NUT_CGI=""
-PLIST_SUB+= WWWDIR="${WWWDIR}"
-PLIST_SUB+= CGIDIR="${CGIDIR}"
-PLIST_SUB+= CGIETCDIR="etc/nut/"
-.else
-CONFIGURE_ARGS+= --without-cgi
-PLIST_SUB+= NUT_CGI="@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_IPV6)
-CONFIGURE_ARGS+= --with-ipv6
-.else
-CONFIGURE_ARGS+= --without-ipv6
-.endif
-
-.if defined(WITH_LIBUPSCLIENT)
-CONFIGURE_ARGS+= --with-lib --enable-pkg-config \
- --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
-
-MAN3+= upscli_connect.3 upscli_disconnect.3 upscli_readline.3 \
- upscli_sendline.3 upscli_splitname.3 upscli_strerror.3
-
-PLIST_SUB+= NUT_LIB=""
-.else
-CONFIGURE_ARGS+= --without-lib
-PLIST_SUB+= NUT_LIB="@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 f523f9165a9f..000000000000
--- a/sysutils/nut22/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 (nut-2.2.1.tar.gz) = c7ae871961a7dbe12b22d504267dc132
-SHA256 (nut-2.2.1.tar.gz) = 9aad15d8cdd8694839b54342c8b4c26ddce508f6fb29ff4bee3abbe1555771f4
-SIZE (nut-2.2.1.tar.gz) = 1192538
-MD5 (nut-2.2.1.tar.gz.sig) = 544eb134c6f42887656eb0aabde10df3
-SHA256 (nut-2.2.1.tar.gz.sig) = 769320a47ffcb96ada3f774c48f8338d7cd6836dca8c72d439bfc8bffe661393
-SIZE (nut-2.2.1.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 a8fb0585387d..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 002733026fcf..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-include-Makefile.in b/sysutils/nut22/files/patch-include-Makefile.in
deleted file mode 100644
index de795aaf72e0..000000000000
--- a/sysutils/nut22/files/patch-include-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- include/Makefile.in.orig Fri Dec 21 15:00:52 2007
-+++ include/Makefile.in Thu Jan 17 20:23:32 2008
-@@ -229,7 +229,7 @@
- BUILT_SOURCES = nut_version.h nut_stdint.h
- CLEANFILES = nut_version.h nut_stdint.h
- SVNREV = $(shell unset LANG && svnversion -n $(top_srcdir) 2>/dev/null)
--NUT_VERSION = $(shell if test "$(SVNREV)" = "exported"; then echo "$(PACKAGE_VERSION)"; else echo "$(PACKAGE_VERSION)-$(SVNREV)"; fi)
-+NUT_VERSION = $(shell if test "$(SVNREV)" = "exported" -o -z "${SVNREV}"; then echo "$(PACKAGE_VERSION)"; else echo "$(PACKAGE_VERSION)-$(SVNREV)"; fi)
- all: $(BUILT_SOURCES) config.h
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
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 f586f5cfa8d7..000000000000
--- a/sysutils/nut22/pkg-plist
+++ /dev/null
@@ -1,87 +0,0 @@
-@unexec %D/etc/rc.d/nut_upslog.sh forcestop 2>/dev/null || true
-@unexec %D/etc/rc.d/nut_upsmon.sh forcestop 2>/dev/null || true
-@unexec %D/etc/rc.d/nut.sh forcestop 2>/dev/null || true
-@unexec %D/etc/rc.d/nut_upslog forcestop 2>/dev/null || true
-@unexec %D/etc/rc.d/nut_upsmon forcestop 2>/dev/null || true
-@unexec %D/etc/rc.d/nut forcestop 2>/dev/null || true
-%%NUT_LIB%%bin/libupsclient-config
-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_LIB%%include/parseconf.h
-%%NUT_LIB%%include/upsclient.h
-%%NUT_LIB%%lib/libupsclient.a
-libexec/nut/al175
-libexec/nut/apcsmart
-libexec/nut/bcmxcp
-%%NUT_USB%%libexec/nut/bcmxcp_usb
-libexec/nut/belkin
-libexec/nut/belkinunv
-libexec/nut/bestfcom
-libexec/nut/bestuferrups
-libexec/nut/bestups
-libexec/nut/cpsups
-libexec/nut/cyberpower
-libexec/nut/dummy-ups
-libexec/nut/etapro
-libexec/nut/everups
-libexec/nut/gamatronic
-libexec/nut/genericups
-libexec/nut/isbmex
-libexec/nut/liebert
-libexec/nut/masterguard
-libexec/nut/megatec
-%%NUT_USB%%libexec/nut/megatec_usb
-libexec/nut/metasys
-libexec/nut/mge-shut
-libexec/nut/mge-utalk
-libexec/nut/newmge-shut
-libexec/nut/nitram
-libexec/nut/oneac
-libexec/nut/optiups
-libexec/nut/powercom
-libexec/nut/powerpanel
-libexec/nut/rhino
-libexec/nut/safenet
-%%NUT_SNMP%%libexec/nut/snmp-ups
-libexec/nut/skel
-libexec/nut/solis
-libexec/nut/tripplite
-%%NUT_USB%%libexec/nut/tripplite_usb
-libexec/nut/tripplitesu
-libexec/nut/upscode2
-libexec/nut/upsdrvctl
-%%NUT_USB%%libexec/nut/usbhid-ups
-libexec/nut/victronups
-%%NUT_LIB%%libdata/pkgconfig/libupsclient.pc
-sbin/upsd
-sbin/upsmon
-sbin/upssched
-%%NUT_CGI%%%%CGIDIR%%/nut/upsimage.cgi
-%%NUT_CGI%%%%CGIDIR%%/nut/upsset.cgi
-%%NUT_CGI%%%%CGIDIR%%/nut/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%%/nut/bottom.html
-%%NUT_CGI%%%%WWWDIR%%/nut/header.html
-%%NUT_CGI%%%%WWWDIR%%/nut/index.html
-%%NUT_CGI%%%%WWWDIR%%/nut/nut-banner.png
-@dirrmtry etc/nut
-@dirrmtry lib/pkgconfig
-@dirrmtry libexec/nut
-@dirrmtry %%STATEDIR%%
-%%NUT_CGI%%@dirrm %%CGIDIR%%/nut
-%%NUT_CGI%%@dirrmtry %%CGIDIR%%
-%%NUT_CGI%%@dirrm %%WWWDIR%%/nut
-%%NUT_CGI%%@dirrmtry %%WWWDIR%%