initscripts 9.79-1 (x86_64;i586) 2018-3646
-9999

Status rejected
Submitter tpgxyz [@T] gmail.com
Platform 3.0
Repository main
URL https://abf.openmandriva.org/build_lists/146062
Packages
initscripts-9.79-1.x86_64.source
initscripts-9.79-1.x86_64.binary
initscripts-debuginfo-9.79-1.x86_64.debuginfo
initscripts-9.79-1.i586.source
initscripts-9.79-1.i586.binary
initscripts-debuginfo-9.79-1.i586.debuginfo
Build Date 2018-01-20 21:20:13 +0000 UTC
Last Updated 2018-01-23 16:51:06.542327458 +0000 UTC
$ git diff --patch-with-stat --summary a3491caca40397529003a5a399c366b1c4ba136d..f318e0c9616dd696f5f4d0ede2cf7997aff1eea3

 .abf.yml                                           |   2 +-
 ...temd-escape-to-bin-systemd-escape-in-serv.patch |  25 -----
 initscripts.spec                                   | 103 ++++++++-------------
 3 files changed, 42 insertions(+), 88 deletions(-)
 delete mode 100644 0001-usr-bin-systemd-escape-to-bin-systemd-escape-in-serv.patch

diff --git a/.abf.yml b/.abf.yml
index 364e148..2c40aaa 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
 sources:
-  initscripts-9.77.tar.gz: f8cfea38564e26bfd51d45491b98913c9d1b3b59
+  initscripts-9.79.tar.gz: 3100329129824ab0e582dbee5d068fec930528c7
diff --git a/0001-usr-bin-systemd-escape-to-bin-systemd-escape-in-serv.patch b/0001-usr-bin-systemd-escape-to-bin-systemd-escape-in-serv.patch
deleted file mode 100644
index 51ce811..0000000
--- a/0001-usr-bin-systemd-escape-to-bin-systemd-escape-in-serv.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 8598acd7c0c82b54aac92062e2ebfbe2b9473cfa Mon Sep 17 00:00:00 2001
-From: Alexander Stefanov-Khryukin <alexander@mezon.ru>
-Date: Fri, 2 Dec 2016 14:41:03 +0000
-Subject: [PATCH] /usr/bin/systemd-escape to /bin/systemd-escape in service
-
----
- service | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/service b/service
-index f33fd1f..64106fe 100755
---- a/service
-+++ b/service
-@@ -89,7 +89,7 @@ elif [ -x "${ACTIONDIR}/${SERVICE}/${ACTION}" -a -n "${ACTION}" ]; then
-    env -i PATH="$PATH" TERM="$TERM" SYSTEMCTL_IGNORE_DEPENDENCIES=${SYSTEMCTL_IGNORE_DEPENDENCIES} SYSTEMCTL_SKIP_REDIRECT=${SYSTEMCTL_SKIP_REDIRECT} "${ACTIONDIR}/${SERVICE}/${ACTION}" ${OPTIONS}
- elif `echo $ACTION | egrep -qw "start|stop|restart|try-restart|reload|force-reload|status|condrestart"` ; then
-    echo $"Redirecting to /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service" >&2
--   SERVICE_MANGLED=$(/usr/bin/systemd-escape --mangle ${SERVICE})
-+   SERVICE_MANGLED=$(/bin/systemd-escape --mangle ${SERVICE})
-    exec /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE_MANGLED}
- else
-    echo $"The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl." >&2
--- 
-2.8.3
-
diff --git a/initscripts.spec b/initscripts.spec
index 9997e43..c368481 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -2,8 +2,8 @@
 
 Summary:	Scripts to bring up network interfaces and legacy utilities
 Name:		initscripts
-Version:	9.77
-Release:	2
+Version:	9.79
+Release:	1
 License:	GPLv2
 Group:		System/Base
 # Upstream URL: http://git.fedorahosted.org/git/initscripts.git
@@ -16,22 +16,41 @@ BuildRequires:	pkgconfig
 BuildRequires:	popt-devel
 BuildRequires:	pkgconfig(python3)
 
