[39440] trunk/dports/sysutils

ricci at macports.org ricci at macports.org
Tue Aug 19 17:43:25 PDT 2008


Revision: 39440
          http://trac.macosforge.org/projects/macports/changeset/39440
Author:   ricci at macports.org
Date:     2008-08-19 17:43:24 -0700 (Tue, 19 Aug 2008)
Log Message:
-----------
New port - nut (Network UPS Tools)

Added Paths:
-----------
    trunk/dports/sysutils/nut/
    trunk/dports/sysutils/nut/Portfile

Added: trunk/dports/sysutils/nut/Portfile
===================================================================
--- trunk/dports/sysutils/nut/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/nut/Portfile	2008-08-20 00:43:24 UTC (rev 39440)
@@ -0,0 +1,66 @@
+# $Id$
+
+PortSystem 1.0
+
+name                nut
+
+set                 majorVer 2
+set                 minorVer 2
+set                 majorMinorVer ${majorVer}.${minorVer}
+set                 revVer 2
+version             ${majorVer}.${minorVer}.${revVer}
+revision            0
+categories          sysutils
+maintainers         ricci
+description         Network based UPS monitoring tool
+homepage            http://www.networkupstools.org/
+platforms           darwin
+
+long_description    Network UPS Tools is a collection of programs \
+                    which provide a common interface for monitoring \
+                    and administering UPS hardware.
+
+master_sites        http://www.networkupstools.org/source/${majorMinorVer}
+
+checksums           md5     677a84a83e9be7bc93610413ee696375 \
+                    sha1    f54cc909b229931fb91b4a360f0447b539d4ea6b \
+                    rmd160  4dc1d2b729fc0e02c0475008c44bc62e1901f705
+
+depends_lib         port:libusb
+
+set userName        _nut
+set groupName       _nut
+set stateDir        ${prefix}/var/db/ups
+
+configure.args      \
+                    --with-serial=no  \
+                    --with-usb=auto   \
+                    --with-snmp=no    \
+                    --with-hal=auto   \
+                    --with-cgi=no     \
+                    --with-neonxml=no \
+                    --with-ssl=yes    \
+                    --with-ipv6=no    \
+                    --with-statepath=${stateDir} \
+                    --with-pidpath=${prefix}/var/run \
+                    --with-hotplug-dir=${prefix}/etc/nut/hotplug \
+                    --with-udev-dir=${prefix}/etc/nut/udev \
+                    --with-user=${userName} \
+                    --with-group=${groupName}
+
+
+pre-destroot {
+    addgroup ${groupName}
+    set gid [existsgroup ${groupName}]
+    adduser ${userName} gid=${gid}
+    xinstall -d -m 0770 -g ${groupName} -o ${userName} ${destroot}${stateDir}
+}
+
+## variant snmp {
+## 	configure.args-append	--with-snmp=yes
+## 	configure.args-delete	--with-snmp=no
+## 	depends_lib-append	port:net-snmp
+## }
+
+#
+##EOF


Property changes on: trunk/dports/sysutils/nut/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080819/87382c65/attachment.html 


More information about the macports-changes mailing list