summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0ec6b3a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#! /usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ ./autogen.sh
+ dh_auto_configure -- --sbindir=/sbin
+
+override_dh_auto_install:
+ dh_auto_install
+ mkdir -p debian/ethtool/etc/network/if-pre-up.d
+ install debian/ethtool.if-pre-up debian/ethtool/etc/network/if-pre-up.d/ethtool
+ mkdir -p debian/ethtool/etc/network/if-up.d
+ install debian/ethtool.if-up debian/ethtool/etc/network/if-up.d/ethtool
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -f INSTALL Makefile.in aclocal.m4 compile configure depcomp ethtool-config.h.in install-sh missing test-driver
+
+override_dh_installchangelogs:
+ dh_installchangelogs -XChangeLog