Release 224-2mamba

This commit is contained in:
Automatic Build System 2023-12-30 11:36:54 +01:00
parent e71cb7dda8
commit 355f700b49
2 changed files with 55 additions and 2 deletions

47
systemd-sysv-install Normal file
View File

@ -0,0 +1,47 @@
#!/bin/sh
# This script is called by "systemctl enable/disable" when the given unit is a
# SysV init.d script. It needs to call the distribution's mechanism for
# enabling/disabling those, such as chkconfig, update-rc.d, or similar. This
# can optionally take a --root argument for enabling a SysV init script
# in a chroot or similar.
set -e
usage() {
echo "Usage: $0 [--root=path] enable|disable|is-enabled <sysv script name>" >&2
exit 1
}
# parse options
eval set -- "$(getopt -o r: --long root: -- "$@")"
while true; do
case "$1" in
-r|--root)
ROOT="$2"
shift 2 ;;
--) shift ; break ;;
*) usage ;;
esac
done
NAME="$2"
[ -n "$NAME" ] || usage
case "$1" in
enable)
# call the command to enable SysV init script $NAME here
# (consider optional $ROOT)
[ -e /lib/systemd/system/$NAME.service ] || /sbin/chkconfig $NAME on
;;
disable)
# call the command to disable SysV init script $NAME here
# (consider optional $ROOT)
[ -e /lib/systemd/system/$NAME.service ] || /sbin/chkconfig $NAME off
;;
is-enabled)
# exit with 0 if $NAME is enabled, non-zero if it is disabled
# (consider optional $ROOT)
[ -e /lib/systemd/system/$NAME.service ] || /sbin/chkconfig $NAME
;;
*)
usage ;;
esac

View File

@ -25,7 +25,7 @@
Name: systemd
Epoch: 2
Version: 224
Release: 1mamba
Release: 2mamba
Summary: A system and service manager compatible with SysV and LSB init scripts
Group: System/Configuration
Vendor: openmamba
@ -43,6 +43,7 @@ Source13: udev-blacklist
Source14: udev-ifupdown.rules
Source15: udev-post-initscript
Source16: udev-sysconfig
Source17: systemd-sysv-install
Patch0: systemd-191-upstream-build-fix.patch
Patch1: systemd-197-revert-only-add-support.patch
Patch2: systemd-198-lock-to-tty-group-openmamba.patch
@ -286,6 +287,8 @@ ln -s /proc/mounts %{buildroot}%{_sysconfdir}/mtab
# install libnss_myhostname.so.* to /%{lib}
mv %{buildroot}%{_libdir}/libnss_myhostname.so.* %{buildroot}/%{_lib}/
# install our systemd-sysv-install
install -D -m0755 %{SOURCE17} %{buildroot}/lib/systemd/systemd-sysv-install
%find_lang %{name}
%clean
@ -655,6 +658,9 @@ fi
%{_datadir}/pkgconfig/udev.pc
%changelog
* Tue Aug 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 224-2mamba
- add systemd-sysv-install
* Tue Aug 04 2015 Automatic Build System <autodist@mambasoft.it> 224-1mamba
- automatic version update by autodist