blob: 904a9311c495dcd027f18e7e2943037d6da4416c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/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
execute_after_dh_install:
if command -v dh_movetousr > /dev/null 2>&1; then dh_movetousr; fi
|