-Requires:	basesystem-minimal
-Requires(post):	rpm-helper
-Requires(post):	util-linux
+Requires(post,preun):	rpm-helper >= 0.24.17
+Requires(post,preun):	systemd >= 235
+Requires(post):	coreutils
+Requires(post):	grep
 Requires(post):	chkconfig
-Requires:	gettext-base >= 0.10.35-20mdk
+# for /bin/awk
+Requires:	gawk
+# for /bin/sed
+Requires:	sed
+Requires:	e2fsprogs
+Requires:	gettext-base >= 0.19
+# needed for chvt --userwait
+Requires:	kbd >= 2.0.4
+# for /sbin/fuser
+Requires:	psmisc
+Requires:	which
+Requires:	setup >= 2.8.9
+# for /sbin/arping
+Requires:	iputils
 # for /sbin/ip
 Requires:	iproute2
 Requires:	hostname >= 3.16
+# for /bin/find
+Requires:	findutils
 Requires:	net-tools >= 2.0
 Requires:	ipcalc
 # (blino) for pidof -c
 # (bor) for pidof -m
 Requires:	procps-ng
+Requires:	kmod
 Requires:	ifplugd >= 0.24
 Requires:	ethtool
 Requires:	ifmetric
+Requires:	util-linux >= 2.31
+Requires:	dmsetup
 # http://bugzilla.redhat.com/show_bug.cgi?id=252973
 Conflicts:	nut < 2.2.0
 Obsoletes:	rhsound < %{version}-%{release}
@@ -54,6 +73,7 @@ Conflicts:	mdadm < 2.6.4-2mdv2008.1
 Conflicts:	systemd <= 19-2
 Conflicts:	networkmanager < 0.8.2-8
 Conflicts:	prcsys
+%rename %{name}-debugmode
 
 %description
 The initscripts package contains the basic system scripts used to boot
@@ -61,18 +81,6 @@ your %{distribution} system, change run levels, and shut the system
 down cleanly.  Initscripts also contains the scripts that activate and
 deactivate most network interfaces.
 
-%package debugmode
-Summary:	Scripts for running in debugging mode
-Requires:	initscripts
-Group:		System/Base
-%rename		debugmode
-
-%description debugmode
-The debugmode package contains some basic scripts that are used to run
-the system in a debugging mode.
-
-Currently, this consists of various memory checking code.
-
 %prep
 %setup -q
 rm -rf po
@@ -97,8 +105,7 @@ make -C mandriva install ROOT=%{buildroot} mandir=%{_mandir}
 python mandriva/gprintify.py \
 	`find %{buildroot}%{_sysconfdir}/rc.d -type f` \
 	`find %{buildroot}/sysconfig/network-scripts -type f` \
-	%{buildroot}%{_systemdrootdir}/fedora-* \
-	%{buildroot}%{_systemdrootdir}/mandriva-*
+	%{buildroot}%{_systemdrootdir}/fedora-*
 
 # (tpg) remove as its not needed
 for i in 0 1 2 3 4 5 6; do
@@ -132,6 +139,10 @@ rm -rf %{buildroot}%{_initddir}/dm
 
 install -d %{buildroot}%{_presetdir}
 cat > %{buildroot}%{_presetdir}/86-initscripts.preset << EOF
+enable fedora-import-state.service
+enable fedora-loadmodules.service
+enable fedora-readonly.service
+enable mandriva-everytime.service
 enable network
 disable netconsole
 disable dm
@@ -152,44 +163,25 @@ rm -rf %{buildroot}%{_systemunitdir}/basic.target.wants/fedora-autorelabel-mark.
 # (tpg) get rid of it
 rm -rf %{buildroot}/lib/udev/rules.d/60-ssd.rules
 
+%post
+%systemd_post fedora-import-state.service fedora-loadmodules.service fedora-readonly.service mandriva-everytime.service
 
 %posttrans
+##Fixme
+touch /etc/sysconfig/i18n
 ##
 touch /var/log/wtmp /var/log/btmp
 chown root:utmp /var/log/wtmp /var/log/btmp
 chmod 664 /var/log/wtmp
 chmod 600 /var/log/btmp
 
