forked from pool/util-linux
Accepting request 455350 from home:sbrabec:branches:util-linux-raw-fate321122
- Update to version 2.29.1: * lscpu: add aarch64 specific names * lubmount: Disable disable ro/rw mtab checks (bsc#1012632) * More details at: https://www.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29.1-ReleaseNotes - Replace raw initscript by a systemd service doing the same thing. Based on previous work of fcrozat@suse.com (FATE#321122). OBS-URL: https://build.opensuse.org/request/show/455350 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=329
This commit is contained in:
parent
0f68d9f586
commit
b385cd6d75
4
etc.raw
4
etc.raw
@ -8,8 +8,8 @@
|
|||||||
#
|
#
|
||||||
# example:
|
# example:
|
||||||
# ---------
|
# ---------
|
||||||
# raw1:hdb1
|
# raw1:sdb1
|
||||||
#
|
#
|
||||||
# this means: bind /dev/raw/raw1 to /dev/hdb1
|
# this means: bind /dev/raw/raw1 to /dev/sdb1
|
||||||
#
|
#
|
||||||
# ...
|
# ...
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 7 20:07:55 CET 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
- Update to version 2.29.1:
|
||||||
|
* lscpu: add aarch64 specific names
|
||||||
|
* lubmount: Disable disable ro/rw mtab checks (bsc#1012632)
|
||||||
|
* More details at:
|
||||||
|
https://www.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29.1-ReleaseNotes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 7 18:31:04 CET 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
- Replace raw initscript by a systemd service doing the same thing.
|
||||||
|
Based on previous work of fcrozat@suse.com (FATE#321122).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 5 12:34:33 UTC 2017 - sweet_f_a@gmx.de
|
Thu Jan 5 12:34:33 UTC 2017 - sweet_f_a@gmx.de
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ BuildRequires: libmount-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
#END SECOND STAGE DEPENDENCIES
|
#END SECOND STAGE DEPENDENCIES
|
||||||
Version: 2.29
|
Version: 2.29.1
|
||||||
Release: 0
|
Release: 0
|
||||||
# util-linux is a base package and uuidd pre-requiring pwdutils pulls
|
# util-linux is a base package and uuidd pre-requiring pwdutils pulls
|
||||||
# that into the core build cycle. pwdutils also pulls in the whole
|
# that into the core build cycle. pwdutils also pulls in the whole
|
||||||
@ -123,7 +123,7 @@ Release: 0
|
|||||||
Url: https://www.kernel.org/pub/linux/utils/util-linux/
|
Url: https://www.kernel.org/pub/linux/utils/util-linux/
|
||||||
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz
|
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz
|
||||||
Source1: util-linux-rpmlintrc
|
Source1: util-linux-rpmlintrc
|
||||||
Source4: raw.init
|
Source4: raw.service
|
||||||
Source5: etc.raw
|
Source5: etc.raw
|
||||||
Source6: etc_filesystems
|
Source6: etc_filesystems
|
||||||
Source7: baselibs.conf
|
Source7: baselibs.conf
|
||||||
@ -159,7 +159,6 @@ Provides: fsck-with-dev-lock = %{version}
|
|||||||
# bnc#651598:
|
# bnc#651598:
|
||||||
Provides: util-linux(fake+no-canonicalize)
|
Provides: util-linux(fake+no-canonicalize)
|
||||||
PreReq: %install_info_prereq permissions
|
PreReq: %install_info_prereq permissions
|
||||||
PreReq: %insserv_prereq %fillup_prereq /bin/sed
|
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
Provides: eject = 2.1.0-166.8
|
Provides: eject = 2.1.0-166.8
|
||||||
Provides: login = 4.0-33.7
|
Provides: login = 4.0-33.7
|
||||||
@ -599,7 +598,7 @@ exit "$result"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%if %build_util_linux
|
%if %build_util_linux
|
||||||
mkdir -p %{buildroot}{%{_sysconfdir}/{init.d,pam.d,default},%{_mandir}/man{1,8},/bin,/sbin,%{_bindir},%{_sbindir},%{_infodir}}
|
mkdir -p %{buildroot}{%{_sysconfdir}/{pam.d,default},%{_mandir}/man{1,8},/bin,/sbin,%{_bindir},%{_sbindir},%{_infodir}}
|
||||||
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf
|
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf
|
||||||
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login
|
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login
|
||||||
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote
|
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote
|
||||||
@ -608,7 +607,6 @@ install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser-l
|
|||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su
|
||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l
|
||||||
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/default/su
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/default/su
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
||||||
pushd ../klogconsole
|
pushd ../klogconsole
|
||||||
# klogconsole install
|
# klogconsole install
|
||||||
make install DEST=%{buildroot}
|
make install DEST=%{buildroot}
|
||||||
@ -672,8 +670,8 @@ echo -e "#! /bin/bash\n/sbin/blockdev --flushbufs \$1" > %{buildroot}%{_sbindir}
|
|||||||
chmod 755 %{buildroot}%{_sbindir}/flushb
|
chmod 755 %{buildroot}%{_sbindir}/flushb
|
||||||
# Install scripts to configure raw devices at boot time
|
# Install scripts to configure raw devices at boot time
|
||||||
install -m 644 $RPM_SOURCE_DIR%{_sysconfdir}.raw %{buildroot}%{_sysconfdir}/raw
|
install -m 644 $RPM_SOURCE_DIR%{_sysconfdir}.raw %{buildroot}%{_sysconfdir}/raw
|
||||||
install -m 755 $RPM_SOURCE_DIR/raw.init %{buildroot}%{_initddir}/raw
|
install -m 644 $RPM_SOURCE_DIR/raw.service %{buildroot}%{_unitdir}
|
||||||
ln -sf ../..%{_sysconfdir}/init.d/raw %{buildroot}%{_sbindir}/rcraw
|
ln -sf service %{buildroot}%{_sbindir}/rcraw
|
||||||
# upstream moved getopt examples from datadir to docdir but we keep
|
# upstream moved getopt examples from datadir to docdir but we keep
|
||||||
# the old location because we would need to fix the manpage first
|
# the old location because we would need to fix the manpage first
|
||||||
mv %{buildroot}%{_docdir}/%{_name}/getopt %{buildroot}%{_datadir}/
|
mv %{buildroot}%{_docdir}/%{_name}/getopt %{buildroot}%{_datadir}/
|
||||||
@ -748,8 +746,11 @@ echo -e 'enable uuidd.socket\nenable uuidd.service' >%{buildroot}/usr/lib/system
|
|||||||
%fdupes -s %{buildroot}%{_prefix}
|
%fdupes -s %{buildroot}%{_prefix}
|
||||||
|
|
||||||
%if %build_util_linux
|
%if %build_util_linux
|
||||||
|
%pre
|
||||||
|
%{service_add_pre raw.service}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_and_insserv raw}
|
%{service_add_post raw.service}
|
||||||
%set_permissions %{_bindir}/wall %{_bindir}/write %{_bindir}/mount %{_bindir}/umount
|
%set_permissions %{_bindir}/wall %{_bindir}/write %{_bindir}/mount %{_bindir}/umount
|
||||||
%set_permissions %{_bindir}/su
|
%set_permissions %{_bindir}/su
|
||||||
# Safely migrate PAM files from coreutils to util-linux
|
# Safely migrate PAM files from coreutils to util-linux
|
||||||
@ -775,8 +776,11 @@ if [ -f etc/fstab ]; then
|
|||||||
sed -i 's:code=:codepage=:' etc/fstab
|
sed -i 's:code=:codepage=:' etc/fstab
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%{service_del_preun raw.service}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%{insserv_cleanup}
|
%{service_del_postun raw.service}
|
||||||
|
|
||||||
%verifyscript
|
%verifyscript
|
||||||
%verify_permissions -e %{_bindir}/wall -e %{_bindir}/write -e %{_bindir}/mount -e %{_bindir}/umount
|
%verify_permissions -e %{_bindir}/wall -e %{_bindir}/write -e %{_bindir}/mount -e %{_bindir}/umount
|
||||||
@ -860,7 +864,7 @@ fi
|
|||||||
%doc Documentation/modems-with-agetty.txt
|
%doc Documentation/modems-with-agetty.txt
|
||||||
%doc Documentation/mount.txt
|
%doc Documentation/mount.txt
|
||||||
%doc Documentation/pg.txt
|
%doc Documentation/pg.txt
|
||||||
%config %attr(744,root,root) %{_sysconfdir}/init.d/raw
|
%{_unitdir}/raw.service
|
||||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/raw
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/raw
|
||||||
%config(noreplace) %{_sysconfdir}/filesystems
|
%config(noreplace) %{_sysconfdir}/filesystems
|
||||||
%config(noreplace) %{_sysconfdir}/blkid.conf
|
%config(noreplace) %{_sysconfdir}/blkid.conf
|
||||||
|
62
raw.init
62
raw.init
@ -1,62 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
# Copyright (c) 1995-2001 SuSE GmbH Nuernberg, Germany.
|
|
||||||
#
|
|
||||||
# Author: Dirk Lerner <feedback@suse.de>
|
|
||||||
#
|
|
||||||
# /etc/init.d/raw
|
|
||||||
#
|
|
||||||
# and symbolic its link
|
|
||||||
#
|
|
||||||
# /usr/sbin/rcraw
|
|
||||||
#
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: raw
|
|
||||||
# Required-Start: $local_fs $remote_fs
|
|
||||||
# Required-Stop: $local_fs $remote_fs
|
|
||||||
# Default-Start: 2 3 5
|
|
||||||
# Default-Stop: 0 1 6
|
|
||||||
# Short-Description: raw devices
|
|
||||||
# Description: raw-devices
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
. /etc/rc.status
|
|
||||||
|
|
||||||
CONFIG=/etc/raw
|
|
||||||
RAW_BIN=/sbin/raw
|
|
||||||
RAW_MODULE=raw
|
|
||||||
test -x $RAW_BIN || exit 5
|
|
||||||
|
|
||||||
if [ ! -f $CONFIG ];then
|
|
||||||
echo "file: $CONFIG not found"
|
|
||||||
exit 6
|
|
||||||
fi
|
|
||||||
|
|
||||||
rc_reset
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
/sbin/modprobe $RAW_MODULE && sleep 2
|
|
||||||
line=`grep -v ^# < $CONFIG`
|
|
||||||
|
|
||||||
for i in $line;do
|
|
||||||
rawdev=`echo $i | cut -f1 -d:`
|
|
||||||
rawbind=`echo $i | cut -f2- -d:`
|
|
||||||
echo -n "bind /dev/raw/$rawdev to /dev/$rawbind..."
|
|
||||||
$RAW_BIN /dev/raw/$rawdev /dev/$rawbind > /dev/null 2>&1
|
|
||||||
rc_status -v
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
echo -n "to unbind the rawdevice please perform a system shutdown"
|
|
||||||
rc_failed 3
|
|
||||||
rc_status -v
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
$RAW_BIN -qa 2> /dev/null
|
|
||||||
rc_status -v
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 {start|stop|status}"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
rc_exit
|
|
17
raw.service
Normal file
17
raw.service
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=raw devices
|
||||||
|
After=local-fs.target remote-fs.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/bin/sh -c "\
|
||||||
|
/sbin/modprobe raw;\
|
||||||
|
/sbin/udevadm settle;\
|
||||||
|
for i in `grep -v ^# /etc/raw`; do\
|
||||||
|
rawdev=`echo $i | cut -f1 -d:`;\
|
||||||
|
rawbind=`echo $i | cut -f2- -d:`;\
|
||||||
|
/usr/sbin/raw /dev/raw/$rawdev /dev/$rawbind;\
|
||||||
|
done"
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
17
util-linux-2.29.1.tar.sign
Normal file
17
util-linux-2.29.1.tar.sign
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v2
|
||||||
|
|
||||||
|
iQIcBAABCAAGBQJYghWjAAoJEOS3HV7sOcKEsRsP/Rhl+vlB9TQmxHF4EhglTJMv
|
||||||
|
i8x65Eq4WznF+qf9ZMZ4qSrsfS/FqvIccw9MWEywj3lAHBx05jhW5Bx6vEzFijiS
|
||||||
|
CuzRcx+5UuO6DQHxySIRqxromCRaCNzUnNhZfFVlJo1EAD1TVzuF62otCRHxE6F+
|
||||||
|
NMjw9+PAPrYT00L6I3AzIHc7t+EgZX6Cyr2Yb22VQnTIJc8E7XfiA7iXgjdhqsn9
|
||||||
|
kKUl4kUDGZULX9cIjRkbaVIR7Z8+DH0LcA7QyvA+Xw3fu4UGVCRHR5EquUWEplQD
|
||||||
|
1rycHxEjRvOjheZCHdAUlhzHguNm2xVSTtcLjvMieMOM60pNxijLibhKkMmqkjJX
|
||||||
|
e/CLWFHPLnxpJ+WPRUAA5qVrpRjkUm3Wh5O/TBytICQUPTRw7wG4WPgOtgpq3aSr
|
||||||
|
aet8iClLZkAw7wNS3O+VTRZuzB+mfbguRR7S2o0UemmEBJ9Y4nkaZN/SyT/aX4t0
|
||||||
|
vhvM3tbIgw3sGozEsYMjzO/iQTDRIi284DVnfPS7Y1A2RY5lDkSzKowiL9X1vh61
|
||||||
|
5tapPthH4Fmss+sd/mC6W3XiBRvLR32l6gTq1M4kMPVKZ3XPlo2uvNbTiL93nI1q
|
||||||
|
DDWSzORi+bSsjMGUYU3VDlzqnsrhwxzdCNl6eA+/Y65tRwQNmOPpBVkSOfp+Fqy9
|
||||||
|
R6VzZW/Y6fWxPojd34A2
|
||||||
|
=OXAT
|
||||||
|
-----END PGP SIGNATURE-----
|
3
util-linux-2.29.1.tar.xz
Normal file
3
util-linux-2.29.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0ce40600b934ec2fecfa6bfc4efe6982d051ba96c2832b05201347aec582f54f
|
||||||
|
size 4278756
|
@ -1,17 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
Version: GnuPG v2
|
|
||||||
|
|
||||||
iQIcBAABCAAGBQJYIa+yAAoJEOS3HV7sOcKEkPEQAJ6qcx836hUP93e+q8lH7Anf
|
|
||||||
6odYlxYWC5Pgb8Qopn1KDMh5c3GAbPrnbSoVRKS3jvc24uZuhlCCwYnJbcmEt/+L
|
|
||||||
am+/zQyIF9T5ZwTadnGD2bkYXI5N9eS4R5O0N/OdBTgsVr9rjZ318zHg+8YCUZN0
|
|
||||||
hCh4e1UlUC8uL7C/WgeLW/+kN+D+/1KJISDerkw+u5FFPZGWcPcYPh7ofi4ZyV/h
|
|
||||||
OPgvaEHt3/IxsZnuUNtIEVhFBpabjdwLkXm1LQ26XLnkdipBuuadVB8jaSLUz29J
|
|
||||||
rkNVI0iiH9vq5abE0wDIzQ2Lt4Lv65fQM7dmw/Ek188tZn9MyX8vT+C5Vyu+EFtU
|
|
||||||
K+1BwMVNqfW5hZHPM2z7izO/ml77wnydEFGy9GZZpLqQAzUGgsQDC3JbiczC7Qfq
|
|
||||||
bTFGhz32sHp/2gyOqciwhLPzWxD6jOLVG84vC9Obvtm+xQEfvLa71FnHdcLU3uZA
|
|
||||||
uZHt50WSuusZJtCWDhhLgfV6NV7c+YB1tELfrStlXAHyZT3Ws0pNPv+5Sue81dGt
|
|
||||||
uYVOOlXd+5qVpcgJRs5ai86yzv65kCeqmDsSAiHMIwPfFYBOeYessiRmWpqJXTt2
|
|
||||||
S38j00fHFbNh5qqgDyso6myan4ZNLVIpihZLT2JLJqxEnf4ILZVV7krNW9p09teq
|
|
||||||
afEkNizqGL/NF2I7ltpe
|
|
||||||
=5e/s
|
|
||||||
-----END PGP SIGNATURE-----
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2c59ea67cc7b564104f60532f6e0a95fe17a91acb870ba8fd7e986f273abf9e7
|
|
||||||
size 4249020
|
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 7 20:07:55 CET 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
- Update to version 2.29.1:
|
||||||
|
* lscpu: add aarch64 specific names
|
||||||
|
* lubmount: Disable disable ro/rw mtab checks (bsc#1012632)
|
||||||
|
* More details at:
|
||||||
|
https://www.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29.1-ReleaseNotes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 7 18:31:04 CET 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
- Replace raw initscript by a systemd service doing the same thing.
|
||||||
|
Based on previous work of fcrozat@suse.com (FATE#321122).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 5 12:34:33 UTC 2017 - sweet_f_a@gmx.de
|
Thu Jan 5 12:34:33 UTC 2017 - sweet_f_a@gmx.de
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ BuildRequires: libmount-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
#END SECOND STAGE DEPENDENCIES
|
#END SECOND STAGE DEPENDENCIES
|
||||||
Version: 2.29
|
Version: 2.29.1
|
||||||
Release: 0
|
Release: 0
|
||||||
# util-linux is a base package and uuidd pre-requiring pwdutils pulls
|
# util-linux is a base package and uuidd pre-requiring pwdutils pulls
|
||||||
# that into the core build cycle. pwdutils also pulls in the whole
|
# that into the core build cycle. pwdutils also pulls in the whole
|
||||||
@ -123,7 +123,7 @@ Release: 0
|
|||||||
Url: https://www.kernel.org/pub/linux/utils/util-linux/
|
Url: https://www.kernel.org/pub/linux/utils/util-linux/
|
||||||
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz
|
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz
|
||||||
Source1: util-linux-rpmlintrc
|
Source1: util-linux-rpmlintrc
|
||||||
Source4: raw.init
|
Source4: raw.service
|
||||||
Source5: etc.raw
|
Source5: etc.raw
|
||||||
Source6: etc_filesystems
|
Source6: etc_filesystems
|
||||||
Source7: baselibs.conf
|
Source7: baselibs.conf
|
||||||
@ -159,7 +159,6 @@ Provides: fsck-with-dev-lock = %{version}
|
|||||||
# bnc#651598:
|
# bnc#651598:
|
||||||
Provides: util-linux(fake+no-canonicalize)
|
Provides: util-linux(fake+no-canonicalize)
|
||||||
PreReq: %install_info_prereq permissions
|
PreReq: %install_info_prereq permissions
|
||||||
PreReq: %insserv_prereq %fillup_prereq /bin/sed
|
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
Provides: eject = 2.1.0-166.8
|
Provides: eject = 2.1.0-166.8
|
||||||
Provides: login = 4.0-33.7
|
Provides: login = 4.0-33.7
|
||||||
@ -599,7 +598,7 @@ exit "$result"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%if %build_util_linux
|
%if %build_util_linux
|
||||||
mkdir -p %{buildroot}{%{_sysconfdir}/{init.d,pam.d,default},%{_mandir}/man{1,8},/bin,/sbin,%{_bindir},%{_sbindir},%{_infodir}}
|
mkdir -p %{buildroot}{%{_sysconfdir}/{pam.d,default},%{_mandir}/man{1,8},/bin,/sbin,%{_bindir},%{_sbindir},%{_infodir}}
|
||||||
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf
|
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf
|
||||||
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login
|
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login
|
||||||
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote
|
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote
|
||||||
@ -608,7 +607,6 @@ install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser-l
|
|||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su
|
||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l
|
||||||
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/default/su
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/default/su
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
||||||
pushd ../klogconsole
|
pushd ../klogconsole
|
||||||
# klogconsole install
|
# klogconsole install
|
||||||
make install DEST=%{buildroot}
|
make install DEST=%{buildroot}
|
||||||
@ -672,8 +670,8 @@ echo -e "#! /bin/bash\n/sbin/blockdev --flushbufs \$1" > %{buildroot}%{_sbindir}
|
|||||||
chmod 755 %{buildroot}%{_sbindir}/flushb
|
chmod 755 %{buildroot}%{_sbindir}/flushb
|
||||||
# Install scripts to configure raw devices at boot time
|
# Install scripts to configure raw devices at boot time
|
||||||
install -m 644 $RPM_SOURCE_DIR%{_sysconfdir}.raw %{buildroot}%{_sysconfdir}/raw
|
install -m 644 $RPM_SOURCE_DIR%{_sysconfdir}.raw %{buildroot}%{_sysconfdir}/raw
|
||||||
install -m 755 $RPM_SOURCE_DIR/raw.init %{buildroot}%{_initddir}/raw
|
install -m 644 $RPM_SOURCE_DIR/raw.service %{buildroot}%{_unitdir}
|
||||||
ln -sf ../..%{_sysconfdir}/init.d/raw %{buildroot}%{_sbindir}/rcraw
|
ln -sf service %{buildroot}%{_sbindir}/rcraw
|
||||||
# upstream moved getopt examples from datadir to docdir but we keep
|
# upstream moved getopt examples from datadir to docdir but we keep
|
||||||
# the old location because we would need to fix the manpage first
|
# the old location because we would need to fix the manpage first
|
||||||
mv %{buildroot}%{_docdir}/%{_name}/getopt %{buildroot}%{_datadir}/
|
mv %{buildroot}%{_docdir}/%{_name}/getopt %{buildroot}%{_datadir}/
|
||||||
@ -748,8 +746,11 @@ echo -e 'enable uuidd.socket\nenable uuidd.service' >%{buildroot}/usr/lib/system
|
|||||||
%fdupes -s %{buildroot}%{_prefix}
|
%fdupes -s %{buildroot}%{_prefix}
|
||||||
|
|
||||||
%if %build_util_linux
|
%if %build_util_linux
|
||||||
|
%pre
|
||||||
|
%{service_add_pre raw.service}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_and_insserv raw}
|
%{service_add_post raw.service}
|
||||||
%set_permissions %{_bindir}/wall %{_bindir}/write %{_bindir}/mount %{_bindir}/umount
|
%set_permissions %{_bindir}/wall %{_bindir}/write %{_bindir}/mount %{_bindir}/umount
|
||||||
%set_permissions %{_bindir}/su
|
%set_permissions %{_bindir}/su
|
||||||
# Safely migrate PAM files from coreutils to util-linux
|
# Safely migrate PAM files from coreutils to util-linux
|
||||||
@ -775,8 +776,11 @@ if [ -f etc/fstab ]; then
|
|||||||
sed -i 's:code=:codepage=:' etc/fstab
|
sed -i 's:code=:codepage=:' etc/fstab
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%{service_del_preun raw.service}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%{insserv_cleanup}
|
%{service_del_postun raw.service}
|
||||||
|
|
||||||
%verifyscript
|
%verifyscript
|
||||||
%verify_permissions -e %{_bindir}/wall -e %{_bindir}/write -e %{_bindir}/mount -e %{_bindir}/umount
|
%verify_permissions -e %{_bindir}/wall -e %{_bindir}/write -e %{_bindir}/mount -e %{_bindir}/umount
|
||||||
@ -860,7 +864,7 @@ fi
|
|||||||
%doc Documentation/modems-with-agetty.txt
|
%doc Documentation/modems-with-agetty.txt
|
||||||
%doc Documentation/mount.txt
|
%doc Documentation/mount.txt
|
||||||
%doc Documentation/pg.txt
|
%doc Documentation/pg.txt
|
||||||
%config %attr(744,root,root) %{_sysconfdir}/init.d/raw
|
%{_unitdir}/raw.service
|
||||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/raw
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/raw
|
||||||
%config(noreplace) %{_sysconfdir}/filesystems
|
%config(noreplace) %{_sysconfdir}/filesystems
|
||||||
%config(noreplace) %{_sysconfdir}/blkid.conf
|
%config(noreplace) %{_sysconfdir}/blkid.conf
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 7 20:07:55 CET 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
- Update to version 2.29.1:
|
||||||
|
* lscpu: add aarch64 specific names
|
||||||
|
* lubmount: Disable disable ro/rw mtab checks (bsc#1012632)
|
||||||
|
* More details at:
|
||||||
|
https://www.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29.1-ReleaseNotes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 7 18:31:04 CET 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
- Replace raw initscript by a systemd service doing the same thing.
|
||||||
|
Based on previous work of fcrozat@suse.com (FATE#321122).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 5 12:34:33 UTC 2017 - sweet_f_a@gmx.de
|
Thu Jan 5 12:34:33 UTC 2017 - sweet_f_a@gmx.de
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ BuildRequires: libmount-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
#END SECOND STAGE DEPENDENCIES
|
#END SECOND STAGE DEPENDENCIES
|
||||||
Version: 2.29
|
Version: 2.29.1
|
||||||
Release: 0
|
Release: 0
|
||||||
# util-linux is a base package and uuidd pre-requiring pwdutils pulls
|
# util-linux is a base package and uuidd pre-requiring pwdutils pulls
|
||||||
# that into the core build cycle. pwdutils also pulls in the whole
|
# that into the core build cycle. pwdutils also pulls in the whole
|
||||||
@ -123,7 +123,7 @@ Release: 0
|
|||||||
Url: https://www.kernel.org/pub/linux/utils/util-linux/
|
Url: https://www.kernel.org/pub/linux/utils/util-linux/
|
||||||
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz
|
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz
|
||||||
Source1: util-linux-rpmlintrc
|
Source1: util-linux-rpmlintrc
|
||||||
Source4: raw.init
|
Source4: raw.service
|
||||||
Source5: etc.raw
|
Source5: etc.raw
|
||||||
Source6: etc_filesystems
|
Source6: etc_filesystems
|
||||||
Source7: baselibs.conf
|
Source7: baselibs.conf
|
||||||
@ -159,7 +159,6 @@ Provides: fsck-with-dev-lock = %{version}
|
|||||||
# bnc#651598:
|
# bnc#651598:
|
||||||
Provides: util-linux(fake+no-canonicalize)
|
Provides: util-linux(fake+no-canonicalize)
|
||||||
PreReq: %install_info_prereq permissions
|
PreReq: %install_info_prereq permissions
|
||||||
PreReq: %insserv_prereq %fillup_prereq /bin/sed
|
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
Provides: eject = 2.1.0-166.8
|
Provides: eject = 2.1.0-166.8
|
||||||
Provides: login = 4.0-33.7
|
Provides: login = 4.0-33.7
|
||||||
@ -599,7 +598,7 @@ exit "$result"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%if %build_util_linux
|
%if %build_util_linux
|
||||||
mkdir -p %{buildroot}{%{_sysconfdir}/{init.d,pam.d,default},%{_mandir}/man{1,8},/bin,/sbin,%{_bindir},%{_sbindir},%{_infodir}}
|
mkdir -p %{buildroot}{%{_sysconfdir}/{pam.d,default},%{_mandir}/man{1,8},/bin,/sbin,%{_bindir},%{_sbindir},%{_infodir}}
|
||||||
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf
|
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/blkid.conf
|
||||||
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login
|
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/login
|
||||||
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote
|
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/remote
|
||||||
@ -608,7 +607,6 @@ install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/pam.d/runuser-l
|
|||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su
|
||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/su-l
|
||||||
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/default/su
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/default/su
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
||||||
pushd ../klogconsole
|
pushd ../klogconsole
|
||||||
# klogconsole install
|
# klogconsole install
|
||||||
make install DEST=%{buildroot}
|
make install DEST=%{buildroot}
|
||||||
@ -672,8 +670,8 @@ echo -e "#! /bin/bash\n/sbin/blockdev --flushbufs \$1" > %{buildroot}%{_sbindir}
|
|||||||
chmod 755 %{buildroot}%{_sbindir}/flushb
|
chmod 755 %{buildroot}%{_sbindir}/flushb
|
||||||
# Install scripts to configure raw devices at boot time
|
# Install scripts to configure raw devices at boot time
|
||||||
install -m 644 $RPM_SOURCE_DIR%{_sysconfdir}.raw %{buildroot}%{_sysconfdir}/raw
|
install -m 644 $RPM_SOURCE_DIR%{_sysconfdir}.raw %{buildroot}%{_sysconfdir}/raw
|
||||||
install -m 755 $RPM_SOURCE_DIR/raw.init %{buildroot}%{_initddir}/raw
|
install -m 644 $RPM_SOURCE_DIR/raw.service %{buildroot}%{_unitdir}
|
||||||
ln -sf ../..%{_sysconfdir}/init.d/raw %{buildroot}%{_sbindir}/rcraw
|
ln -sf service %{buildroot}%{_sbindir}/rcraw
|
||||||
# upstream moved getopt examples from datadir to docdir but we keep
|
# upstream moved getopt examples from datadir to docdir but we keep
|
||||||
# the old location because we would need to fix the manpage first
|
# the old location because we would need to fix the manpage first
|
||||||
mv %{buildroot}%{_docdir}/%{_name}/getopt %{buildroot}%{_datadir}/
|
mv %{buildroot}%{_docdir}/%{_name}/getopt %{buildroot}%{_datadir}/
|
||||||
@ -748,8 +746,11 @@ echo -e 'enable uuidd.socket\nenable uuidd.service' >%{buildroot}/usr/lib/system
|
|||||||
%fdupes -s %{buildroot}%{_prefix}
|
%fdupes -s %{buildroot}%{_prefix}
|
||||||
|
|
||||||
%if %build_util_linux
|
%if %build_util_linux
|
||||||
|
%pre
|
||||||
|
%{service_add_pre raw.service}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_and_insserv raw}
|
%{service_add_post raw.service}
|
||||||
%set_permissions %{_bindir}/wall %{_bindir}/write %{_bindir}/mount %{_bindir}/umount
|
%set_permissions %{_bindir}/wall %{_bindir}/write %{_bindir}/mount %{_bindir}/umount
|
||||||
%set_permissions %{_bindir}/su
|
%set_permissions %{_bindir}/su
|
||||||
# Safely migrate PAM files from coreutils to util-linux
|
# Safely migrate PAM files from coreutils to util-linux
|
||||||
@ -775,8 +776,11 @@ if [ -f etc/fstab ]; then
|
|||||||
sed -i 's:code=:codepage=:' etc/fstab
|
sed -i 's:code=:codepage=:' etc/fstab
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%{service_del_preun raw.service}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%{insserv_cleanup}
|
%{service_del_postun raw.service}
|
||||||
|
|
||||||
%verifyscript
|
%verifyscript
|
||||||
%verify_permissions -e %{_bindir}/wall -e %{_bindir}/write -e %{_bindir}/mount -e %{_bindir}/umount
|
%verify_permissions -e %{_bindir}/wall -e %{_bindir}/write -e %{_bindir}/mount -e %{_bindir}/umount
|
||||||
@ -860,7 +864,7 @@ fi
|
|||||||
%doc Documentation/modems-with-agetty.txt
|
%doc Documentation/modems-with-agetty.txt
|
||||||
%doc Documentation/mount.txt
|
%doc Documentation/mount.txt
|
||||||
%doc Documentation/pg.txt
|
%doc Documentation/pg.txt
|
||||||
%config %attr(744,root,root) %{_sysconfdir}/init.d/raw
|
%{_unitdir}/raw.service
|
||||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/raw
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/raw
|
||||||
%config(noreplace) %{_sysconfdir}/filesystems
|
%config(noreplace) %{_sysconfdir}/filesystems
|
||||||
%config(noreplace) %{_sysconfdir}/blkid.conf
|
%config(noreplace) %{_sysconfdir}/blkid.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user