diff --git a/monitor/nut/nut.conf b/monitor/nut/nut.conf index 72ab3057f..e5b6fa82f 100644 --- a/monitor/nut/nut.conf +++ b/monitor/nut/nut.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../nut/nut.conf -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2012 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -12,6 +12,11 @@ # 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" +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"