gnu: miniupnpc: Use the correct ‘upnpc’ in ‘external-ip’.
authorTobias Geerinckx-Rice <me@tobias.gr>
Thu, 24 Nov 2016 17:48:15 +0000 (18:48 +0100)
committerTobias Geerinckx-Rice <me@tobias.gr>
Fri, 25 Nov 2016 01:21:51 +0000 (02:21 +0100)
* gnu/packages/upnp.scm (miniupnpc)[arguments]: Add ‘qualify-paths’ phase.

gnu/packages/upnp.scm

index 35bacc7..ffb671b 100644 (file)
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2014 Sree Harsha Totakura <sreeharsha@totakura.in>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
                        (assoc-ref %outputs "out") "/lib"))
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure))))
+         (delete 'configure)
+         (add-before 'install 'qualify-paths
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "external-ip.sh"
+               (("upnpc")
+                (string-append (assoc-ref outputs "out") "/bin/upnpc"))))))))
     (home-page "http://miniupnp.free.fr/")
     (synopsis "Library implementing the client side UPnP protocol")
     (description