cups.spec: Uses better sed and note what has to be migrated
This commit is contained in:
parent
5db0c56b2c
commit
d37674e79d
@ -439,8 +439,6 @@ s:.*\('%{_datadir}'/\)\([^/_]\+\)\(.*\.po$\):%lang(\2) \1\2\3:
|
||||
' > %{name}.lang
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.path %{name}.socket %{name}.service
|
||||
|
||||
# remove this after F36 is EOL
|
||||
# - previously the file was empty by default, so check whether the directive exists
|
||||
# and if not, add the directive+value
|
||||
@ -460,8 +458,11 @@ grep '^\s*DigestOptions' %{_sysconfdir}/cups/client.conf &> /dev/null || echo 'D
|
||||
# the ending tag, print the whole pattern buffer. The buffer is checked for AuthType and Require directives.
|
||||
# If they already exist, we don't add anything. cupsd.conf.rpmsave is created as a backup.
|
||||
sed -ne '/^\s*<Location \/admin>/ { :loop; /<\/Location>/ ! {N; b loop}; p }' %{_sysconfdir}/cups/cupsd.conf \
|
||||
| grep -E '^\s*(AuthType|Require)' &> /dev/null || cp %{_sysconfdir}/cups/cupsd.conf{,.rpmsave} && \
|
||||
sed -i '/^\s*<Location \/admin>/a\ AuthType Default\n Require user @SYSTEM' %{_sysconfdir}/cups/cupsd.conf
|
||||
| grep -E '^\s*(AuthType|Require)' &> /dev/null || \
|
||||
sed -i.rpmsave '/^\s*<Location \/admin>/a\ AuthType Default\n Require user @SYSTEM' %{_sysconfdir}/cups/cupsd.conf
|
||||
|
||||
# required for systemd units
|
||||
%systemd_post %{name}.path %{name}.socket %{name}.service
|
||||
|
||||
%post client
|
||||
%if %{use_alternatives}
|
||||
|
6
leapp_upgrades
Normal file
6
leapp_upgrades
Normal file
@ -0,0 +1,6 @@
|
||||
Changes in specific releases which need a migration
|
||||
===================================================
|
||||
|
||||
CUPS 2.5
|
||||
|
||||
- CUPS-Get-Document needs Auth - a new <Limit> scope in cupsd.conf will have to be migrated - commit https://github.com/OpenPrinting/cups/commit/a0c8b9c9556882f00c68b9727a95a1b6d1452913
|
Loading…
Reference in New Issue
Block a user