1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../nut/nut.conf
5 # Copyright (C) 2013 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 var_append confopt ' ' "--with-user=nut --with-group=nut --sysconfdir=/etc/ups/ --with-drvpath=/usr/bin "
17 pkginstalled libusb-compat || var_append extraconfopt ' '"--with-usb"
20 mkdir -p $root/var/state/ups/
21 chmod 0770 $root/var/state/ups/
22 chown root:57 $root/var/state/ups/
23 chmod 644 $root/etc/ups/ups.conf.sample
24 chmod 640 $root/etc/ups/upsd.conf.sample
25 chmod 640 $root/etc/ups/upsd.users.sample
26 chmod 640 $root/etc/ups/upsmon.conf.sample
27 chmod 644 $root/etc/ups/upssched.conf.sample
30 hook_add postmake 5 "create_folder"