%define version 1.2.12 %define release 1mdk Summary: A system tool for maintaining the /etc/rc.d hierarchy. Name: chkconfig Version: %{version} Release: %{release} Copyright: GPL Group: System/Configuration/Boot and Init Source: ftp://ftp.redhat.com/pub/redhat/code/chkconfig/chkconfig-%{version}.tar.bz2 Patch: chkconfig-msec.patch.bz2 Patch1: ntsysv-mdkconf.patch.bz2 Patch2: ntsysv-geoffhack.patch.bz2 Patch3: chkconfig-runleveldir.patch.bz2 Patch4: ntsysv-tvman.patch.bz2 Patch5: chkconfig-fix.patch.bz2 Patch6: chkconfig-1.2.12-adddelxinetd.patch.bz2 Patch7: chkconfig-1.2.12-skip-rpmnew.patch.bz2 BuildRoot: %{_tmppath}/%{name}-root BuildRequires: newt-devel, popt-devel, slang Requires: msec >= 0.10 %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/Configuration/Boot and Init %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 %patch0 -p1 %patch1 -p0 %patch2 -p1 %patch3 -p1 %patch4 -p0 %patch5 -p0 %patch6 -p1 %patch7 -p1 %build %ifarch sparc LIBMHACK=-lm %endif make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LIBMHACK=$LIBMHACK %install rm -rf $RPM_BUILD_ROOT make instroot=$RPM_BUILD_ROOT MANDIR=%{_mandir} install mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d for n in 0 1 2 3 4 5 6; do mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/rc${n}.d done # corrected indonesian language code (it has changed from 'in' to 'id') mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/id/LC_MESSAGES mv $RPM_BUILD_ROOT%{_datadir}/locale/{in,in_ID}/LC_MESSAGES/* \ $RPM_BUILD_ROOT%{_datadir}/locale/id/LC_MESSAGES || : rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{in,in_ID} || : %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root) /sbin/chkconfig %{_mandir}/man8/chkconfig.8* %dir %{_sysconfdir}/rc.d %dir %{_sysconfdir}/rc.d/* %files -n ntsysv %defattr(-,root,root) %{_sbindir}/ntsysv %{_mandir}/man8/ntsysv.8* %changelog * Sat Sep 23 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.2.12-1mdk - Skip also .rpmmnew in chkconfig. - 1.2.12. - Support of xinetd in chkconfig (not only ntsysv). * Thu Sep 14 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.2.7-4mdk - bug fix : chkconfig didn't do its job when the sysadmin delete a link this is a rh stupidity (they duplicate the --del code for --add but alter the first withouth altering the second) * Sat Sep 2 2000 Pixel <pixel@mandrakesoft.com> 1.2.7-3mdk - use find_lang * Wed Aug 09 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.2.7-2mdk - fix ntsysv man page * Tue Aug 08 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.2.7-1mdk - s|1.0.8|1.2.7| - macros and BM from Stefan :-) - redid yoann's msec patch for chkconfig * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.8-10mdk - automatically added BuildRequires * Tue May 30 2000 Geoffrey Lee <snailtalk@linux-mandrake.com> 1.0.8-9mdk - patch: doesn't update runlevel stuff if you are not root * Fri Apr 14 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 1.0.8-8mdk - Change printf on secure level error to reflect the new msec location. * Fri Mar 24 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.8-7mdk - group fix. * Wed Mar 08 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> - Modified the msec patch to use the new filesystem hierarchy used by msec. chkconfig will no use /etc/security/msec/server.[45] - Require msec 0.10 * Thu Dec 30 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Add standard mandrake colors. * Thu Nov 25 1999 Yoann Vandoorselaere <yoann@mandrakesoft.com> - Added the --msec option, used when called from Mandrake Security scripts. * Thu Nov 25 1999 Yoann Vandoorselaere <yoann@mandrakesoft.com> - Oops, fixed a little problem. * Thu Nov 25 1999 Yoann Vandoorselaere <yoann@mandrakesoft.com> - Hacked chkconfig to interoperate with Mandrake security package. * Tue Nov 2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 1.0.8. * Tue Oct 19 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Build Release. * Fri Oct 1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 1.0.7 * Fri Aug 06 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - corrected indonesian language code (it has changed from 'in' to 'id') * Thu Apr 29 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Mandrake adaptations. * Mon Apr 19 1999 Cristian Gafton <gafton@redhat.com> - release for Red Hat 6.0 * Thu Apr 8 1999 Matt Wilson <msw@redhat.com> - added support for a "hide: true" tag in initscripts that will make services not appear in ntsysv when run with the "--hide" flag * Thu Apr 1 1999 Matt Wilson <msw@redhat.com> - added --hide flag for ntsysv that allows you to hide a service from the user. * Mon Mar 22 1999 Bill Nottingham <notting@redhat.com> - fix glob, once and for all. Really. We mean it. * Thu Mar 18 1999 Bill Nottingham <notting@redhat.com> - revert fix for services@levels, it's broken - change default to only edit the current runlevel * Mon Mar 15 1999 Bill Nottingham <notting@redhat.com> - don't remove scripts that don't support chkconfig * Tue Mar 09 1999 Erik Troan <ewt@redhat.com> - made glob a bit more specific so xinetd and inetd don't cause improper matches * Thu Feb 18 1999 Matt Wilson <msw@redhat.com> - removed debugging output when starting ntsysv * Thu Feb 18 1999 Preston Brown <pbrown@redhat.com> - fixed globbing error - fixed ntsysv running services not at their specified levels. * Tue Feb 16 1999 Matt Wilson <msw@redhat.com> - print the value of errno on glob failures. * Sun Jan 10 1999 Matt Wilson <msw@redhat.com> - rebuilt for newt 0.40 (ntsysv) * Tue Dec 15 1998 Jeff Johnson <jbj@redhat.com> - add ru.po. * Thu Oct 22 1998 Bill Nottingham <notting@redhat.com> - build for Raw Hide (slang-1.2.2) * Wed Oct 14 1998 Cristian Gafton <gafton@redhat.com> - translation updates * Thu Oct 08 1998 Cristian Gafton <gafton@redhat.com> - updated czech translation (and use cs instead of cz) * Tue Sep 22 1998 Arnaldo Carvalho de Melo <acme@conectiva.com.br> - added pt_BR translations - added more translatable strings - support for i18n init.d scripts description * Sun Aug 02 1998 Erik Troan <ewt@redhat.com> - built against newt 0.30 - split ntsysv into a separate package * Thu May 07 1998 Erik Troan <ewt@redhat.com> - added numerous translations * Mon Mar 23 1998 Erik Troan <ewt@redhat.com> - added i18n support * Sun Mar 22 1998 Erik Troan <ewt@redhat.com> - added --back