diff options
-rw-r--r-- | debian/control | 1 | ||||
-rwxr-xr-x | debian/rules | 30 |
2 files changed, 30 insertions, 1 deletions
diff --git a/debian/control b/debian/control index 24e8ddb..722cd9c 100644 --- a/debian/control +++ b/debian/control @@ -1,6 +1,7 @@ Source: util-linux Section: base Priority: required +Build-Depends: dh-autoreconf, debhelper (>= 9) Standards-Version: 3.7.4 Maintainer: Igor Pashev <pashev.igor@gmail.com> diff --git a/debian/rules b/debian/rules index abde6ef..eaea0cd 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,33 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk + +confopts := \ + --disable-makeinstall-chown + +ifeq (illumos,$(DEB_HOST_ARCH_OS)) + confopts += \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --disable-cramfs \ + --disable-fallocate \ + --disable-fsck \ + --disable-kill \ + --disable-losetup \ + --disable-mount \ + --disable-mountpoint \ + --disable-partx \ + --disable-pivot_root \ + --disable-switch_root \ + --disable-unshare \ + --disable-wall \ + --without-udev \ + +endif + %: - dh $@ + dh $@ --with autoreconf +override_dh_auto_configure: + dh_auto_configure -- $(confopts) |