-# Add right translation file
-for i in `echo $LANGUAGE:$LC_ALL:$LC_COLLATE:$LANG:C | tr ':' ' '`
-do
-    if [ -r %{_datadir}/locale/$i/LC_MESSAGES/initscripts.mo ]; then
-	mkdir -p /etc/locale/$i/LC_MESSAGES/
-	cp %{_datadir}/locale/$i/LC_MESSAGES/initscripts.mo /etc/locale/$i/LC_MESSAGES/
-#
-# warly
-# FIXME: this should be done by each locale when installed or upgraded
-#
-	pushd %{_datadir}/locale/$i/ > /dev/null && for j in LC_*
-	do
-	    if [ -r $j -a ! -d $j ]; then
-		cp $j /etc/locale/$i/
-	    fi
-	done && popd > /dev/null
-	if [ -r %{_datadir}/locale/$i/LC_MESSAGES/SYS_LC_MESSAGES ]; then
-	    cp %{_datadir}/locale/$LANG/LC_MESSAGES/SYS_LC_MESSAGES /etc/locale/$i/LC_MESSAGES/
-	fi
-#
-#
-	break
-    fi
-done
+%preun
+%systemd_preun fedora-import-state.service fedora-loadmodules.service fedora-readonly.service mandriva-everytime.service
 
-if [ $1 -ge 2 ]; then
-# (tpg) die! systemd takes care of this
-chkconfig --del dm > /dev/null 2>&1 || :
-# (tpg) kill this too
-chkconfig --del partmon > /dev/null 2>&1 || :
+%triggerun -- initscripts < 9.79
+if [ $1 -gt 1 ]; then
+  systemctl enable fedora-import-state.service fedora-readonly.service mandriva-everytime.service &> /dev/null || :
+  echo -e "\nUPGRADE: Automatically re-enabling default systemd units: fedora-import-state.service fedora-readonly.service mandriva-everytime.service\n" || :
 fi
 
 %files -f %{name}.lang
@@ -202,7 +194,6 @@ fi
 %dir %{_sysconfdir}/sysconfig/network-scripts/vpn.d/pptp
 %dir %{_sysconfdir}/sysconfig/network-scripts/vpn.d/vpnc
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime
-%config(noreplace) %{_sysconfdir}/sysconfig/init
 %config(noreplace) %{_sysconfdir}/sysconfig/autofsck
 %config(noreplace) %{_sysconfdir}/sysconfig/netconsole
 %config(noreplace) %{_sysconfdir}/sysconfig/readonly-root
@@ -254,7 +245,6 @@ fi
 %dir %{_sysconfdir}/rc.d/init.d
 /lib/lsb/init-functions
 %{_sysconfdir}/rc.d/init.d/*
-%exclude %{_sysconfdir}/profile.d/debug*
 %config %{_sysconfdir}/profile.d/*
 %dir %{_sysconfdir}/sysconfig/network-scripts/cellular.d
 %dir %{_sysconfdir}/sysconfig/network-scripts/hostname.d
@@ -306,19 +296,8 @@ fi
 %{_systemdrootdir}/fedora-import-state
 %{_systemdrootdir}/fedora-loadmodules
 %{_systemdrootdir}/fedora-readonly
-%{_systemdrootdir}/mandriva-save-dmesg
-%{_systemunitdir}/basic.target.wants/fedora-loadmodules.service
-%{_systemunitdir}/basic.target.wants/mandriva-everytime.service
 %{_systemunitdir}/fedora-domainname.service
 %{_systemunitdir}/fedora-import-state.service
 %{_systemunitdir}/fedora-loadmodules.service
 %{_systemunitdir}/fedora-readonly.service
 %{_systemunitdir}/mandriva-everytime.service
-%{_systemunitdir}/mandriva-save-dmesg.service
-%{_systemunitdir}/local-fs.target.wants/fedora-import-state.service
-%{_systemunitdir}/local-fs.target.wants/fedora-readonly.service
-%{_systemunitdir}/mandriva-kmsg-loglevel.service
-
-%files debugmode
-%config(noreplace) %{_sysconfdir}/sysconfig/debug
-%config %{_sysconfdir}/profile.d/debug*
Not Available

itchka [@T] compuserve.comNo Comment.2501d 01hrs
itchka [@T] compuserve.comNo Comment.2501d 01hrs