diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6ec1ace --- /dev/null +++ b/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +SHELL := sh -e + +%: + dh ${@} + +override_dh_auto_install: + dh_auto_install -- DESTDIR=$(CURDIR)/debian/progress-linux-base-system + +execute_after_dh_auto_install: + # shutdown + mkdir -p debian/progress-linux-container/sbin + for FILE in halt poweroff reboot shutdown coldreboot; \ + do \ + cp debian/local/shutdown debian/progress-linux-container/sbin/$${FILE}; \ + done + + mkdir -p debian/progress-linux-container/usr/sbin + for FILE in pm-hibernate pm-suspend pm-suspend-hybrid; \ + do \ + cp debian/local/shutdown debian/progress-linux-container/usr/sbin/$${FILE}; \ + done + + mkdir -p debian/progress-linux-container/usr/share/container + cp debian/local/shutdown.txt debian/progress-linux-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 |