summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..cdc69f7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+%:
+ dh ${@}
+
+override_dh_auto_install:
+ dh_auto_install -- DESTDIR=$(CURDIR)/debian/kinet-base-system
+
+execute_after_dh_auto_install:
+ # shutdown
+ mkdir -p debian/kinet-container/sbin
+ for FILE in halt poweroff reboot shutdown coldreboot; \
+ do \
+ cp debian/local/shutdown debian/kinet-container/sbin/$${FILE}; \
+ done
+
+ mkdir -p debian/kinet-container/usr/sbin
+ for FILE in pm-hibernate pm-suspend pm-suspend-hybrid; \
+ do \
+ cp debian/local/shutdown debian/kinet-container/usr/sbin/$${FILE}; \
+ done
+
+ mkdir -p debian/kinet-container/usr/share/container
+ cp debian/local/shutdown.txt debian/kinet-container/usr/share/container
+
+ # removing useless files
+ rm -f debian/tmp/usr/share/doc/*/CHANGELOG.txt
+ rm -f debian/tmp/usr/share/doc/*/LICENSE.txt
+ rm -f debian/tmp/usr/share/doc/*/VERSION.txt