Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 749160 Details for
Bug 955341
apcupsd package should be built with PIE flags
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
this should enable PIE
apcupsd+PIE.spec (text/x-rpm-spec), 11.95 KB, created by
Dhiru Kholia
on 2013-05-17 03:26:04 UTC
(
hide
)
Description:
this should enable PIE
Filename:
MIME Type:
Creator:
Dhiru Kholia
Created:
2013-05-17 03:26:04 UTC
Size:
11.95 KB
patch
obsolete
>%global _hardened_build 1 > >Name: apcupsd >Version: 3.14.10 >Release: 9%{?dist} >Summary: APC UPS Power Control Daemon for Linux > >Group: System Environment/Daemons >License: GPLv2 >URL: http://www.apcupsd.com >Source0: http://downloads.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz >Source1: apcupsd.logrotate >Source2: apcupsd-httpd.conf >Patch0: apcupsd-3.14.3-init.patch >Patch1: apcupsd-3.14.4-shutdown.patch > >#fix FTBFS, c++ linking needs -lstdc++ explicitly >Patch2: apcupsd-3.14.8-cxxld.patch > ># systemd support >Patch3: apcupsd-3.14.8-systemd.patch > ># fix crash in gui, rhbz#578276 >Patch4: apcupsd-3.14.9-fixgui.patch > >BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > >BuildRequires: glibc-devel >= 2.3, gd-devel > 2.0 >BuildRequires: net-snmp-devel, tcp_wrappers-devel >BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils, sysvinit-tools >Requires: /bin/mail >Requires(post): systemd-units >Requires(preun): systemd-units >Requires(postun): systemd-units > >%description >Apcupsd can be used for controlling most APC UPSes. During a >power failure, apcupsd will inform the users about the power >failure and that a shutdown may occur. If power is not restored, >a system shutdown will follow when the battery is exausted, a >timeout (seconds) expires, or the battery runtime expires based >on internal APC calculations determined by power consumption >rates. If the power is restored before one of the above shutdown >conditions is met, apcupsd will inform users about this fact. >Some features depend on what UPS model you have (simple or smart). > > >%package cgi >Summary: Web interface for apcupsd >Group: Applications/Internet >Requires: %{name} = %{version}-%{release} >Requires: httpd > >%description cgi >A CGI interface to the APC UPS monitoring daemon. > > >%package gui >Summary: GUI interface for apcupsd >Group: Applications/System >Requires: %{name} = %{version}-%{release} > >%description gui >A GUI interface to the APC UPS monitoring daemon. > > >%prep >%setup -q >%patch0 -p1 -b .init >%patch1 -p1 -b .shutdown >%patch2 -p1 -b .cxxld >%patch3 -p1 -b .systemd >%patch4 -p1 -b .fixgui > >#we will handle fedora/redhat part ourselfs >printf 'install:\n\techo skipped\n' >platforms/redhat/Makefile > >%build >cp -p /usr/lib/rpm/config.{guess,sub} autoconf/ >export CPPFLAGS="$CPPFLAGS -DNETSNMP_NO_LEGACY_DEFINITIONS" >%configure \ > --sysconfdir="%{_sysconfdir}/apcupsd" \ > --with-cgi-bin="%{_localstatedir}/www/apcupsd" \ > --sbindir=/sbin \ > --enable-cgi \ > --enable-pthreads \ > --enable-net \ > --enable-apcsmart \ > --enable-dumb \ > --enable-net-snmp \ > --enable-snmp \ > --enable-usb \ > --enable-powerflute \ > --enable-nls \ > --enable-gapcmon \ > --enable-pcnet \ > --with-libwrap=%{_libdir} \ > --with-serial-dev= \ > --with-upstype=usb \ > --with-upscable=usb \ > APCUPSD_MAIL=/bin/mail >make %{?_smp_mflags} > >%install >rm -rf $RPM_BUILD_ROOT > >mkdir -p $RPM_BUILD_ROOT%{_initrddir} >mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/www/apcupsd > >make DESTDIR=$RPM_BUILD_ROOT install > >install -m744 platforms/apccontrol \ > $RPM_BUILD_ROOT%{_sysconfdir}/apcupsd/apccontrol > ># systemd support >install -p -D -m644 apcupsd.service $RPM_BUILD_ROOT/lib/systemd/system/apcupsd.service >install -p -D -m755 apcupsd_shutdown $RPM_BUILD_ROOT/lib/systemd/system-shutdown/apcupsd_shutdown > >install -d %{buildroot}%{_sysconfdir}/logrotate.d >install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} >install -d %{buildroot}%{_sysconfdir}/httpd/conf.d >install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf > >desktop-file-install \ >%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7) > --vendor="fedora" \ >%endif > --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ > --delete-original \ > ${RPM_BUILD_ROOT}%{_datadir}/applications/gapcmon.desktop > ># Cleanup for later %doc processing >chmod -x examples/*.c >rm examples/*.in > > >%clean >rm -rf $RPM_BUILD_ROOT > > >%files >%defattr(-,root,root,-) >%doc COPYING ChangeLog examples ReleaseNotes >%dir %{_sysconfdir}/apcupsd >/lib/systemd/system/%{name}.service >/lib/systemd/system-shutdown/apcupsd_shutdown >%config(noreplace) %{_sysconfdir}/apcupsd/apcupsd.conf >%attr(0755,root,root) %{_sysconfdir}/apcupsd/apccontrol >%config(noreplace) %{_sysconfdir}/apcupsd/changeme >%config(noreplace) %{_sysconfdir}/apcupsd/commfailure >%config(noreplace) %{_sysconfdir}/apcupsd/commok >%config(noreplace) %{_sysconfdir}/apcupsd/offbattery >%config(noreplace) %{_sysconfdir}/apcupsd/onbattery >%config(noreplace) %{_sysconfdir}/logrotate.d/apcupsd >%{_datadir}/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi >%attr(0755,root,root) /sbin/* >%{_mandir}/*/* > >%files cgi >%defattr(-,root,root,-) >%config(noreplace) %{_sysconfdir}/apcupsd/apcupsd.css >%config(noreplace) %{_sysconfdir}/httpd/conf.d/apcupsd.conf >%config(noreplace) %{_sysconfdir}/apcupsd/hosts.conf >%config(noreplace) %{_sysconfdir}/apcupsd/multimon.conf >%{_localstatedir}/www/apcupsd/ > >%files gui >%defattr(-,root,root,-) >%{_bindir}/gapcmon >%{_datadir}/applications/*gapcmon.desktop >%{_datadir}/pixmaps/apcupsd.png >%{_datadir}/pixmaps/charging.png >%{_datadir}/pixmaps/gapc_prefs.png >%{_datadir}/pixmaps/onbatt.png >%{_datadir}/pixmaps/online.png >%{_datadir}/pixmaps/unplugged.png > > >%post >%systemd_post apcupsd.service > >%preun >%systemd_preun apcupsd.service > >%postun >%systemd_postun_with_restart apcupsd.service > > >%changelog >* Thu Feb 14 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.14.10-9 >- Remove --vendor flag to desktop-file-install on F19+ > >* Tue Feb 05 2013 Michal Hlavinka <mhlavink@redhat.com> - 3.14.10-8 >- remove obsolete documentation > >* Tue Oct 30 2012 Michal Hlavinka <mhlavink@redhat.com> - 3.14.10-7 >- fix configuration for httpd 2.4 (#871361) > >* Fri Aug 24 2012 Michal Hlavinka <mhlavink@redhat.com> - 3.14.10-6 >- scriptlets replaced with new systemd macros (#851227) > >* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.10-5 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild > >* Mon Feb 13 2012 Michal Hlavinka <mhlavink@redhat.com> - 3.14.10-4 >- start after network is up (#789191) > >* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.10-3 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild > >* Mon Dec 19 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.14.10-2 >- remove powerfail flag on boot (#768684) > >* Mon Dec 12 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.14.10-1 >- apcupsd updated to 3.14.10 >- fix MODEL vs. APCMODEL confusion. Remove APCMODEL and rename old MODEL > aka 'mode' to DRIVER. > >* Thu Oct 20 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.14.9-2 >- fix crash in gui (#578276), patch by Michal Sekletar > >* Mon Jul 25 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.14.9-1 >- apcupsd updated to 3.14.9 > >* Fri Jul 08 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.14.8-9 >- rebuilt for net-snmp update > >* Thu Jun 16 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.14.8-8 >- move from SysV init script to systemd service file > >* Wed Feb 09 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.14.9-7 >- add readme file to doc explaining needed configuration of halt script > >* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.8-6 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild > >* Thu Dec 02 2010 Michal Hlavinka <mhlavink@redhat.com> - 3.14.8-5 >- do not attempt to invoke directory as a script (#659219) > >* Fri Nov 05 2010 Michal Hlavinka <mhlavink@redhat.com> - 3.14.8-4 >- rebuilt for library update > >* Wed Sep 29 2010 jkeating - 3.14.8-3 >- Rebuilt for gcc bug 634757 > >* Wed Sep 22 2010 Michal Hlavinka <mhlavink@redhat.com> - 3.14.8-2 >- fix c++ code linking (FTBFS) (#631288) > >* Mon Jan 18 2010 Michal Hlavinka <mhlavink@redhat.com> - 3.14.8-1 >- updated to 3.14.8 > >* Fri Sep 18 2009 Michal Hlavinka <mhlavink@redhat.com> - 3.14.7-3 >- fix building with new net-snmp version > >* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 3.14.7-2 >- rebuilt with new openssl > >* Mon Aug 03 2009 Michal Hlavinka <mhlavink@redhat.com> - 3.14.7-1 >- updated to 3.14.7 > >* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.6-2 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild > >* Mon May 18 2009 Michal Hlavinka <mhlavink@redhat.com> - 3.14.6-1 >- update to 3.14.6 > >* Thu Feb 24 2009 Michal Hlavinka <mhlavink@redhat.com> - 3.14.5-3 >- fix build with gcc 4.4 > >* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.5-2 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild > >* Thu Jan 22 2009 Michal Hlavinka <mhlavink@redhat.com> - 3.14.5-1 >- update to 3.14.5 > >* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> - 3.14.4-3 >- rebuild with new openssl > >* Fri Jun 06 2008 Tomas Smetana <tsmetana@redhat.com> - 3.14.4-2 >- drop useless build requirements >- fix #448637 - hosts.conf and multimon.conf should be in apcupsd-cgi >- move binaries to /sbin (related #346271) > >* Wed May 28 2008 Tomas Smetana <tsmetana@redhat.com> - 3.14.4-1 >- new upstream version > >* Tue Feb 12 2008 Tomas Smetana <tsmetana@redhat.com> - 3.14.3-2.1 >- rebuild (gcc-4.3) > >* Wed Jan 30 2008 Tomas Smetana <tsmetana@redhat.com> - 3.14.3-2 >- fix #348701 - apcupsd control script does not invoke shutdown properly > >* Wed Jan 23 2008 Tomas Smetana <tsmetana@redhat.com> - 3.14.3-1 >- Update to 3.14.3 > >* Wed Oct 10 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.14.2-1 >- Update to 3.14.2, remove upstreamed patches > >* Wed Aug 1 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.14.1-3 >- Add patch to close open file descriptors (bug #247162) >- Stop/restart service as needed on removal/upgrade > >* Mon Jun 02 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.14.1-2 >- Add patch for linux USB UPS detection (bug #245864) > >* Tue May 29 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.14.1-1 >- Update to 3.14.1 > >* Mon Apr 23 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.14.0-2 >- Fix init script for LSB compliance (bug #237532) > >* Mon Feb 12 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.14.0-1 >- Update to 3.14.0 > >* Fri Jan 5 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.13.9-2 >- Mark everything in /etc/apcupsd noreplace >- Change BR to tcp_wrappers-devel > >* Thu Nov 30 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.13.9-1 >- Update to 3.13.9, add gui package > >* Mon Oct 9 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.4-3 >- Fix /etc/httpd/conf.d/apcupsd.conf so DirectoryIndex works (bug #209952). > Patch from Clive Messer (clive@vacuumtube.org.uk) > >* Tue Aug 29 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.4-2 >- Rebuild for FC6 > >* Mon Aug 21 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.4-1 >- Update to 3.12.4 > >* Tue Jan 10 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.2-1 >- Update to 3.12.2 >- Don't strip binaries > >* Tue Jan 10 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.1-1 >- Update to 3.12.1 > >* Wed Jan 4 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.12.0-1 >- Update to 3.12.0 > >* Tue Jan 3 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-7 >- Rebuild > >* Wed Dec 21 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-6 >- Rebuild > >* Wed Nov 16 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-5 >- Bump for new openssl > >* Fri Nov 4 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-4 >- Add logrotate script for /var/log/apcupsd.events >- Add apache configuration script and change cgi directory to > /var/www/apcupsd >- Compile in snmp, net-snmp, powerflute, nls, add tcp_wrappers support > >* Mon Oct 17 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-3 >- Removed %%{_smp_mflags} from make, broke builds >- Patch init file to not start automatically and add reload >- Mark css file config >- Require /sbin/chkconfig > >* Mon Oct 17 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-2 >- Add %%defattr to -cgi package > >* Wed Aug 17 2005 - Orion Poplawski <orion@cora.nwra.com> - 3.10.18-1 >- Initial Fedora Version
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 955341
: 749160