%define git_url git://git.fedorahosted.org/chkconfig.git Summary: A system tool for maintaining the /etc/rc*.d hierarchy Name: chkconfig Version: 1.3.60 Release: %mkrel 1 License: GPL Group: System/Boot and Init Url: http://git.fedorahosted.org/git/?p=chkconfig.git;a=summary Source0: https://fedorahosted.org/releases/c/h/chkconfig/%{name}-%{version}.tar.bz2 Source1: chkconfig.po Patch1: ntsysv-mdkconf.patch Patch3: chkconfig-runleveldir.patch Patch5: chkconfig-fix.patch Patch6: chkconfig-1.3.59-adddelxinetd.patch Patch7: chkconfig-1.3.50-list.patch Patch8: chkconfig-1.3.50-skip-files-with-dot.patch Patch10: chkconfig-1.3.11-fix-errno-xinetddotd.patch # (blino) fix priority when adding a LSB service required by another LSB service (#22019) Patch13: chkconfig-1.3.59-targreq.patch # (fc) introduce runlevel 7, acting as runlevel S Patch15: chkconfig-1.3.59-rc7.patch BuildRequires: gettext BuildRequires: newt-devel BuildRequires: popt-devel BuildRequires: slang Conflicts: rpm-helper < 0.6 Provides: /sbin/chkconfig %description Chkconfig is a basic system utility. It updates and queries runlevel information for system services. Chkconfig manipulates the numerous symbolic links in /etc/rc*.d, to relieve system administrators of some of the drudgery of manually editing the symbolic links. %package -n ntsysv Summary: A system tool for maintaining the /etc/rc*.d hierarchy Group: System/Boot and Init Requires: chkconfig %description -n ntsysv ntsysv updates and queries runlevel information for system services. ntsysv relieves system administrators of having to directly manipulate the numerous symbolic links in /etc/rc*.d. %prep %setup -q %patch1 -p1 -b .mdkconf %patch3 -p1 -b .runleveldir %patch5 -p1 -b .fix %patch6 -p1 -b .adddelxinetd %patch7 -p1 -b .list %patch8 -p1 -b .skip-files-with-dot %patch10 -p0 -b .fix-errno-xinetddotd %patch13 -p1 -b .targreq %patch15 -p0 -b .rc7 perl -pi -e 's/\bmv\b/mv -f/' po/Makefile %build %ifarch sparc LIBMHACK=-lm %endif %make RPM_OPT_FLAGS="%{optflags}" LIBMHACK=$LIBMHACK LDFLAGS="%{ldflags}" %install %makeinstall_std MANDIR=%{_mandir} BINDIR=%{_sbindir} mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d for n in 0 1 2 3 4 5 6 7; do mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc${n}.d done cd %{buildroot}%{_sysconfdir}/ ln -s rc.d/init.d init.d cd - ln -s rc7.d %{buildroot}%{_sysconfdir}/rc.d/rcS.d # corrected indonesian language code (it has changed from 'in' to 'id') mkdir -p %{buildroot}%{_datadir}/locale/id/LC_MESSAGES mv %{buildroot}%{_datadir}/locale/{in,in_ID}/LC_MESSAGES/* \ %{buildroot}%{_datadir}/locale/id/LC_MESSAGES || : rm -rf %{buildroot}%{_datadir}/locale/{in,in_ID} || : mkdir -p %{buildroot}%{_datadir}/locale/zh_TW.Big5/LC_MESSAGES msgfmt %SOURCE1 -o %{buildroot}%{_datadir}/locale/zh_TW.Big5/LC_MESSAGES/chkconfig.mo # Geoff 20020623 -- zh is incorrect for locale and there's nothing in it anyway rm -fr %{buildroot}%_datadir/locale/zh # we use our own alternative system rm -f %{buildroot}%{_sbindir}/{alternatives,update-alternatives} %{buildroot}%{_mandir}/man8/alternatives.8* %find_lang %{name} %files -f %{name}.lang %{_sbindir}/chkconfig %{_mandir}/man8/chkconfig.8* %dir %{_sysconfdir}/rc.d %dir %{_sysconfdir}/rc.d/init.d %dir %{_sysconfdir}/rc.d/rc* %{_sysconfdir}/rc.d/rcS.d %{_sysconfdir}/init.d %files -n ntsysv %{_sbindir}/ntsysv %{_mandir}/man8/ntsysv.8* %changelog * Sat Mar 16 2013 luigiwalser <luigiwalser> 1.3.60-1.mga3 + Revision: 403502 - chkconfig should own /etc/rc.d (rhbz#894328) - 1.3.60 - rediff patch 5 - remove upstreamed ldflags patch * Wed Jan 23 2013 fwang <fwang> 1.3.59-5.mga3 + Revision: 391233 - add virtual provides * Wed Jan 23 2013 fwang <fwang> 1.3.59-4.mga3 + Revision: 391170 - update rpm group - update rpm group * Fri Jan 11 2013 umeabot <umeabot> 1.3.59-3.mga3 + Revision: 347677 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Jul 29 2012 luigiwalser <luigiwalser> 1.3.59-2.mga3 + Revision: 275715 - add upstream patch to use correct ldflags * Sun Jul 29 2012 luigiwalser <luigiwalser> 1.3.59-1.mga3 + Revision: 275714 - 1.3.59 - rediff patches 6, 13, and 15 * Thu Sep 08 2011 tv <tv> 1.3.51-1.mga2 + Revision: 141499 - new release, more systemd friendly - sync with mdv: - drop P11, 12, 14 - upstream (some with different implementation) - rediff P1, 5, 6, 7, 8, 13, 15 + kharec <kharec> - imported package chkconfig + tmb <tmb> - imported package chkconfig - imported package chkconfig - imported package chkconfig * Tue Nov 30 2010 Oden Eriksson <oeriksson@mandriva.com> 1.3.37-6mdv2011.0 + Revision: 603828 - rebuild * Sat Nov 28 2009 Andrey Borzenkov <arvidjaar@mandriva.org> 1.3.37-5mdv2010.1 + Revision: 470792 - fix patch14 (was Required-Stop instead of Should-Stop) * Sun Aug 09 2009 Oden Eriksson <oeriksson@mandriva.com> 1.3.37-4mdv2010.0 + Revision: 413234 - rebuild * Thu Feb 05 2009 Frederic Crozat <fcrozat@mandriva.com> 1.3.37-3mdv2009.1 + Revision: 337821 -Patch15: add runlevel 7, acting as runlevel S - Add git url * Thu Dec 25 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3.37-2mdv2009.1 + Revision: 318468 - rediffed some fuzzy patches - use %%ldflags * Mon Sep 01 2008 Olivier Blin <oblin@mandriva.com> 1.3.37-1mdv2009.0 + Revision: 278275 - rediff lsb patch - 1.3.37 * Mon Jun 16 2008 Thierry Vignaud <tv@mandriva.org> 1.3.34-6mdv2009.0 + Revision: 220567 - rebuild * Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 1.3.34-5mdv2008.1 + Revision: 136304 - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Thu Aug 30 2007 Olivier Blin <oblin@mandriva.com> 1.3.34-5mdv2008.0 + Revision: 75648 - initialize dependencies list string (fix corruption, #32958) * Thu May 31 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.3.34-4mdv2008.0 + Revision: 33301 - Rebuild with libnewt0.52. * Wed May 02 2007 Olivier Blin <oblin@mandriva.com> 1.3.34-3mdv2008.0 + Revision: 20731 - fix build in interactive terminal (#30598) * Mon Apr 30 2007 Pixel <pixel@mandriva.com> 1.3.34-2mdv2008.0 + Revision: 19550 - explicit file provide /sbin/chkconfig * Thu Apr 19 2007 Olivier Blin <oblin@mandriva.com> 1.3.34-1mdv2008.0 + Revision: 14998 - 1.3.34 * Sun Jan 21 2007 Olivier Blin <oblin@mandriva.com> 1.3.30-4mdv2007.0 + Revision: 111339 - restore LSB patch but make it non-fatal (to allow services to be uninstalled) * Sat Jan 20 2007 Olivier Blin <oblin@mandriva.com> 1.3.30-3mdv2007.1 + Revision: 111145 - do not check for Required-Start and Required-Stop dependencies, the LSB spec does not impose they are satisfied (fixes #24409 as a brutal side-effect) * Sat Jan 20 2007 Olivier Blin <oblin@mandriva.com> 1.3.30-2mdv2007.1 + Revision: 111118 - handle Should-Start/Should-Stop tags (#28026) - fix priority when adding a LSB service required by another LSB service (#22019) * Sat Jan 20 2007 Olivier Blin <oblin@mandriva.com> 1.3.30-1mdv2007.1 + Revision: 111065 - 1.3.30 - bunzip2 patches - Import chkconfig * Sat Sep 16 2006 Olivier Blin <blino@mandriva.com> 1.3.25-2mdv2007.0 - Patch13: don't incorrectly enable disabled services on --add (thanks to Andreas for the help, #23104) from https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182729 * Mon Jan 09 2006 Olivier Blin <oblin@mandriva.com> 1.3.25-1mdk - 1.3.25 - rediff Patch6 - drop hybrid LSB support in Patch11 (mostly merged upstream) - simplify requirements check on delete in Patch11 (and use runlevel) - check for requirements when on add in Patch11 * Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.3.20-5mdk - Rebuild * Sat Jul 02 2005 Stew Benedict <sbenedict@mandriva.com> 1.3.20-4mdk - redo P11 to handle hybrid scripts like shorewall, pptp, vmware (#16658) * Fri Jul 01 2005 Frederic Lepied <flepied@mandriva.com> 1.3.20-3mdk - fixed french transalation to aligned status in chkconfig --list (bug #6062). * Wed Jun 29 2005 Stew Benedict <sbenedict@mandriva.com> 1.3.20-2mdk - P11 - chkconfig doesn't handle LSB style script dependencies correctly * Mon Jun 13 2005 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.3.20-1mdk - 1.3.20 - regenerate P6 - drop P9 & P11 (fixed upstream) * Fri Feb 11 2005 Frederic Lepied <flepied@mandrakesoft.com> 1.3.13-3mdk - really fix LSB logic * Fri Feb 04 2005 Frederic Lepied <flepied@mandrakesoft.com> 1.3.13-2mdk - fix LSB logic * Thu Jan 20 2005 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.3.13-1mdk - 1.3.13 - do parallell build - fix summary-ended-with-dot * Fri Nov 12 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.3.11.1-1mdk - 1.3.11.1 - drop P11 (merged upstream) * Thu Jul 15 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.3.11-1mdk - 1.3.11 - update no translation (P11) - regenerate P6, P9 & P11 * Mon Jan 26 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.3.8-5mdk - fix unpackaged files