aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nut22
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/nut22')
-rw-r--r--sysutils/nut22/Makefile86
-rw-r--r--sysutils/nut22/distinfo2
-rw-r--r--sysutils/nut22/files/nut.sh.sample72
-rw-r--r--sysutils/nut22/files/patch-man_Makefile.in11
-rw-r--r--sysutils/nut22/pkg-descr10
-rw-r--r--sysutils/nut22/pkg-plist94
6 files changed, 0 insertions, 275 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile
deleted file mode 100644
index e970df1dcf3a..000000000000
--- a/sysutils/nut22/Makefile
+++ /dev/null
@@ -1,86 +0,0 @@
-# New ports collection makefile for: nut
-# Date created: 08 Jan 2000
-# Whom: Boris Popov <bp@freebsd.org>
-#
-# $FreeBSD$
-#
-
-PORTNAME= nut
-PORTVERSION= 1.4.1
-CATEGORIES= sysutils
-MASTER_SITES= http://us1.networkupstools.org/source/${PORTVERSION:R}/ \
- http://eu1.networkupstools.org/source/${PORTVERSION:R}/
-
-MAINTAINER= DougB@FreeBSD.org
-COMMENT= Network UPS Tools
-
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
- --localstatedir=/var/db/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 bcmxcp.8 belkin.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-shut.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 tripplitesu.8 upsc.8 upscmd.8 upsd.8 \
- upsdrvctl.8 upslog.8 upsmon.8 upsrw.8 upssched.8 victronups.8 \
- dummycons.8 energizerups.8 ferrups.8 safenet.8
-
-ALL_TARGET= all
-INSTALL_TARGET= install
-
-.if defined(WITH_NUT_CGI)
-LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
-ALL_TARGET+= cgi
-INSTALL_TARGET+=install-cgi
-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
-.else
-CGIDIR?= www/cgi-bin
-.endif
-CONFIGURE_ARGS+= --with-cgi --with-cgipath=${PREFIX}/${CGIDIR}/nut \
- --with-gd-includes=-I${PREFIX}/include \
- --with-gd-libs="-L${PREFIX}/lib -lgd"
-PLIST_SUB+= CGIFILES="${CGIDIR}/nut/"
-PLIST_SUB+= CGIDIRRM="@dirrm ${CGIDIR}/nut"
-PLIST_SUB+= CGIETC="etc/nut/"
-.else
-PLIST_SUB+= CGIFILES="@comment "
-PLIST_SUB+= CGIDIRRM="@comment "
-PLIST_SUB+= CGIETC="@comment "
-.endif
-
-pre-install:
-.if !defined(WITH_NUT_CGI) && !defined(BATCH) && !defined(PACKAGE_BUILDING)
- @${ECHO_MSG} "Type \"make -DWITH_NUT_CGI\" if you want to build CGI scripts."
-.endif
- @${MKDIR} ${PREFIX}/libexec/nut
- @${MKDIR} /var/db/nut
- @${CHOWN} uucp /var/db/nut
-
-post-install:
- @${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
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}/cables
- @${MKDIR} ${DOCSDIR}/drivers
- ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${DOCSDIR}/cables
- ${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>
diff --git a/sysutils/nut22/distinfo b/sysutils/nut22/distinfo
deleted file mode 100644
index c5614f4d8809..000000000000
--- a/sysutils/nut22/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 (nut-1.4.1.tar.gz) = ae91ea3d643d7665bda0a95ce62957a0
-SIZE (nut-1.4.1.tar.gz) = 550238
diff --git a/sysutils/nut22/files/nut.sh.sample b/sysutils/nut22/files/nut.sh.sample
deleted file mode 100644
index 79537db58840..000000000000
--- a/sysutils/nut22/files/nut.sh.sample
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-# Please see detailed Copyright (c) below
-#
-# $FreeBSD$
-#
-# This is a sample startup file that works for my BackUPS Pro 650.
-# If that's not what you're monitoring, you will probably need to
-# edit this file, although the basic concepts are the same.
-# - Doug Barton, DougB@FreeBSD.org
-#
-# Edit PREFIX below if necessary, then copy this file to
-# ${PREFIX}/etc/rc.d/nut.sh and make it executable. (E.g., chmod 0700)
-
-# Usually /usr/local
-PREFIX=%%PREFIX%%
-
-BIN=${PREFIX}/bin
-SBIN=${PREFIX}/sbin
-MODELS=${PREFIX}/libexec/nut
-
-UPSTYPE='genericups'
-UPSFLAGS='-a backups'
-
-UPSLOG='/var/log/ups.log'
-UPSLOGINTERVAL='300'
-
-case "${1}" in
-start)
- ${MODELS}/${UPSTYPE} ${UPSFLAGS}
- ${SBIN}/upsd
- ${SBIN}/upsmon localhost
- ${BIN}/upslog -s backups@localhost -l ${UPSLOG} -i ${UPSLOGINTERVAL}
- ;;
-stop)
- /usr/bin/killall upslog upsmon upsd ${UPSTYPE}
- ;;
-restart)
- $0 stop
- $0 start
- ;;
-*)
- echo "Usage: $0 {start|stop|restart}"
- ;;
-esac
-
-exit 0
-
-# Copyright (c) 2003 The FreeBSD Project
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-
diff --git a/sysutils/nut22/files/patch-man_Makefile.in b/sysutils/nut22/files/patch-man_Makefile.in
deleted file mode 100644
index 557ac7e5e9d0..000000000000
--- a/sysutils/nut22/files/patch-man_Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- man/Makefile.in.orig Thu Nov 27 15:35:19 2003
-+++ man/Makefile.in Sat Feb 7 23:09:21 2004
-@@ -47,7 +47,7 @@
- echo $(INSTALLCMD) -m $(INSTALLMODE) $$f $(MANDIR)/man5; \
- $(INSTALLCMD) -m $(INSTALLMODE) $$f $(MANDIR)/man5; \
- done
-- @for f in $(MAN8_PAGES) ; do \
-+ @for f in $(MAN8_PAGES) $(SNMPPAGES) hp.8 ; do \
- echo $(INSTALLCMD) -m $(INSTALLMODE) $$f $(MANDIR)/man8; \
- $(INSTALLCMD) -m $(INSTALLMODE) $$f $(MANDIR)/man8; \
- done
diff --git a/sysutils/nut22/pkg-descr b/sysutils/nut22/pkg-descr
deleted file mode 100644
index 718048d9f8f5..000000000000
--- a/sysutils/nut22/pkg-descr
+++ /dev/null
@@ -1,10 +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/
-
-- Doug Barton
-DougB@FreeBSD.org
diff --git a/sysutils/nut22/pkg-plist b/sysutils/nut22/pkg-plist
deleted file mode 100644
index 73c6b8c2f39b..000000000000
--- a/sysutils/nut22/pkg-plist
+++ /dev/null
@@ -1,94 +0,0 @@
-bin/upsc
-bin/upscmd
-bin/upslog
-bin/upsrw
-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/rc.d/nut.sh.sample
-libexec/nut/apcsmart
-libexec/nut/bcmxcp
-libexec/nut/belkin
-libexec/nut/bestfortress
-libexec/nut/bestuferrups
-libexec/nut/bestups
-libexec/nut/blazer
-libexec/nut/cyberpower
-libexec/nut/esupssmart
-libexec/nut/etapro
-libexec/nut/everups
-libexec/nut/fentonups
-libexec/nut/ferrups
-libexec/nut/genericups
-libexec/nut/hp
-libexec/nut/isbmex
-libexec/nut/liebert
-libexec/nut/masterguard
-libexec/nut/mge-shut
-libexec/nut/mge-utalk
-libexec/nut/microdowell
-libexec/nut/newapc
-libexec/nut/oneac
-libexec/nut/powercom
-libexec/nut/safenet
-libexec/nut/sec
-libexec/nut/sms
-libexec/nut/tripplite
-libexec/nut/tripplitesu
-libexec/nut/upsdrvctl
-libexec/nut/victronups
-sbin/upsd
-sbin/upsmon
-sbin/upssched
-share/cmdvartab
-%%CGIFILES%%upsimage.cgi
-%%CGIFILES%%upsset.cgi
-%%CGIFILES%%upsstats.cgi
-%%CGIETC%%hosts.conf.sample
-%%CGIETC%%upsset.conf.sample
-%%CGIETC%%upsstats.html.sample
-%%CGIETC%%upsstats-single.html.sample
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/CREDITS
-%%PORTDOCS%%%%DOCSDIR%%/FAQ
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/UPGRADING
-%%PORTDOCS%%%%DOCSDIR%%/big-servers.txt
-%%PORTDOCS%%%%DOCSDIR%%/cables/apc.txt
-%%PORTDOCS%%%%DOCSDIR%%/cables/ge-imv-victron.txt
-%%PORTDOCS%%%%DOCSDIR%%/cables/imv.txt
-%%PORTDOCS%%%%DOCSDIR%%/cables/mgeups.txt
-%%PORTDOCS%%%%DOCSDIR%%/cables/powerware.txt
-%%PORTDOCS%%%%DOCSDIR%%/cables/repotec.txt
-%%PORTDOCS%%%%DOCSDIR%%/cables/sms.txt
-%%PORTDOCS%%%%DOCSDIR%%/chroot.txt
-%%PORTDOCS%%%%DOCSDIR%%/commands.txt
-%%PORTDOCS%%%%DOCSDIR%%/config-files.txt
-%%PORTDOCS%%%%DOCSDIR%%/configure.txt
-%%PORTDOCS%%%%DOCSDIR%%/contact-closure.txt
-%%PORTDOCS%%%%DOCSDIR%%/data-room.txt
-%%PORTDOCS%%%%DOCSDIR%%/design.txt
-%%PORTDOCS%%%%DOCSDIR%%/developers.txt
-%%PORTDOCS%%%%DOCSDIR%%/driver.list
-%%PORTDOCS%%%%DOCSDIR%%/new-drivers.txt
-%%PORTDOCS%%%%DOCSDIR%%/new-names.txt
-%%PORTDOCS%%%%DOCSDIR%%/osd-notify.txt
-%%PORTDOCS%%%%DOCSDIR%%/pager.txt
-%%PORTDOCS%%%%DOCSDIR%%/powersaving.txt
-%%PORTDOCS%%%%DOCSDIR%%/protocol.txt
-%%PORTDOCS%%%%DOCSDIR%%/shutdown.txt
-%%PORTDOCS%%%%DOCSDIR%%/snmp.txt
-%%PORTDOCS%%%%DOCSDIR%%/sock-protocol.txt
-%%PORTDOCS%%%%DOCSDIR%%/ssl.txt
-%%PORTDOCS%%%%DOCSDIR%%/todo.txt
-%%PORTDOCS%%%%DOCSDIR%%/upssched.txt
-@dirrm %%DOCSDIR%%/cables
-@dirrm %%DOCSDIR%%/drivers
-@dirrm %%DOCSDIR%%
-@dirrm libexec/nut
-%%CGIDIRRM%%
-@unexec rmdir %D/etc/nut 2>/dev/null || true