From 5040ffb31d5c47dc2cbca8c3941d7dbdeabeebb3 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Mon, 22 Aug 2022 09:17:49 -0400 Subject: [PATCH] install systemd units for debbuild Signed-off-by: Lokesh Mandvekar --- podman.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/podman.spec b/podman.spec index 1c6f8ef..0808a50 100644 --- a/podman.spec +++ b/podman.spec @@ -1,4 +1,7 @@ %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 %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 %{?**}; @@ -381,11 +384,7 @@ cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/ %{_datadir}/fish/vendor_completions.d/%{name}.fish %{_unitdir}/%{name}* %{_userunitdir}/%{name}* -%if "%{_vendor}" == "debbuild" -%{_usr}/lib/tmpfiles.d/%{name}.conf -%else %{_tmpfilesdir}/%{name}.conf -%endif %if 0%{?fedora} >= 36 %{_modulesloaddir}/%{name}-iptables.conf %endif