install systemd units for debbuild
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
8a2abf2a29
commit
5040ffb31d
@ -1,4 +1,7 @@
|
|||||||
%if "%{_vendor}" == "debbuild"
|
%if "%{_vendor}" == "debbuild"
|
||||||
|
%global _unitdir %{_usr}/lib/systemd/system
|
||||||
|
%global _userunitdir %{_usr}/lib/systemd/user
|
||||||
|
%global _tmpfilesdir %{_usr}/lib/tmpfiles.d
|
||||||
# Older distros don't work yet
|
# Older distros don't work yet
|
||||||
%if (0%{?debian} && 0%{?debian} <= 11) || (0%{?ubuntu} && 0%{?ubuntu} < 2204)
|
%if (0%{?debian} && 0%{?debian} <= 11) || (0%{?ubuntu} && 0%{?ubuntu} < 2204)
|
||||||
%define gobuild(o:) GO111MODULE=off %{_prefix}/lib/go-1.16/bin/go build -buildmode pie -tags=" ${BUILDTAGS:-}" -a -v -x %{?**};
|
%define gobuild(o:) GO111MODULE=off %{_prefix}/lib/go-1.16/bin/go build -buildmode pie -tags=" ${BUILDTAGS:-}" -a -v -x %{?**};
|
||||||
@ -381,11 +384,7 @@ cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
|
|||||||
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||||
%{_unitdir}/%{name}*
|
%{_unitdir}/%{name}*
|
||||||
%{_userunitdir}/%{name}*
|
%{_userunitdir}/%{name}*
|
||||||
%if "%{_vendor}" == "debbuild"
|
|
||||||
%{_usr}/lib/tmpfiles.d/%{name}.conf
|
|
||||||
%else
|
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%endif
|
|
||||||
%if 0%{?fedora} >= 36
|
%if 0%{?fedora} >= 36
|
||||||
%{_modulesloaddir}/%{name}-iptables.conf
|
%{_modulesloaddir}/%{name}-iptables.conf
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user