forked from pool/varnish
Accepting request 544987 from server:http
Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468) (forwarded request 544794 from RBrownSUSE) OBS-URL: https://build.opensuse.org/request/show/544987 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/varnish?expand=0&rev=23
This commit is contained in:
commit
27db1bcee4
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 23 13:50:41 UTC 2017 - rbrown@suse.com
|
||||
|
||||
- Replace references to /var/adm/fillup-templates with new
|
||||
%_fillupdir macro (boo#1069468)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 23 19:42:07 UTC 2017 - antoine.belvire@opensuse.org
|
||||
|
||||
|
@ -16,6 +16,11 @@
|
||||
#
|
||||
|
||||
|
||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||
%if ! %{defined _fillupdir}
|
||||
%define _fillupdir /var/adm/fillup-templates
|
||||
%endif
|
||||
|
||||
%define library_name libvarnishapi1
|
||||
%define pkg_home %_localstatedir/lib/%name
|
||||
%define pkg_logdir %_localstatedir/log/%name
|
||||
@ -120,7 +125,7 @@ install -dm 0755 "$b"/{%pkg_logdir,%pkg_home};
|
||||
install -Dpm 0644 "%{S:5}" "$b/%_sysconfdir/logrotate.d/varnish";
|
||||
#
|
||||
##init scripts
|
||||
install -Dpm 0644 "%{S:3}" "$b%_localstatedir/adm/fillup-templates/sysconfig.%name";
|
||||
install -Dpm 0644 "%{S:3}" "$b%{_fillupdir}/sysconfig.%name";
|
||||
install -Dpm 0644 "%{S:7}" "$b/%_unitdir/varnish.service";
|
||||
install -Dpm 0644 "%{S:8}" "$b/%_unitdir/varnishlog.service";
|
||||
mkdir -p "$b/%_sbindir";
|
||||
@ -182,7 +187,7 @@ fi
|
||||
%dir %attr(0750,varnish,varnish) %pkg_home
|
||||
%dir %attr(0750,varnish,varnish) %pkg_cachedir
|
||||
%dir %attr(0750,varnish,varnish) %pkg_logdir
|
||||
%_localstatedir/adm/fillup-templates/sysconfig.%name
|
||||
%{_fillupdir}/sysconfig.%name
|
||||
|
||||
%files -n %library_name
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
Reference in New Issue
Block a user