This is an automated email from the git hooks/post-receive script.

lucas pushed a commit to branch master
in repository marionnet.

commit 08334c30c96f6f7211db8ecc82c63743f407bd2c
Author: Lucas Nussbaum <lu...@debian.org>
Date:   Sat Oct 21 19:58:05 2017 +0200

    Add symlink to port-helper in $PATH
---
 debian/rules | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/debian/rules b/debian/rules
index 1b5be69..316e791 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
 %:
        dh $@ --with ocaml --with systemd
 
@@ -23,6 +25,14 @@ override_dh_auto_install:
                mv debian/marionnet/usr/sbin/marionnet-daemon.byte 
debian/marionnet/usr/sbin/marionnet-daemon ;\
                mv debian/marionnet/usr/bin/marionnet.byte 
debian/marionnet/usr/bin/marionnet ; \
        fi
+       # Add symlink in $PATH for port-helper. That's needed because the 
marionnet kernel
+       # call it directly
+       if [ "$(DEB_HOST_ARCH)" = "amd64" ]; then \
+               dh_link usr/lib64/uml/port-helper usr/bin/port-helper ; \
+       else \
+               dh_link usr/lib/uml/port-helper usr/bin/port-helper ; \
+       fi
+
 
 override_dh_auto_clean:
        dh_auto_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/marionnet.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to