diff options
Diffstat (limited to 'sysutils/nut22')
-rw-r--r-- | sysutils/nut22/Makefile | 138 | ||||
-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-Makefile.in | 33 | ||||
-rw-r--r-- | sysutils/nut22/files/patch-drivers_Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/nut22/pkg-descr | 10 | ||||
-rw-r--r-- | sysutils/nut22/pkg-plist | 115 |
9 files changed, 0 insertions, 427 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile deleted file mode 100644 index 79fb7590a05f..000000000000 --- a/sysutils/nut22/Makefile +++ /dev/null @@ -1,138 +0,0 @@ -# New ports collection makefile for: nut -# Date created: 08 Jan 2000 -# Whom: Boris Popov <bp@freebsd.org> -# -# $FreeBSD$ -# - -PORTNAME= nut -PORTVERSION= 2.0.5 -PORTREVISION= 1 -CATEGORIES= sysutils -MASTER_SITES= http://eu1.networkupstools.org/source/${PORTVERSION:R}/ \ - http://us1.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 - -SUBSYS?= base -.if ${SUBSYS} != base -PKGNAMESUFFIX= -${SUBSYS} -.endif - -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \ - --localstatedir=${STATEDIR} \ - --datadir=${PREFIX}/etc/nut \ - --mandir=${PREFIX}/man \ - --with-drvpath=${PREFIX}/libexec/nut \ - --with-statepath=${STATEDIR} \ - --with-altpidpath=${STATEDIR} \ - --with-pidpath=${STATEDIR} \ - --with-linux-hiddev=no \ - --with-user=${NUT_USER} - -NUT_USER?= uucp -STATEDIR= ${DESTDIR}/var/db/nut - -.include <bsd.port.pre.mk> - -.if ${SUBSYS} == base -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 fentonups.8 genericups.8 \ - ippon.8 isbmex.8 liebert.8 masterguard.8 megatec.8 metasys.8 \ - mge-shut.8 mge-utalk.8 mustek.8 nitram.8 nutupsdrv.8 oneac.8 \ - optiups.8 powercom.8 powerpanel.8 safenet.8 sms.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 - -ALL_TARGET= all -INSTALL_TARGET= install install-conf - -.if defined(WITH_NUT_CGI) -LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd -ALL_TARGET+= cgi -INSTALL_TARGET+=install-cgi install-cgi-conf -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 -.endif - -.if ${SUBSYS} == usb -LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb -ALL_TARGET= usb -INSTALL_TARGET= install-usb - -MAN8= bcmxcp_usb.8 newhidups.8 tripplite_usb.8 -.endif - -.if ${SUBSYS} == snmp -LIB_DEPENDS+= netsnmp.10:${PORTSDIR}/net-mgmt/net-snmp -ALL_TARGET= snmp -INSTALL_TARGET= install-snmp - -MAN8= snmp-ups.8 -.endif - -.if ${SUBSYS} == libupsclient -CONFIGURE_ARGS+= --enable-pkg-config \ - --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig -ALL_TARGET= lib -INSTALL_TARGET= install-lib - -MAN3= upscli_connect.3 upscli_disconnect.3 upscli_readline.3 \ - upscli_sendline.3 upscli_splitname.3 upscli_strerror.3 - -post-patch: - @${REINPLACE_CMD} -e "s#@PKG_CFG_DIR@#${PREFIX}/libdata/pkgconfig#g" \ - ${WRKSRC}/lib/Makefile.in -.endif - -.if ${SUBSYS} == base -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} ${STATEDIR} - @${CHOWN} ${NUT_USER}:wheel ${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 ChangeLog CREDITS INSTALL NEWS README UPGRADING - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor -.endif - -.endif - -.include <bsd.port.post.mk> diff --git a/sysutils/nut22/distinfo b/sysutils/nut22/distinfo deleted file mode 100644 index 75fc04d0f31e..000000000000 --- a/sysutils/nut22/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -MD5 (nut-2.0.5.tar.gz) = b08fde86191154bbcfda860f95a5dca2 -SHA256 (nut-2.0.5.tar.gz) = 5e1bfecfca528104db7025050c81258ee20620df7497ab5988ad461d951c8203 -SIZE (nut-2.0.5.tar.gz) = 809006 -MD5 (nut-2.0.5.tar.gz.sig) = 87e01f70e56e647af64c1a9324525f6c -SHA256 (nut-2.0.5.tar.gz.sig) = e2307cde6369dd9d425758171cc5de36676b419d9d88b76012c9f0acc6ac657d -SIZE (nut-2.0.5.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-Makefile.in b/sysutils/nut22/files/patch-Makefile.in deleted file mode 100644 index 72832e15e229..000000000000 --- a/sysutils/nut22/files/patch-Makefile.in +++ /dev/null @@ -1,33 +0,0 @@ ---- Makefile.in.orig Mon Oct 10 04:12:51 2005 -+++ Makefile.in Thu Feb 23 19:44:12 2006 -@@ -90,6 +90,12 @@ - install-cgi-conf: - @cd conf; $(MAKE) install-cgi-conf; cd ..; - -+lib: build-lib -+ -+build-lib: -+ @cd common ; $(MAKE) || exit 1; cd ..; -+ @cd clients; $(MAKE) libupsclient.a || exit 1; cd ..; -+ - install-lib: - @cd clients; $(MAKE) install-lib; cd ..; - @cd man; $(MAKE) install-lib-man; cd ..; -@@ -98,6 +104,7 @@ - usb: build-usb - - build-usb: -+ @cd common ; $(MAKE) || exit 1; cd ..; - @cd drivers; $(MAKE) build-usb; cd ..; - - install-usb: -@@ -107,7 +114,8 @@ - snmp: build-snmp - - build-snmp: -- @cd drivers; $(MAKE) snmp-ups; cd ..; -+ @cd common ; $(MAKE) || exit 1; cd ..; -+ @cd drivers; $(MAKE) snmp-ups || exit 1; cd ..; - - install-snmp: snmp install-snmp-man install-snmp-mgr - diff --git a/sysutils/nut22/files/patch-drivers_Makefile.in b/sysutils/nut22/files/patch-drivers_Makefile.in deleted file mode 100644 index 5ef287b7ee51..000000000000 --- a/sysutils/nut22/files/patch-drivers_Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- drivers/Makefile.in.orig Thu Feb 23 19:38:14 2006 -+++ drivers/Makefile.in Thu Feb 23 19:38:43 2006 -@@ -8,7 +8,7 @@ - - # other definitions - CC = @CC@ --CFLAGS = -I../include @CFLAGS@ -+CFLAGS = -I../include @CFLAGS@ @LIBUSB_CFLAGS@ - PROGS = bestups fentonups apcsmart everups belkin masterguard powercom \ - cyberpower tripplite victronups genericups mge-utalk bestuferrups \ - isbmex etapro liebert sms esupssmart tripplitesu blazer safenet \ 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 c050dba648fa..000000000000 --- a/sysutils/nut22/pkg-plist +++ /dev/null @@ -1,115 +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 -bin/upsc -bin/upscmd -bin/upslog -bin/upsrw -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 -libexec/nut/al175 -libexec/nut/apcsmart -libexec/nut/bcmxcp -libexec/nut/belkin -libexec/nut/belkinunv -libexec/nut/bestfcom -libexec/nut/bestuferrups -libexec/nut/bestups -libexec/nut/blazer -libexec/nut/cpsups -libexec/nut/cyberpower -libexec/nut/esupssmart -libexec/nut/etapro -libexec/nut/everups -libexec/nut/fentonups -libexec/nut/gamatronic -libexec/nut/genericups -libexec/nut/ippon -libexec/nut/isbmex -libexec/nut/liebert -libexec/nut/masterguard -libexec/nut/megatec -libexec/nut/metasys -libexec/nut/mge-shut -libexec/nut/mge-utalk -libexec/nut/mustek -libexec/nut/nitram -libexec/nut/oneac -libexec/nut/optiups -libexec/nut/powercom -libexec/nut/powerpanel -libexec/nut/rhino -libexec/nut/safenet -libexec/nut/sms -libexec/nut/solis -libexec/nut/tripplite -libexec/nut/tripplitesu -libexec/nut/upscode2 -libexec/nut/upsdrvctl -libexec/nut/victronups -sbin/upsd -sbin/upsmon -sbin/upssched -%%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%%@exec mkdir %D/%%DOCSDIR%% -%%PORTDOCS%%@exec mkdir %D/%%DOCSDIR%%/cables -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/CREDITS -%%PORTDOCS%%%%DOCSDIR%%/FAQ -%%PORTDOCS%%%%DOCSDIR%%/INSTALL -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/UPGRADING -%%PORTDOCS%%%%DOCSDIR%%/acpi.txt -%%PORTDOCS%%%%DOCSDIR%%/al175-vars.txt -%%PORTDOCS%%%%DOCSDIR%%/big-servers.txt -%%PORTDOCS%%%%DOCSDIR%%/cables/apc-rs500-serial.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%%/ideas.txt -%%PORTDOCS%%%%DOCSDIR%%/hid-subdrivers.txt -%%PORTDOCS%%%%DOCSDIR%%/megatec.txt -%%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%%/upssched.txt -%%PORTDOCS%%@dirrm %%DOCSDIR%%/cables -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrmtry etc/nut -@dirrmtry libexec/nut -@dirrmtry %%STATEDIR%% -%%CGIDIRRM%% |