|
|
@@ -68,7 +68,7 @@ PreReq: OpenPKG, openpkg >= 20140101
|
|
|
export GOPATH=`pwd`
|
|
|
cd $GOPATH/src/github.com/hlandau/acme
|
|
|
go build -x \
|
|
|
- -ldflags "-X github.com/hlandau/acme/hooks.DefaultPath=%{l_prefix}/libexec/acmetool \
|
|
|
+ -ldflags "-X github.com/hlandau/acme/hooks.DefaultPath=%{l_prefix}/var/acmetool/hook \
|
|
|
-X github.com/hlandau/acme/storage.RecommendedPath=%{l_prefix}/var/acmetool/data \
|
|
|
-X github.com/hlandau/degoutils/buildinfo.RawBuildInfo=XX" \
|
|
|
-o acmetool \
|
|
|
@@ -83,6 +83,7 @@ PreReq: OpenPKG, openpkg >= 20140101
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/acmetool \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/acmetool/hook \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/acmetool/data
|
|
|
|
|
|
# install program
|
|
|
@@ -98,7 +99,8 @@ PreReq: OpenPKG, openpkg >= 20140101
|
|
|
# determine installation files
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
%{l_files_std} \
|
|
|
- '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/acmetool/data'
|
|
|
+ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/acmetool/data' \
|
|
|
+ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/acmetool/hook'
|
|
|
|
|
|
%files -f files
|
|
|
|