blob: 97ff09fc6657a493ef05a4f3e1efc742b455978d (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/usr/bin/make -f
tmp=debian/tmp
tmponly=debian/only-etcfiles
clean:
rm -f debian/files debian/substvars
rm -rf debian/tmp
rm -rf debian/only-etcfiles
build:
build-arch:
build-indep:
binary-indep:
install -d $(tmp)/etc
install -m 644 proper $(tmp)/etc
install -m 644 improper $(tmp)/etc
mkdir $(tmp)/etc/cron.daily
touch $(tmp)/etc/cron.daily/cronfile-normal
touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop
touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop
ln $(tmp)/etc/improper $(tmp)/etc/improper-link
install -d $(tmp)/usr/share/doc/etcfiles
install -d $(tmp)/var/lib
install -m 644 proper $(tmp)/var/lib/foo
install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles
install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles
#gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog
install -d $(tmp)/DEBIAN
install -m 644 debian/conffiles $(tmp)/DEBIAN
echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \
> debian/tmp/DEBIAN/md5sums
echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \
>> debian/tmp/DEBIAN/md5sums
echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \
>> debian/tmp/DEBIAN/md5sums
echo '05c72cacce994208128b7d081116b04a ./etc/proper' \
>> debian/tmp/DEBIAN/md5sums
echo 'ab371382468880299e5ebd05921764ce etc/improper' \
>> debian/tmp/DEBIAN/md5sums
echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \
>> debian/tmp/DEBIAN/md5sums
echo 'this is a malformed line' \
>> debian/tmp/DEBIAN/md5sums
echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \
>> debian/tmp/DEBIAN/md5sums
install -d $(tmponly)/etc/etcfiles
touch $(tmponly)/etc/etcfiles/foo
touch $(tmponly)/etc/etcfiles/bar
install -d $(tmponly)/usr/share/doc
cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles
install -d $(tmponly)/DEBIAN
install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles
dpkg-gencontrol -isp -petcfiles
dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly)
dpkg --build $(tmp) ..
dpkg --build $(tmponly) ..
binary: binary-indep
.PHONY: binary-indep binary clean
|