# --- SDE-COPYRIGHT-NOTE-BEGIN ---# This copyright note is auto-generated by ./scripts/Create-CopyPatch.## Filename: package/.../nut/nut.conf# Copyright (C) 2007 - 2012 The OpenSDE Project## More information can be found in the files COPYING and README.## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; version 2 of the License. A copy of the# GNU General Public License can be found in the file COPYING.# --- SDE-COPYRIGHT-NOTE-END --- if [ $prefix_auto = 1 ]; then # use a dedicated sysconfdir instead of installing into /etc sysconfdir="$sysconfdir/$pkg" # put all PID files into the same place var_append extraconfopt ' ' "--with-statepath=$localstatedir/run/nut" var_append extraconfopt ' ' "--with-altpidpath=$localstatedir/run/nut" var_append extraconfopt ' ' "--with-pidpath=$localstatedir/run/nut"fi # we patch drivers/Makefile.am to not install the driver skeleton# (see: no_skel.patch)hook_add preconf 5 "aclocal -I m4; autoconf; automake -a" # build and install libupsclient by defaultvar_append confopt ' ' "--with-lib"
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../nut/nut.conf
# Copyright (C) 2007 - 2012 The OpenSDE Project
# More information can be found in the files COPYING and README.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
if [ $prefix_auto = 1 ]; then
# use a dedicated sysconfdir instead of installing into /etc
sysconfdir="$sysconfdir/$pkg"
# put all PID files into the same place
var_append extraconfopt ' ' "--with-statepath=$localstatedir/run/nut"
var_append extraconfopt ' ' "--with-altpidpath=$localstatedir/run/nut"
var_append extraconfopt ' ' "--with-pidpath=$localstatedir/run/nut"
fi
# we patch drivers/Makefile.am to not install the driver skeleton
# (see: no_skel.patch)
hook_add preconf 5 "aclocal -I m4; autoconf; automake -a"
# build and install libupsclient by default
var_append confopt ' ' "--with-lib"