#!/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