summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-11-02 21:08:19 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-11-02 21:08:19 +0400
commit4906b90a2d0a1ff40584a98f4c31a67585355d58 (patch)
tree6bdd1705a8163998f012e0df2776e113254b429e
parente367544fa81b45bb0f6bc78e9a721eedcc558f0f (diff)
downloadutil-linux-4906b90a2d0a1ff40584a98f4c31a67585355d58.tar.gz
configure for Dyson
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules30
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)