pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/ups-nut Update to ups-nut 1.4.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1809819e6507
branches:  trunk
changeset: 468608:1809819e6507
user:      lukem <lukem%pkgsrc.org@localhost>
date:      Sun Feb 15 13:14:25 2004 +0000

description:
Update to ups-nut 1.4.1.
Many changes, including
    *   various configuation file format changes
    *   most UPS drivers enhanced
    *   upsmon/upssched support a lockfile
    *   chroot jails supported
    *   various bugfixes
(Refer to http://random.networkupstools.org/source/1.4/new-1.4.1.txt
for more information)

pkg update based on work sent in private email by Daniel Farrugia,
with various fixes by me.

diffstat:

 sysutils/ups-nut/MESSAGE            |  13 +----
 sysutils/ups-nut/Makefile           |  27 +++++++----
 sysutils/ups-nut/PLIST              |  89 ++++++++++++++++++++----------------
 sysutils/ups-nut/distinfo           |  12 +---
 sysutils/ups-nut/files/upsdriver.sh |   6 +-
 sysutils/ups-nut/files/upslog.sh    |   4 +-
 sysutils/ups-nut/files/upsmon.sh    |   4 +-
 sysutils/ups-nut/patches/patch-aa   |  13 +++++
 sysutils/ups-nut/patches/patch-ab   |  13 -----
 sysutils/ups-nut/patches/patch-ad   |  29 ------------
 sysutils/ups-nut/patches/patch-af   |  23 ---------
 sysutils/ups-nut/patches/patch-ag   |  13 -----
 sysutils/ups-nut/patches/patch-ah   |  23 ---------
 13 files changed, 92 insertions(+), 177 deletions(-)

diffs (truncated from 478 to 300 lines):

diff -r 3fb8f79084b4 -r 1809819e6507 sysutils/ups-nut/MESSAGE
--- a/sysutils/ups-nut/MESSAGE  Sun Feb 15 13:13:52 2004 +0000
+++ b/sysutils/ups-nut/MESSAGE  Sun Feb 15 13:14:25 2004 +0000
@@ -1,16 +1,7 @@
 ===========================================================================
-$NetBSD: MESSAGE,v 1.5 2002/12/13 04:23:17 lukem Exp $
+$NetBSD: MESSAGE,v 1.6 2004/02/15 13:14:25 lukem Exp $
 
- ${NUT_CONFDIR}/upsd.users has a new format from version 0.45.5.
- You will need to update this before restarting upsd(8).
- Refer to ${NUT_EGDIR}/upsd.users.sample
- and upsd.users(5) for more information.
-
- The network port used by nut changed in version 0.50.0,
- to the IANA assigned 3493, from 3305 in previous versions.
- You will need to update all clients.
-
- Various changes occurred in version 1.0.
+ Various changes occurred in version 1.4.
  If upgrading from a prior version, refer to
  ${NUT_DOCDIR}/UPGRADING for more information.
 
diff -r 3fb8f79084b4 -r 1809819e6507 sysutils/ups-nut/Makefile
--- a/sysutils/ups-nut/Makefile Sun Feb 15 13:13:52 2004 +0000
+++ b/sysutils/ups-nut/Makefile Sun Feb 15 13:14:25 2004 +0000
@@ -1,28 +1,33 @@
-# $NetBSD: Makefile,v 1.28 2003/07/17 22:53:56 grant Exp $
+# $NetBSD: Makefile,v 1.29 2004/02/15 13:14:25 lukem Exp $
 #
 
-DISTNAME=              nut-1.2.1
-PKGNAME=               ups-nut-1.2.1
-PKGREVISION=           1
+DISTNAME=              nut-1.4.1
+PKGNAME=               ups-nut-1.4.1
 CATEGORIES=            sysutils
-MASTER_SITES=          http://www.exploits.org/nut/release/1.2/
+MASTER_SITES=          http://random.networkupstools.org/source/1.4/
 
 MAINTAINER=            lukem%NetBSD.org@localhost
-HOMEPAGE=              http://www.exploits.org/nut/
+HOMEPAGE=              http://www.networkupstools.org/
 COMMENT=               Network UPS Tools
 
 USE_BUILDLINK2=                yes
 USE_PKGINSTALL=                yes
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --sysconfdir=${NUT_CONFDIR}                     \
+                       --datadir=${NUT_DATADIR}                        \
+                       --localstatedir=${NUT_STATEDIR}                 \
                        --with-user=${NUT_USER}                         \
                        --with-group=${NUT_GROUP}                       \
                        --with-statepath=${NUT_STATEDIR}                \
-                       --with-drvpath=${LOCALBASE}/sbin/ups-drivers
+                       --with-drvpath=${NUT_DRVDIR}                    \
+                       --with-altpidpath=${NUT_STATEDIR}               \
+                       --with-pidpath=${NUT_STATEDIR}
 
 PKG_SYSCONFSUBDIR?=    nut
 NUT_CONFDIR=           ${PKG_SYSCONFDIR}
+NUT_DATADIR=           ${PREFIX}/share/nut
 NUT_DOCDIR=            ${PREFIX}/share/doc/nut
