summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-06-21 14:25:09 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-06-21 14:25:09 +0300
commit3b1a81504cb67ec6b1477e1e409fdac86c9c3371 (patch)
tree8a3bf6edf6b9c9e16f519c4582c34d850951f1e6
parent546742e5e8544fb42aa65744d719100b5e32dee4 (diff)
downloadsudo-3b1a81504cb67ec6b1477e1e409fdac86c9c3371.tar.gz
systemd on linux only
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/sudo-ldap.dirs1
-rw-r--r--debian/sudo.dirs1
3 files changed, 4 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 9d1c693..3f29600 100755
--- a/debian/rules
+++ b/debian/rules
@@ -139,10 +139,14 @@ install: build-stamp
install -o root -g root -m 0440 debian/README \
debian/sudo-ldap/etc/sudoers.d/README
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+ mkdir -p debian/sudo/lib/systemd/system \
+ debian/sudo-ldap/lib/systemd/system
install -o root -g root -m 0644 debian/sudo.service \
debian/sudo/lib/systemd/system/sudo.service
install -o root -g root -m 0644 debian/sudo.service \
debian/sudo-ldap/lib/systemd/system/sudo.service
+endif
binary-indep: build install
diff --git a/debian/sudo-ldap.dirs b/debian/sudo-ldap.dirs
index 8b95431..7ed50f9 100644
--- a/debian/sudo-ldap.dirs
+++ b/debian/sudo-ldap.dirs
@@ -1,6 +1,5 @@
etc/pam.d
etc/sudoers.d
-lib/systemd/system
usr/bin
usr/share/man/man8
usr/share/man/man5
diff --git a/debian/sudo.dirs b/debian/sudo.dirs
index 96b5de3..d71655d 100644
--- a/debian/sudo.dirs
+++ b/debian/sudo.dirs
@@ -1,6 +1,5 @@
etc/pam.d
etc/sudoers.d
-lib/systemd/system
usr/bin
usr/share/man/man8
usr/share/man/man5