Accepting request 637201 from network:cluster
- Add Requires(post): %fillup_prereq sed. (forwarded request 637200 from eeich) OBS-URL: https://build.opensuse.org/request/show/637201 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/conman?expand=0&rev=11
This commit is contained in:
commit
317c339c3f
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 22 13:30:56 UTC 2018 - eich@suse.com
|
||||||
|
|
||||||
|
- Add Requires(post): %fillup_prereq sed.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 23 10:01:18 UTC 2018 - eich@suse.com
|
Thu Aug 23 10:01:18 UTC 2018 - eich@suse.com
|
||||||
|
|
||||||
|
18
conman.spec
18
conman.spec
@ -66,6 +66,8 @@ BuildRequires: systemd
|
|||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
Requires(pre): shadow
|
Requires(pre): shadow
|
||||||
|
Requires(post): %fillup_prereq sed
|
||||||
|
Requires(postun): coreutils
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Patch1: conman-suse-fix-expect-scripts.patch
|
Patch1: conman-suse-fix-expect-scripts.patch
|
||||||
@ -141,15 +143,15 @@ mkdir -p %{buildroot}%{_tmpfilesdir}
|
|||||||
cat >> %{buildroot}%{_tmpfilesdir}/%{name}.conf <<EOF
|
cat >> %{buildroot}%{_tmpfilesdir}/%{name}.conf <<EOF
|
||||||
d %_localstatedir%_rundir/%{name} 0755 %{conman_u} %{conman_g} -
|
d %_localstatedir%_rundir/%{name} 0755 %{conman_u} %{conman_g} -
|
||||||
EOF
|
EOF
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/log/%{conmandir}
|
mkdir -p %{buildroot}%{_localstatedir}/log/%{?conmandir}
|
||||||
%endif
|
%endif
|
||||||
if ! grep "^SERVER" %{buildroot}/etc/conman.conf > /dev/null; then
|
if ! grep "^SERVER" %{buildroot}/etc/conman.conf > /dev/null; then
|
||||||
cat <<EOF >> %{buildroot}/etc/conman.conf
|
cat <<EOF >> %{buildroot}/etc/conman.conf
|
||||||
SERVER keepalive=ON
|
SERVER keepalive=ON
|
||||||
SERVER logdir="/var/log/%{conmandir}"
|
SERVER logdir="/var/log/%{?conmandir}"
|
||||||
SERVER logfile="/var/log/%{conmandir}conman.log"
|
SERVER logfile="/var/log/%{?conmandir}conman.log"
|
||||||
SERVER loopback=ON
|
SERVER loopback=ON
|
||||||
SERVER pidfile="/var/run/%{conmandir}conman.pid"
|
SERVER pidfile="/var/run/%{?conmandir}conman.pid"
|
||||||
SERVER tcpwrappers=ON
|
SERVER tcpwrappers=ON
|
||||||
SERVER timestamp=1h
|
SERVER timestamp=1h
|
||||||
GLOBAL seropts="115200,8n1"
|
GLOBAL seropts="115200,8n1"
|
||||||
@ -162,7 +164,7 @@ fi
|
|||||||
%pre
|
%pre
|
||||||
%service_add_pre conman.service
|
%service_add_pre conman.service
|
||||||
%if 0%{?conmandir:1}
|
%if 0%{?conmandir:1}
|
||||||
%define conman_home "%_localstatedir%_rundir/%conmandir"
|
%define conman_home "%_localstatedir%_rundir/%{?conmandir}"
|
||||||
%define conman_descr "Connection Manager service"
|
%define conman_descr "Connection Manager service"
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
addgrp=0; addusr=0
|
addgrp=0; addusr=0
|
||||||
@ -192,9 +194,9 @@ exit 0
|
|||||||
[ -d %_localstatedir/lib/conman ] || mkdir %_localstatedir/lib/conman || :
|
[ -d %_localstatedir/lib/conman ] || mkdir %_localstatedir/lib/conman || :
|
||||||
if [ $1 -eq 2 -a ! -e %_localstatedir/lib/conman/%migrated ]; then
|
if [ $1 -eq 2 -a ! -e %_localstatedir/lib/conman/%migrated ]; then
|
||||||
tmpfile=$(mktemp /tmp/tmp-XXXX)
|
tmpfile=$(mktemp /tmp/tmp-XXXX)
|
||||||
sed -e "s@^\(server\)\|\(SERVER\) \+logdir=.*@SERVER logdir=\"/var/log/%{conmandir}\"@" \
|
sed -e "s@^\(server\)\|\(SERVER\) \+logdir=.*@SERVER logdir=\"/var/log/%{?conmandir}\"@" \
|
||||||
-e "s@^\(server\)\|\(SERVER\) \+logfile=.*@SERVER logfile=\"/var/log/%{conmandir}conman.log\"@" \
|
-e "s@^\(server\)\|\(SERVER\) \+logfile=.*@SERVER logfile=\"/var/log/%{?conmandir}conman.log\"@" \
|
||||||
-e "s@^\(server\)\|\(SERVER\) \+pidfile=.*@SERVER pidfile=\"/var/run/%{conmandir}conman.pid\"@" \
|
-e "s@^\(server\)\|\(SERVER\) \+pidfile=.*@SERVER pidfile=\"/var/run/%{?conmandir}conman.pid\"@" \
|
||||||
< /etc/conman.conf > $tmpfile
|
< /etc/conman.conf > $tmpfile
|
||||||
if ! cmp /etc/conman.conf $tmpfile; then
|
if ! cmp /etc/conman.conf $tmpfile; then
|
||||||
mv /etc/conman.conf /etc/conman.conf.rpmsave
|
mv /etc/conman.conf /etc/conman.conf.rpmsave
|
||||||
|
Loading…
x
Reference in New Issue
Block a user