|
|
@@ -68,7 +68,9 @@ PreReq: OpenPKG, openpkg >= 20140101
|
|
|
export GOPATH=`pwd`
|
|
|
cd $GOPATH/src/github.com/hlandau/acme
|
|
|
go build -x \
|
|
|
- -ldflags "-X github.com/hlandau/degoutils/buildinfo.RawBuildInfo=XX" \
|
|
|
+ -ldflags "-X github.com/hlandau/acme/hooks.DefaultPath=%{l_prefix}/libexec/acmetool \
|
|
|
+ -X github.com/hlandau/acme/storage.RecommendedPath=%{l_prefix}/var/acmetool/data \
|
|
|
+ -X github.com/hlandau/degoutils/buildinfo.RawBuildInfo=XX" \
|
|
|
-o acmetool \
|
|
|
cmd/acmetool/main.go \
|
|
|
cmd/acmetool/quickstart-nlinux.go \
|
|
|
@@ -79,7 +81,9 @@ PreReq: OpenPKG, openpkg >= 20140101
|
|
|
# create directory hierarchy
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/acmetool \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/acmetool/data
|
|
|
|
|
|
# install program
|
|
|
%{l_shtool} install -c -s -m 755 \
|
|
|
@@ -92,7 +96,9 @@ PreReq: OpenPKG, openpkg >= 20140101
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/
|
|
|
|
|
|
# determine installation files
|
|
|
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
+ %{l_files_std} \
|
|
|
+ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/acmetool/data'
|
|
|
|
|
|
%files -f files
|
|
|
|