+NUT_DRVDIR=            ${PREFIX}/libexec/nut
 NUT_EGDIR=             ${PREFIX}/share/examples/nut
 NUT_STATEDIR=          /var/db/nut
 
@@ -58,18 +63,20 @@
 OWN_DIRS_PERMS=                ${NUT_STATEDIR} ${NUT_USER} ${NUT_GROUP} 0770
 
 pre-install:
-       @${INSTALL_DATA_DIR} ${NUT_EGDIR}
+       @${MKDIR} ${NUT_STATEDIR}
+       @${MKDIR} ${NUT_DRVDIR}
+       @${CHOWN} ${NUT_USER} ${NUT_STATEDIR}
+       ${INSTALL_DATA_DIR} ${NUT_EGDIR}
 
 post-install:
        ${INSTALL_DATA_DIR} ${NUT_DOCDIR}
        ${INSTALL_DATA_DIR} ${NUT_DOCDIR}/cables ${NUT_DOCDIR}/drivers
-       for f in CHANGES COPYING CREDITS NEWS README UPGRADING; do \
+       for f in CHANGES COPYING CREDITS NEWS README INSTALL UPGRADING; do \
                ${INSTALL_DATA} ${WRKSRC}/$$f ${NUT_DOCDIR}; \
        done
        ${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${NUT_DOCDIR}
        ${INSTALL_DATA} ${WRKSRC}/docs/driver.list ${NUT_DOCDIR}
        ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${NUT_DOCDIR}
        ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${NUT_DOCDIR}/cables
-       ${INSTALL_DATA} ${WRKSRC}/docs/drivers/*.txt ${NUT_DOCDIR}/drivers
 
 .include "../../mk/bsd.pkg.mk"
diff -r 3fb8f79084b4 -r 1809819e6507 sysutils/ups-nut/PLIST
--- a/sysutils/ups-nut/PLIST    Sun Feb 15 13:13:52 2004 +0000
+++ b/sysutils/ups-nut/PLIST    Sun Feb 15 13:14:25 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2002/12/13 04:23:17 lukem Exp $
+@comment $NetBSD: PLIST,v 1.12 2004/02/15 13:14:25 lukem Exp $
 bin/upsc
 bin/upscmd
 bin/upslog
@@ -8,6 +8,37 @@
 etc/rc.d/upsdriver
 etc/rc.d/upslog
 etc/rc.d/upsmon
+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
 man/man5/ups.conf.5
 man/man5/upsd.conf.5
 man/man5/upsd.users.5
@@ -16,31 +47,32 @@
 man/man8/apcsmart.8
 man/man8/bcmxcp.8
 man/man8/belkin.8
-man/man8/bestferrups801-807.8
 man/man8/bestfortress.8
 man/man8/bestuferrups.8
 man/man8/bestups.8
 man/man8/cyberpower.8
+man/man8/dummycons.8
+man/man8/energizerups.8
 man/man8/etapro.8
 man/man8/everups.8
 man/man8/fentonups.8
+man/man8/ferrups.8
 man/man8/genericups.8
-man/man8/hp.8
 man/man8/isbmex.8
 man/man8/liebert.8
 man/man8/masterguard.8
-man/man8/mge-ellipse.8
+man/man8/mge-shut.8
 man/man8/mge-utalk.8
 man/man8/microdowell.8
 man/man8/newapc.8
 man/man8/nutupsdrv.8
 man/man8/oneac.8
 man/man8/powercom.8
-man/man8/powernet.8
+man/man8/safenet.8
 man/man8/sec.8
 man/man8/sms.8
-man/man8/snmp-ups.8
 man/man8/tripplite.8
+man/man8/tripplitesu.8
 man/man8/upsc.8
 man/man8/upscmd.8
 man/man8/upsd.8
@@ -50,33 +82,6 @@
 man/man8/upsrw.8
 man/man8/upssched.8
 man/man8/victronups.8
-sbin/ups-drivers/apcsmart
-sbin/ups-drivers/bcmxcp
-sbin/ups-drivers/belkin
-sbin/ups-drivers/bestferrups801-807
-sbin/ups-drivers/bestfortress
-sbin/ups-drivers/bestuferrups
-sbin/ups-drivers/bestups
-sbin/ups-drivers/cyberpower
-sbin/ups-drivers/etapro
-sbin/ups-drivers/everups
-sbin/ups-drivers/fentonups
-sbin/ups-drivers/genericups
-sbin/ups-drivers/hp
-sbin/ups-drivers/isbmex
-sbin/ups-drivers/liebert
-sbin/ups-drivers/masterguard
-sbin/ups-drivers/mge-ellipse
-sbin/ups-drivers/mge-utalk
-sbin/ups-drivers/microdowell
-sbin/ups-drivers/newapc
-sbin/ups-drivers/oneac
-sbin/ups-drivers/powercom
-sbin/ups-drivers/sec
-sbin/ups-drivers/sms
-sbin/ups-drivers/tripplite
-sbin/ups-drivers/upsdrvctl
-sbin/ups-drivers/victronups
 sbin/upsd
 sbin/upsmon
 sbin/upssched
@@ -84,6 +89,7 @@
 share/doc/nut/COPYING
 share/doc/nut/CREDITS
 share/doc/nut/FAQ
+share/doc/nut/INSTALL
 share/doc/nut/NEWS
 share/doc/nut/README
 share/doc/nut/UPGRADING
@@ -99,18 +105,20 @@
 share/doc/nut/commands.txt
 share/doc/nut/config-files.txt
 share/doc/nut/configure.txt
+share/doc/nut/contact-closure.txt
 share/doc/nut/data-room.txt
 share/doc/nut/design.txt
 share/doc/nut/developers.txt
 share/doc/nut/driver.list
-share/doc/nut/drivers/generic-ups.txt
-share/doc/nut/drivers/mge-ellipse.txt
-share/doc/nut/drivers/mge-utalk.txt
-share/doc/nut/drivers/snmp-ups.txt
 share/doc/nut/new-drivers.txt
+share/doc/nut/new-names.txt
+share/doc/nut/osd-notify.txt
 share/doc/nut/pager.txt
+share/doc/nut/powersaving.txt
 share/doc/nut/protocol.txt
 share/doc/nut/shutdown.txt
+share/doc/nut/snmp.txt
+share/doc/nut/sock-protocol.txt
 share/doc/nut/ssl.txt
 share/doc/nut/todo.txt
 share/doc/nut/upssched.txt
@@ -119,10 +127,11 @@
 share/examples/nut/upsd.users.sample
 share/examples/nut/upsmon.conf.sample
 share/examples/nut/upssched.conf.sample
+share/nut/cmdvartab
+@dirrm share/nut
 @dirrm share/examples/nut
+@exec ${MKDIR} %D/share/doc/nut/drivers
 @dirrm share/doc/nut/drivers
 @dirrm share/doc/nut/cables
 @dirrm share/doc/nut
-@dirrm sbin/ups-drivers
-@exec ${MKDIR} %D/etc/nut
-@dirrm etc/nut
+@dirrm libexec/nut
diff -r 3fb8f79084b4 -r 1809819e6507 sysutils/ups-nut/distinfo
--- a/sysutils/ups-nut/distinfo Sun Feb 15 13:13:52 2004 +0000
+++ b/sysutils/ups-nut/distinfo Sun Feb 15 13:14:25 2004 +0000
@@ -1,9 +1,5 @@
-$NetBSD: distinfo,v 1.17 2002/12/31 22:47:06 lukem Exp $
+$NetBSD: distinfo,v 1.18 2004/02/15 13:14:25 lukem Exp $
 
-SHA1 (nut-1.2.1.tar.gz) = db55b0165ef594ad1cf73bf5d3d9336a0ac0fb93
-Size (nut-1.2.1.tar.gz) = 444256 bytes
-SHA1 (patch-ab) = 6f9ca3c1faa4cb20598116f602596f43d1e07199
-SHA1 (patch-ad) = 56b1b50affe7615b7ecc5e5db0305303ac2cd078
-SHA1 (patch-af) = bc79381000992169074f6be02fcee7bbc2495ec9
-SHA1 (patch-ag) = df3cab5fafe985af9b8cbd0879b8e7c88b4e35b3
-SHA1 (patch-ah) = 8a6e0ce86a30bb2009654f4b1c5fcb25af22e7db
+SHA1 (nut-1.4.1.tar.gz) = b23920207d3bd6563172194546f26dbe7cfb7ec6
+Size (nut-1.4.1.tar.gz) = 550238 bytes
+SHA1 (patch-aa) = e4649220e30ab6b582cf9115de9f7faad0f7cf8b
diff -r 3fb8f79084b4 -r 1809819e6507 sysutils/ups-nut/files/upsdriver.sh
--- a/sysutils/ups-nut/files/upsdriver.sh       Sun Feb 15 13:13:52 2004 +0000
+++ b/sysutils/ups-nut/files/upsdriver.sh       Sun Feb 15 13:14:25 2004 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: upsdriver.sh,v 1.7 2002/12/13 04:23:18 lukem Exp $
+# $NetBSD: upsdriver.sh,v 1.8 2004/02/15 13:14:25 lukem Exp $
 #
 # PROVIDE: upsdriver
 # REQUIRE: NETWORK syslogd mountcritremote
@@ -31,12 +31,12 @@
 
 if [ "${upsdriver_type:-upsdrvctl}" = "upsdrvctl" ]
 then
-       ctl_command="@PREFIX@/sbin/ups-drivers/upsdrvctl"
+       ctl_command="@PREFIX@/libexec/nut/upsdrvctl"
        required_files="@NUT_CONFDIR@/ups.conf"
        start_cmd="${ctl_command} start"
        stop_cmd="${ctl_command} stop"
 else
-       command="@PREFIX@/sbin/ups-drivers/${upsdriver_type}"
+       command="@PREFIX@/libexec/nut/${upsdriver_type}"
        #
        # XXX - We need a way to easily determine the pidfile, which is of
        # XXX - the form @NUT_STATEDIR@/${updriver_type}-${tty}.pid



Home | Main Index | Thread Index | Old Index