source: trunk/dports/sysutils/nut/Portfile @ 101098

Last change on this file since 101098 was 101098, checked in by ryandesign@…, 5 years ago

miwi has retired (#37127)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 101098 2013-01-04 11:20:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                nut
7version             2.6.1
8categories          sysutils
9platforms           darwin
10maintainers         nomaintainer
11
12description         Network based UPS monitoring tool
13
14long_description    Network UPS Tools is a collection of programs \
15                    which provide a common interface for monitoring \
16                    and administering UPS hardware.
17
18homepage            http://www.networkupstools.org/
19master_sites        ${homepage}source/[join [lrange [split ${version} .] 0 1] .]/
20
21checksums           sha1    8198378259631b50d23c6ce5a52ef0e40132b33f \
22                    rmd160  fc5c6c3028f9a2b41615d213bea11b5de7735840
23
24depends_build       port:pkgconfig
25
26depends_lib         port:libusb-compat \
27                    port:neon
28
29set userName        _nut
30set groupName       _nut
31set stateDir        ${prefix}/var/db/ups
32destroot.keepdirs   ${destroot}${stateDir}
33
34configure.args      --with-serial=no \
35                    --with-usb=auto \
36                    --with-snmp=no \
37                    --with-hal=auto \
38                    --with-cgi=no \
39                    --with-neonxml=no \
40                    --with-ssl=yes \
41                    --with-ipv6=no \
42                    --with-statepath=${stateDir} \
43                    --with-pidpath=${prefix}/var/run \
44                    --with-hotplug-dir=${prefix}/etc/nut/hotplug \
45                    --with-udev-dir=${prefix}/etc/nut/udev \
46                    --with-user=${userName} \
47                    --with-group=${groupName}
48
49
50pre-destroot {
51    addgroup ${groupName}
52    set gid [existsgroup ${groupName}]
53    adduser ${userName} gid=${gid}
54    xinstall -d -m 0770 -g ${groupName} -o ${userName} ${destroot}${stateDir}
55}
56
57## variant snmp {
58##      configure.args-append   --with-snmp=yes
59##      configure.args-delete   --with-snmp=no
60##      depends_lib-append      port:net-snmp
61## }
62
63livecheck.type      regex
64livecheck.regex     {: ([0-9.]+) released}
Note: See TracBrowser for help on using the repository browser.