-
-%bcond_with mr # Use asteriskes and dashes in all languages
- # for `chkconfig --list` command (aplies more_readable.patch).
- # Note: it makes the program inconsistent with the rest
- # of the world (some people say).
-
Summary: Updates and queries runlevel information for system services
Summary(de): Aktualisiert runlevel-Informationen für Systemdienste und fragt diese ab
Summary(es): Herramienta para actualizar y listar servicios del sistema, por nivel de ejecución (runlevel)
Summary(uk): óÉÓÔÅÍÎÁ ÕÔÉ̦ÔÁ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ¦¤ÒÁÒȦ¤À /etc/rc.d
Name: chkconfig
Version: 1.2.24h
-Release: 10%{?with_mr:+mr}
+Release: 11
Epoch: 1
License: GPL
Group: Applications/System
%patch2 -p1
%patch3 -p1
%patch4 -p1
-%{?with_mr:%patch5 -p1}
+%patch5 -p1
mv -f po/{eu_ES,eu}.po
mv -f po/{no,nb}.po
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/rc.d/{init,rc{0,1,2,3,4,5,6}}.d,/sbin}
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/{init,rc{0,1,2,3,4,5,6}}.d,env.d},/sbin}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
+cat <<EOF > $RPM_BUILD_ROOT/etc/env.d/CHKCONFIG_ON
+# display custom string instead of "on" (or its translation)
+#CHKCONFIG_ON="*****"
+EOF
+cat <<EOF > $RPM_BUILD_ROOT/etc/env.d/CHKCONFIG_OFF
+# display custom string instead of "off" (or its translation)
+#CHKCONFIG_OFF="-----"
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) /sbin/chkconfig
%{_mandir}/man8/chkconfig.8*
+%attr(644,root,root) %config(noreplace,missingok) %verify(not md5 size mtime) /etc/env.d/*
%files -n ntsysv
%defattr(644,root,root,755)