- don't hardcode the node version in PLIST

breakage spotted by naddy@
fix from aaron bieber
This commit is contained in:
jasper 2012-06-08 05:54:04 +00:00
parent 011bac4f6e
commit d4828b4d48
4 changed files with 35 additions and 4 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/05/29 11:29:35 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2012/06/08 05:54:04 jasper Exp $
COMMENT = add-on for creating *nix daemons
NPM_VERSION = 0.5.1
NPM_NAME = daemon
CATEGORIES = sysutils devel
REVISION = 0
HOMEPAGE = https://github.com/indexzero/daemon.node/
@ -19,6 +20,6 @@ MODULES = lang/node
CONFIGURE_STYLE = npm ext
# Needs a new devel/node-vows
NO_REGRESS = Yes
NO_REGRESS = Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,17 @@
$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

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-lib_daemon_js,v 1.1 2012/06/08 05:54:04 jasper Exp $
--- lib/daemon.js.orig Thu Jun 7 14:29:46 2012
+++ lib/daemon.js Thu Jun 7 14:30:40 2012
@@ -9,7 +9,8 @@
var fs = require('fs'),
binding;
-binding = require('./daemon.' + process.version);
+// Remove version for OpenBSD PLIST Compatibility
+binding = require('./daemon');
var daemon = exports;

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/05/29 11:29:35 jasper Exp $
@comment $OpenBSD: PLIST,v 1.2 2012/06/08 05:54:04 jasper Exp $
lib/node_modules/daemon/
lib/node_modules/daemon/.lock-wscript
lib/node_modules/daemon/.npmignore
@ -20,7 +20,7 @@ lib/node_modules/daemon/examples/wrapper.js
lib/node_modules/daemon/install
lib/node_modules/daemon/lib/
lib/node_modules/daemon/lib/daemon.js
@bin lib/node_modules/daemon/lib/daemon.v0.6.18.node
@bin lib/node_modules/daemon/lib/daemon.node
lib/node_modules/daemon/package.json
lib/node_modules/daemon/src/
lib/node_modules/daemon/src/daemon.cc