summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-10-25 13:13:01 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-10-25 13:13:01 +0000
commit07357f5916ea7380a6008b6e29d50c1889311491 (patch)
treed9f0c5fa35941b7484aaf575cc1aac90d7ac4b20 /Makefile
parentReleasing debian version 20160801-1. (diff)
downloadopen-infrastructure-compute-tools-07357f5916ea7380a6008b6e29d50c1889311491.tar.xz
open-infrastructure-compute-tools-07357f5916ea7380a6008b6e29d50c1889311491.zip
Merging upstream version 20161101.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e61c559..94289f2 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,11 @@ install: build
mkdir -p $(DESTDIR)/usr/share/bash-completion/completions
cp -r share/bash-completion/* $(DESTDIR)/usr/share/bash-completion/completions
- mkdir -p $(DESTDIR)/usr/share/doc/$(SOFTWARE)
+ mkdir -p $(DESTDIR)/etc/sudoers.d
+ cp -r share/sudo/* $(DESTDIR)/etc/sudoers.d
+ chmod 0440 $(DESTDIR)/etc/sudoers.d/*
+
+ mkdir -p $(DESTDIR)/usr/share/doc
cp -r share/doc $(DESTDIR)/usr/share/doc/$(SOFTWARE)
for SECTION in $$(seq 1 8); \
@@ -124,6 +128,11 @@ uninstall:
rm -f $(DESTDIR)/usr/share/man/man1/cntsh.1
rm -f ${DESTDIR}/usr/share/bash-completion/completions/cnt
+ for FILE in share/sudo/*; \
+ do \
+ rm -f $(DESTDIR)/etc/sudoers.d/$$(basename $${FILE}); \
+ done
+
for FILE in share/bash-completion/*; \
do \
rm -f $(DESTDIR)/usr/share/bash-completion/completions/$$(basename $${FILE}); \