source: trunk/dports/sysutils/nut/Portfile

Last change on this file was 101157, checked in by ryandesign@…, 4 years ago

nut: update to 2.6.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 101157 2013-01-05 15:58:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                nut
7version             2.6.5
8categories          sysutils
9platforms           darwin
10maintainers         nomaintainer
11# The files in scripts/perl and scripts/python are under other licenses
12# but we don't use them in this port.
13license             GPL-2+
14
15description         Network based UPS monitoring tool
16
17long_description    Network UPS Tools is a collection of programs \
18                    which provide a common interface for monitoring \
19                    and administering UPS hardware.
20
21homepage            http://www.networkupstools.org/
22master_sites        ${homepage}source/[join [lrange [split ${version} .] 0 1] .]/
23
24checksums           rmd160  d6e6acd4696e3c3f8c0ecd998f8676a8625decb9 \
25                    sha256  618df71cf1ca6e3700d1d3c282773a2dec85f9f20324c0d3234c824e97feb93f
26
27depends_build       port:pkgconfig
28
29depends_lib         port:libtool \
30                    port:libusb-compat \
31                    port:neon \
32                    port:tcp_wrappers
33
34set userName        _nut
35set groupName       _nut
36set stateDir        ${prefix}/var/db/ups
37destroot.keepdirs   ${destroot}${stateDir}
38
39configure.args      --with-serial=no \
40                    --with-usb=auto \
41                    --with-snmp=no \
42                    --with-hal=auto \
43                    --with-cgi=no \
44                    --with-neonxml=no \
45                    --with-ssl=yes \
46                    --with-ipv6=no \
47                    --with-statepath=${stateDir} \
48                    --with-pidpath=${prefix}/var/run \
49                    --with-hotplug-dir=${prefix}/etc/nut/hotplug \
50                    --with-udev-dir=${prefix}/etc/nut/udev \
51                    --with-user=${userName} \
52                    --with-group=${groupName}
53
54
55pre-destroot {
56    addgroup ${groupName}
57    set gid [existsgroup ${groupName}]
58    adduser ${userName} gid=${gid}
59    xinstall -d -m 0770 -g ${groupName} -o ${userName} ${destroot}${stateDir}
60}
61
62## variant snmp {
63##      configure.args-append   --with-snmp=yes
64##      configure.args-delete   --with-snmp=no
65##      depends_lib-append      port:net-snmp
66## }
67
68livecheck.type      regex
69livecheck.regex     {: ([0-9.]+) released}
Note: See TracBrowser for help on using the repository browser.