blob: 5be503546a33931bdd25eb72a81706ef8e61e847 (
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
|
#!/usr/bin/make -f
export FORCE_UNSAFE_CONFIGURE=1
d := debian/coreutils
%:
dh $@ --with autoreconf
override_dh_auto_configure:
dh_auto_configure -- \
--disable-gcc-warnings \
--disable-silent-rules
override_dh_auto_clean:
[ ! -f Makefile ] || dh_auto_clean
override_dh_install:
dh_install
# gnu thinks chroot is in bin, debian thinks it's in sbin
install -d $(d)/usr/sbin $(d)/usr/share/man/man8
mv $(d)/usr/bin/chroot $(d)/usr/sbin/chroot
sed s/\"1\"/\"8\"/1 $(d)/usr/share/man/man1/chroot.1 > $(d)/usr/share/man/man8/chroot.8
rm $(d)/usr/share/man/man1/chroot.1
# the [ program doesn't have its own man page yet
ln -s test.1 $(d)/usr/share/man/man1/[.1
# shipped with shadow:
rm -f $(d)/usr/bin/su $(d)/usr/share/man/man1/su.1
# unneeded
rm -rf $(d)/usr/share/locale/*/LC_TIME
# hostname is Debian native package:
rm -f $(d)/usr/bin/hostname $(d)/usr/share/man/man1/hostname.1
# Just a wrapper for uname -p, used by illumos-gate
install -o root -g root -m 0755 debian/mach \
$(d)/usr/bin/mach
|