--Boundary-00=_P640Cns8vokfwHW
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
attached patch fixes the build of the nut RPMs.
I also removed a double file entry for /etc/sysconfig/ups.
Please CC: comments.
Best regards,
Thomas Jarosch
--Boundary-00=_P640Cns8vokfwHW
Content-Type: text/x-diff;
charset="us-ascii";
name="nut-spec-install-fix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="nut-spec-install-fix.patch"
diff -u -r nut-2.0.2/packaging/RedHat/nut.spec.in
nut-2.0.2.patched/packaging/RedHat/nut.spec.in
--- nut-2.0.2/packaging/RedHat/nut.spec.in 2005-01-27 15:33:19.000000000 +0100
+++ nut-2.0.2.patched/packaging/RedHat/nut.spec.in 2005-07-12 11:04:16.000000000
+0200
@@ -116,7 +116,9 @@
mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/usr/sbin
make DESTDIR=%{buildroot} install
+make DESTDIR=%{buildroot} install-conf
make DESTDIR=%{buildroot} install-cgi
+make DESTDIR=%{buildroot} install-cgi-conf
# move the *.sample config files to their real locations
# we don't need to worry about overwriting anything since
@@ -215,12 +217,10 @@
%config(noreplace) %attr(444,root,root) %{CONFPATH}/ups.conf
%config(noreplace) %attr(444,root,root) %{CONFPATH}/upsd.conf
%config(noreplace) %attr(400,root,root) %{CONFPATH}/upsd.users
-%config(noreplace) %attr(644,root,root) /etc/sysconfig/ups
%{_mandir}/man8/apcsmart.8.gz
%{_mandir}/man8/belkin.8.gz
%{_mandir}/man8/bestups.8.gz
%{_mandir}/man8/fentonups.8.gz
-%{_mandir}/man8/newapc.8.gz
%{_mandir}/man8/nutupsdrv.8.gz
%{_mandir}/man8/powercom.8.gz
%{_mandir}/man8/upsd.8.gz
--Boundary-00=_P640Cns8vokfwHW--