Release 224-2mamba
This commit is contained in:
parent
e71cb7dda8
commit
355f700b49
47
systemd-sysv-install
Normal file
47
systemd-sysv-install
Normal 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
|
10
systemd.spec
10
systemd.spec
@ -25,7 +25,7 @@
|
|||||||
Name: systemd
|
Name: systemd
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 224
|
Version: 224
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A system and service manager compatible with SysV and LSB init scripts
|
Summary: A system and service manager compatible with SysV and LSB init scripts
|
||||||
Group: System/Configuration
|
Group: System/Configuration
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -43,6 +43,7 @@ Source13: udev-blacklist
|
|||||||
Source14: udev-ifupdown.rules
|
Source14: udev-ifupdown.rules
|
||||||
Source15: udev-post-initscript
|
Source15: udev-post-initscript
|
||||||
Source16: udev-sysconfig
|
Source16: udev-sysconfig
|
||||||
|
Source17: systemd-sysv-install
|
||||||
Patch0: systemd-191-upstream-build-fix.patch
|
Patch0: systemd-191-upstream-build-fix.patch
|
||||||
Patch1: systemd-197-revert-only-add-support.patch
|
Patch1: systemd-197-revert-only-add-support.patch
|
||||||
Patch2: systemd-198-lock-to-tty-group-openmamba.patch
|
Patch2: systemd-198-lock-to-tty-group-openmamba.patch
|
||||||
@ -57,7 +58,7 @@ Patch10: systemd-218-glibc-2.19.patch
|
|||||||
Patch11: systemd-219-rework_device_state_logic.patch
|
Patch11: systemd-219-rework_device_state_logic.patch
|
||||||
Patch12: systemd-219-upstream_dont_change_devices_state_to_tentative.patch
|
Patch12: systemd-219-upstream_dont_change_devices_state_to_tentative.patch
|
||||||
Patch13: systemd-219-upstream_do_not_spawn_jobs_or_during_coldplug.patch
|
Patch13: systemd-219-upstream_do_not_spawn_jobs_or_during_coldplug.patch
|
||||||
Patch14: systemd-219-silend-about-device-appeared-twice.patch
|
Patch14: systemd-219-silend-about-device-appeared-twice.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -286,6 +287,8 @@ ln -s /proc/mounts %{buildroot}%{_sysconfdir}/mtab
|
|||||||
# install libnss_myhostname.so.* to /%{lib}
|
# install libnss_myhostname.so.* to /%{lib}
|
||||||
mv %{buildroot}%{_libdir}/libnss_myhostname.so.* %{buildroot}/%{_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}
|
%find_lang %{name}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -655,6 +658,9 @@ fi
|
|||||||
%{_datadir}/pkgconfig/udev.pc
|
%{_datadir}/pkgconfig/udev.pc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Aug 04 2015 Automatic Build System <autodist@mambasoft.it> 224-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user