summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules39
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0178d2f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,39 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure --builddir=build-deb
+ dh_auto_configure --builddir=build-udeb -- --disable-gssapi
+
+override_dh_auto_build:
+ dh_auto_build --builddir=build-deb
+ dh_auto_build --builddir=build-udeb
+
+override_dh_auto_install:
+ dh_auto_install --builddir=build-deb
+ dh_auto_install --builddir=build-udeb
+
+override_dh_auto_install:
+ dh_auto_install --builddir=build-deb
+ dh_auto_install --builddir=build-udeb --destdir=debian/tmp-udeb
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+override_dh_install:
+ # Move libtirpc.so.* to /lib
+ mkdir -p debian/tmp/lib/$(DEB_HOST_MULTIARCH)
+ mv debian/tmp/usr/lib/*/libtirpc.so.* debian/tmp/lib/$(DEB_HOST_MULTIARCH)
+
+ # Fix up the -dev symlink
+ LINKTARGET=`readlink debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so`; \
+ ln -sf /lib/$(DEB_HOST_MULTIARCH)/$$LINKTARGET debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so
+
+ dh_install -Nlibtirpc3-udeb
+ dh_install -plibtirpc3-udeb --sourcedir=debian/tmp-udeb
+
+override_dh_auto_clean:
+ rm -rf build-deb build-udeb
+ rm -rf debian/tmp-udeb