forked from ports/contrib
nut: New port nut 2.2.2
This commit is contained in:
parent
005c1fa656
commit
001983402c
141
nut/.footprint
Normal file
141
nut/.footprint
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
drwxr-xr-x root/root etc/
|
||||||
|
drwxr-xr-x root/root etc/hotplug/
|
||||||
|
drwxr-xr-x root/root etc/hotplug/usb/
|
||||||
|
-rw-r--r-- root/root etc/hotplug/usb/libhid.usermap
|
||||||
|
-rwxr-xr-x root/root etc/hotplug/usb/libhidups
|
||||||
|
drwxr-xr-x root/root etc/nut/
|
||||||
|
-rw-r--r-- root/root etc/nut/ups.conf.sample
|
||||||
|
-rw-r--r-- root/root etc/nut/upsd.conf.sample
|
||||||
|
-rw-r--r-- root/root etc/nut/upsd.users.sample
|
||||||
|
-rw-r--r-- root/root etc/nut/upsmon.conf.sample
|
||||||
|
-rw-r--r-- root/root etc/nut/upssched.conf.sample
|
||||||
|
drwxr-xr-x root/root etc/rc.d/
|
||||||
|
-rwxr-xr-x root/root etc/rc.d/upsd
|
||||||
|
drwxr-xr-x root/root etc/udev/
|
||||||
|
drwxr-xr-x root/root etc/udev/rules.d/
|
||||||
|
-rw-r--r-- root/root etc/udev/rules.d/52_nut-usbups.rules
|
||||||
|
drwxr-xr-x root/root usr/
|
||||||
|
drwxr-xr-x root/root usr/bin/
|
||||||
|
-rwxr-xr-x root/root usr/bin/al175
|
||||||
|
-rwxr-xr-x root/root usr/bin/apcsmart
|
||||||
|
-rwxr-xr-x root/root usr/bin/bcmxcp
|
||||||
|
-rwxr-xr-x root/root usr/bin/bcmxcp_usb
|
||||||
|
-rwxr-xr-x root/root usr/bin/belkin
|
||||||
|
-rwxr-xr-x root/root usr/bin/belkinunv
|
||||||
|
-rwxr-xr-x root/root usr/bin/bestfcom
|
||||||
|
-rwxr-xr-x root/root usr/bin/bestuferrups
|
||||||
|
-rwxr-xr-x root/root usr/bin/bestups
|
||||||
|
-rwxr-xr-x root/root usr/bin/cpsups
|
||||||
|
-rwxr-xr-x root/root usr/bin/cyberpower
|
||||||
|
-rwxr-xr-x root/root usr/bin/dummy-ups
|
||||||
|
-rwxr-xr-x root/root usr/bin/energizerups
|
||||||
|
-rwxr-xr-x root/root usr/bin/etapro
|
||||||
|
-rwxr-xr-x root/root usr/bin/everups
|
||||||
|
-rwxr-xr-x root/root usr/bin/gamatronic
|
||||||
|
-rwxr-xr-x root/root usr/bin/genericups
|
||||||
|
-rwxr-xr-x root/root usr/bin/isbmex
|
||||||
|
-rwxr-xr-x root/root usr/bin/liebert
|
||||||
|
-rwxr-xr-x root/root usr/bin/masterguard
|
||||||
|
-rwxr-xr-x root/root usr/bin/megatec
|
||||||
|
-rwxr-xr-x root/root usr/bin/megatec_usb
|
||||||
|
-rwxr-xr-x root/root usr/bin/metasys
|
||||||
|
-rwxr-xr-x root/root usr/bin/mge-shut
|
||||||
|
-rwxr-xr-x root/root usr/bin/mge-utalk
|
||||||
|
-rwxr-xr-x root/root usr/bin/newmge-shut
|
||||||
|
-rwxr-xr-x root/root usr/bin/nitram
|
||||||
|
-rwxr-xr-x root/root usr/bin/oneac
|
||||||
|
-rwxr-xr-x root/root usr/bin/optiups
|
||||||
|
-rwxr-xr-x root/root usr/bin/powercom
|
||||||
|
-rwxr-xr-x root/root usr/bin/powerpanel
|
||||||
|
-rwxr-xr-x root/root usr/bin/rhino
|
||||||
|
-rwxr-xr-x root/root usr/bin/safenet
|
||||||
|
-rwxr-xr-x root/root usr/bin/skel
|
||||||
|
-rwxr-xr-x root/root usr/bin/solis
|
||||||
|
-rwxr-xr-x root/root usr/bin/tripplite
|
||||||
|
-rwxr-xr-x root/root usr/bin/tripplite_usb
|
||||||
|
-rwxr-xr-x root/root usr/bin/tripplitesu
|
||||||
|
-rwxr-xr-x root/root usr/bin/upsc
|
||||||
|
-rwxr-xr-x root/root usr/bin/upscmd
|
||||||
|
-rwxr-xr-x root/root usr/bin/upscode2
|
||||||
|
-rwxr-xr-x root/root usr/bin/upsdrvctl
|
||||||
|
-rwxr-xr-x root/root usr/bin/upslog
|
||||||
|
-rwxr-xr-x root/root usr/bin/upsrw
|
||||||
|
-rwxr-xr-x root/root usr/bin/upssched-cmd
|
||||||
|
-rwxr-xr-x root/root usr/bin/usbhid-ups
|
||||||
|
-rwxr-xr-x root/root usr/bin/victronups
|
||||||
|
drwxr-xr-x root/root usr/include/
|
||||||
|
drwxr-xr-x root/root usr/lib/
|
||||||
|
-rwxr-xr-x root/root usr/lib/libupsclient.la
|
||||||
|
lrwxrwxrwx root/root usr/lib/libupsclient.so -> libupsclient.so.1.0.0
|
||||||
|
lrwxrwxrwx root/root usr/lib/libupsclient.so.1 -> libupsclient.so.1.0.0
|
||||||
|
-rwxr-xr-x root/root usr/lib/libupsclient.so.1.0.0
|
||||||
|
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||||
|
drwxr-xr-x root/root usr/man/
|
||||||
|
drwxr-xr-x root/root usr/man/man1/
|
||||||
|
drwxr-xr-x root/root usr/man/man3/
|
||||||
|
drwxr-xr-x root/root usr/man/man5/
|
||||||
|
-rw-r--r-- root/root usr/man/man5/ups.conf.5.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man5/upsd.conf.5.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man5/upsd.users.5.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man5/upsmon.conf.5.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man5/upssched.conf.5.gz
|
||||||
|
drwxr-xr-x root/root usr/man/man8/
|
||||||
|
-rw-r--r-- root/root usr/man/man8/al175.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/apcsmart.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/bcmxcp.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/bcmxcp_usb.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/belkin.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/belkinunv.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/bestfcom.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/bestuferrups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/bestups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/cpsups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/cyberpower.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/dummy-ups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/energizerups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/etapro.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/everups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/gamatronic.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/genericups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/isbmex.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/liebert.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/masterguard.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/megatec.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/megatec_usb.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/metasys.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/mge-shut.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/mge-utalk.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/nitram.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/nutupsdrv.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/oneac.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/optiups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/powercom.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/powerpanel.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/rhino.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/safenet.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/solis.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/tripplite.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/tripplite_usb.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/tripplitesu.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upsc.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upscmd.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upscode2.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upsd.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upsdrvctl.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upslog.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upsmon.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upsrw.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/upssched.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/usbhid-ups.8.gz
|
||||||
|
-rw-r--r-- root/root usr/man/man8/victronups.8.gz
|
||||||
|
drwxr-xr-x root/root usr/sbin/
|
||||||
|
-rwxr-xr-x root/root usr/sbin/upsd
|
||||||
|
-rwxr-xr-x root/root usr/sbin/upsmon
|
||||||
|
-rwxr-xr-x root/root usr/sbin/upssched
|
||||||
|
drwxr-xr-x root/root usr/share/
|
||||||
|
drwxr-xr-x root/root usr/share/nut/
|
||||||
|
-rw-r--r-- root/root usr/share/nut/cmdvartab
|
||||||
|
-rw-r--r-- root/root usr/share/nut/driver.list
|
||||||
|
drwxr-xr-x root/root var/
|
||||||
|
drwxr-xr-x root/root var/state/
|
||||||
|
drwxrwx--- root/nut var/state/ups/
|
2
nut/.md5sum
Normal file
2
nut/.md5sum
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
677a84a83e9be7bc93610413ee696375 nut-2.2.2.tar.gz
|
||||||
|
6368e58caee59d6294e64354a4d8bee5 upsd
|
38
nut/Pkgfile
Normal file
38
nut/Pkgfile
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Description: Network UPS Tools. Monitor of UPS hardware.
|
||||||
|
# URL: http://www.networkupstools.org/
|
||||||
|
# Maintainer: Victor Martinez, pitillo at ono dot com
|
||||||
|
# Depends on:
|
||||||
|
|
||||||
|
name=nut
|
||||||
|
version=2.2.2
|
||||||
|
release=1
|
||||||
|
source=(http://www.networkupstools.org/source/2.2/$name-$version.tar.gz \
|
||||||
|
upsd)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $name-$version
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--disable-nls \
|
||||||
|
--with-user=nut \
|
||||||
|
--with-group=nut \
|
||||||
|
--with-usb \
|
||||||
|
--with-lib \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--sysconfdir=/etc/$name \
|
||||||
|
--sbindir=/usr/sbin/ \
|
||||||
|
--datadir=/usr/share/$name \
|
||||||
|
--localstatedir=/var/$name
|
||||||
|
make
|
||||||
|
make usb
|
||||||
|
make DESTDIR=$PKG install
|
||||||
|
make DESTDIR=$PKG/etc/nut/ install-conf
|
||||||
|
rm -r $PKG/etc/nut/etc/
|
||||||
|
#if you dont want config templates uncomment the next line
|
||||||
|
#rm $PKG/etc/nut/*
|
||||||
|
mkdir -p $PKG/etc/udev/rules.d/
|
||||||
|
install -D -m 755 $SRC/upsd $PKG/etc/rc.d/upsd
|
||||||
|
rmdir $PKG/usr/cgi-bin $PKG/usr/html
|
||||||
|
mkdir -p $PKG/var/state/ups
|
||||||
|
chmod 0770 $PKG/var/state/ups
|
||||||
|
chown root:nut $PKG/var/state/ups
|
||||||
|
}
|
23
nut/README
Normal file
23
nut/README
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
PRE-INSTALL
|
||||||
|
- Need to create a group and user for ups monitoring. (user,group:nut)
|
||||||
|
- Add support for USB at kernel:
|
||||||
|
|
||||||
|
########################################################
|
||||||
|
Device Drivers --->
|
||||||
|
USB support --->
|
||||||
|
[*] Support for Host-side USB
|
||||||
|
[?] EHCI HCD (USB 2.0) support
|
||||||
|
[?] OHCI HCD support
|
||||||
|
[?] UHCI HCD (most Intel and VIA) support
|
||||||
|
[*] USB Human Interface Device (full HID) support
|
||||||
|
[*] /dev/hiddev raw HID device support
|
||||||
|
########################################################
|
||||||
|
|
||||||
|
POST-INSTALL
|
||||||
|
- Remember to change perms in config files:
|
||||||
|
chown root:nut upsd.conf upsd.users
|
||||||
|
chmod 0640 upsd.conf upsd.users
|
||||||
|
|
||||||
|
- Remember to use man to setup nut.
|
||||||
|
|
||||||
|
Víctor Martínez <pitillo at ono dot com>
|
5
nut/pre-install
Normal file
5
nut/pre-install
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
getent group nut || groupadd nut
|
||||||
|
getent passwd nut || useradd -m -g nut -d /var/empty -s /bin/false nut
|
||||||
|
passwd -l nut
|
Loading…
x
Reference in New Issue
Block a user