Introduced new systemd-rpm macros in squid spec file. (#850326)
This commit is contained in:
parent
609595bf80
commit
8a87657656
17
squid.spec
17
squid.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 3.2.1
|
Version: 3.2.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Squid proxy caching server
|
Summary: The Squid proxy caching server
|
||||||
Epoch: 7
|
Epoch: 7
|
||||||
# See CREDITS for breakdown of non GPLv2+ code
|
# See CREDITS for breakdown of non GPLv2+ code
|
||||||
@ -282,19 +282,13 @@ done
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_post squid.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ] ; then
|
%systemd_preun squid.service
|
||||||
/bin/systemctl disable squid.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop squid.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart squid.service
|
||||||
if [ "$1" -ge "1" ] ; then
|
|
||||||
/bin/systemctl try-restart squid.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%triggerin -- samba-common
|
%triggerin -- samba-common
|
||||||
if ! getent group wbpriv >/dev/null 2>&1 ; then
|
if ! getent group wbpriv >/dev/null 2>&1 ; then
|
||||||
@ -311,6 +305,9 @@ fi
|
|||||||
/sbin/chkconfig --add squid >/dev/null 2>&1 || :
|
/sbin/chkconfig --add squid >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 05 2012 Tomas Hozza <thozza@redhat.com> - 7:3.2.1-2
|
||||||
|
- Introduced new systemd-rpm macros in squid spec file. (#850326)
|
||||||
|
|
||||||
* Wed Aug 29 2012 Michal Luscon <mluscon@redhat.com> - 7:3.2.1-1
|
* Wed Aug 29 2012 Michal Luscon <mluscon@redhat.com> - 7:3.2.1-1
|
||||||
- Update to latest upstream 3.2.1
|
- Update to latest upstream 3.2.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user