openbsd-ports/sysutils/node-daemon/patches/patch-install
jasper d4828b4d48 - don't hardcode the node version in PLIST
breakage spotted by naddy@
fix from aaron bieber
2012-06-08 05:54:04 +00:00

18 lines
597 B
Plaintext

$OpenBSD: patch-install,v 1.1 2012/06/08 05:54:04 jasper Exp $
--- install.orig Thu Jun 7 14:24:08 2012
+++ install Thu Jun 7 14:24:46 2012
@@ -1,9 +1,9 @@
-#!/usr/bin/env bash
+#!/bin/sh
-version=`node -v`
+# remove version string for OpenBSD PLIST compat
node-waf configure build
if [ -f build/Release/daemon.node ]; then
- cp build/Release/daemon.node "lib/daemon.$version.node"
+ cp build/Release/daemon.node "lib/daemon.node"
elif [ -f build/default/daemon.node ]; then
- cp build/default/daemon.node "lib/daemon.$version.node"
+ cp build/default/daemon.node "lib/daemon.node"
fi