Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

4
lang/nodejs4/DESCR Normal file
View File

@@ -0,0 +1,4 @@
Node.js is an evented I/O framework for the V8 JavaScript engine. It is
intended for writing scalable network programs such as web servers.
This package holds the 4.x LTS release.

6
lang/nodejs4/Makefile Normal file
View File

@@ -0,0 +1,6 @@
# $NetBSD: Makefile,v 1.20 2016/09/28 11:09:47 fhajny Exp $
DISTNAME= node-v4.6.0
.include "../../lang/nodejs/Makefile.common"
.include "../../mk/bsd.pkg.mk"

2535
lang/nodejs4/PLIST Normal file

File diff suppressed because it is too large Load Diff

24
lang/nodejs4/distinfo Normal file
View File

@@ -0,0 +1,24 @@
$NetBSD: distinfo,v 1.18 2016/09/28 11:09:47 fhajny Exp $
SHA1 (node-v4.6.0.tar.gz) = 6a5e2e733bf306414b5958e38ac365aa7dc17ca4
RMD160 (node-v4.6.0.tar.gz) = 0c9c4515b3ed5f12986a19966786fc0a972d1ed5
SHA512 (node-v4.6.0.tar.gz) = b6797c19859ee061ebb303df3e23026daf22a03d6c270da8c515331b432f304af3dd41d8188ce5c085c13025f2e83bcd3c7ec7a2d2dd5a20a85072c07a30e097
Size (node-v4.6.0.tar.gz) = 22746881 bytes
SHA1 (patch-common.gypi) = 5b3a50617358637a6f910de28bb5a14f037317a6
SHA1 (patch-deps_cares_cares.gyp) = 2235eb44bc984fa2e745fdf1786f1ae6de6ef80f
SHA1 (patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_generator_make.py) = 78d6ddd37ae30e869e0da666a78baad86a638c50
SHA1 (patch-deps_uv_common.gypi) = ba9caa1f6d9d6df1913d0d72a8d18ea6db0a32ff
SHA1 (patch-deps_v8_src_arm_cpu-arm.cc) = 854a7b0c6392d4568066b961da0958073b7ac62e
SHA1 (patch-deps_v8_src_base_atomicops.h) = 65b6508f5260ae672b9efc5672ba2c93223355ff
SHA1 (patch-deps_v8_src_base_atomicops__internals__arm__gcc.h) = 39ba63d8c397c7f076c108173f1ee2b5839ad4d6
SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = 686c2054838a25cfeed7fb9870a959e48dc4de35
SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 0abf6a541f24da87dbbd22f57abcd5534999b3df
SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = eff609b75125dab536934bd8afa640955dcee674
SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = dd8cafadd2668f069dab8625f57fbd71a304db3e
SHA1 (patch-deps_v8_src_types.h) = 1c122245079b3ce0c6fe3f1644d28102fb2eb456
SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
SHA1 (patch-src_cares__wrap.cc) = d9510afd0cd4b0156a604d9197d9f97d6e3b291f
SHA1 (patch-src_node.cc) = 41149d788120a8992058869a011b4f3d52b44d08
SHA1 (patch-tools_gyp_pylib_gyp_common.py) = 132008f362ea696e43a4d19bf9d8a0ac754ef55c
SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = be3cc1aaa85c3d59b6f2758df813cb5ad8d8f74e
SHA1 (patch-tools_install.py) = c94305596fc7961cab00a147317350954bdbf547

34
lang/nodejs4/options.mk Normal file
View File

@@ -0,0 +1,34 @@
# $NetBSD: options.mk,v 1.2 2016/03/09 20:18:38 fhajny Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.node
PKG_SUPPORTED_OPTIONS= openssl dtrace icu
PKG_SUGGESTED_OPTIONS= openssl
.if (${OPSYS} == "SunOS" || ${OPSYS} == "Darwin") \
&& exists(/usr/sbin/dtrace)
PKG_SUGGESTED_OPTIONS+= dtrace
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= dtrace
.if !empty(PKG_OPTIONS:Mdtrace)
CONFIGURE_ARGS+= --with-dtrace
PLIST.dtrace= yes
.else
CONFIGURE_ARGS+= --without-dtrace
.endif
.if !empty(PKG_OPTIONS:Micu)
CONFIGURE_ARGS+= --with-intl=system-icu
.include "../../textproc/icu/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mopenssl)
BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0.2
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --shared-openssl
.else
CONFIGURE_ARGS+= --without-ssl
.endif

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-common.gypi,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Add support for NetBSD.
--- common.gypi.orig 2015-09-08 15:30:34.000000000 +0000
+++ common.gypi
@@ -221,7 +221,7 @@
'cflags': [ '-pthread', ],
'ldflags': [ '-pthread' ],
}],
- [ 'OS in "linux freebsd openbsd solaris android aix"', {
+ [ 'OS in "linux freebsd openbsd solaris android aix netbsd"', {
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++0x' ],
'ldflags': [ '-rdynamic' ],

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-deps_cares_cares.gyp,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Add support for NetBSD.
--- deps/cares/cares.gyp.orig 2013-03-14 10:55:24.000000000 +0900
+++ deps/cares/cares.gyp 2013-03-14 10:55:47.000000000 +0900
@@ -140,6 +140,10 @@
'include_dirs': [ 'config/freebsd' ],
'sources': [ 'config/freebsd/ares_config.h' ]
}],
+ [ 'OS=="netbsd"', {
+ 'include_dirs': [ 'config/netbsd' ],
+ 'sources': [ 'config/netbsd/ares_config.h' ]
+ }],
[ 'OS=="openbsd"', {
'include_dirs': [ 'config/openbsd' ],
'sources': [ 'config/openbsd/ares_config.h' ]

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_generator_make.py,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Ensure we use the system libtool on OSX.
--- deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py.orig 2013-06-13 17:35:30.000000000 +0000
+++ deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
@@ -161,7 +161,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -
LINK_COMMANDS_MAC = """\
quiet_cmd_alink = LIBTOOL-STATIC $@
-cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
+cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool /usr/bin/libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-deps_uv_common.gypi,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Add support for NetBSD.
--- deps/uv/common.gypi.orig 2015-03-31 22:13:01.000000000 +0000
+++ deps/uv/common.gypi
@@ -128,7 +128,7 @@
}]
]
}],
- ['OS in "freebsd dragonflybsd linux openbsd solaris android"', {
+ ['OS in "freebsd dragonflybsd linux openbsd solaris android netbsd"', {
'cflags': [ '-Wall' ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
'target_conditions': [

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-deps_v8_src_arm_cpu-arm.cc,v 1.1 2015/11/09 20:21:51 fhajny Exp $
--- deps/v8/src/arm/cpu-arm.cc.orig 2015-10-13 17:20:07.000000000 +0000
+++ deps/v8/src/arm/cpu-arm.cc
@@ -7,6 +7,9 @@
#ifdef __QNXNTO__
#include <sys/mman.h> // for cache flushing.
#undef MAP_TYPE
+#elif defined(__NetBSD__)
+#include <sys/types.h>
+#include <machine/sysarch.h> // for cache flushing.
#else
#include <sys/syscall.h> // for cache flushing.
#endif
@@ -40,6 +43,10 @@ void CpuFeatures::FlushICache(void* star
#elif V8_OS_QNX
msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE);
+#elif defined(__NetBSD__)
+ struct arm_sync_icache_args args = { .addr = (uintptr_t)start, .len = size };
+ sysarch(ARM_SYNC_ICACHE, (void *)&args);
+
#else
register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start);
register uint32_t end asm("r1") = beg + size;

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-deps_v8_src_base_atomicops.h,v 1.1 2015/11/09 20:21:51 fhajny Exp $
--- deps/v8/src/base/atomicops.h.orig 2015-10-13 17:20:07.000000000 +0000
+++ deps/v8/src/base/atomicops.h
@@ -54,9 +54,13 @@ typedef intptr_t Atomic64;
#endif // defined(V8_HOST_ARCH_64_BIT)
#endif // defined(__native_client__)
+#if defined(__NetBSD__) && defined(__arm__)
+typedef int32_t AtomicWord;
+#else
// Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or
// Atomic64 routines below, depending on your architecture.
typedef intptr_t AtomicWord;
+#endif
// Atomically execute:
// result = *ptr;

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-deps_v8_src_base_atomicops__internals__arm__gcc.h,v 1.1 2015/11/09 20:21:51 fhajny Exp $
--- deps/v8/src/base/atomicops_internals_arm_gcc.h.orig 2015-10-13 17:20:07.000000000 +0000
+++ deps/v8/src/base/atomicops_internals_arm_gcc.h
@@ -13,6 +13,11 @@
#include <sys/cpuinline.h>
#endif
+#if defined(__NetBSD__)
+#include <sys/types.h>
+#include <machine/sysarch.h>
+#endif
+
namespace v8 {
namespace base {
@@ -50,6 +55,8 @@ inline void MemoryBarrier() {
((KernelMemoryBarrierFunc)0xffff0fa0)();
#elif defined(__QNXNTO__)
__cpu_membarrier();
+#elif defined(__NetBSD__)
+ sysarch(ARM_DRAIN_WRITEBUF, (void *)0);
#else
#error MemoryBarrier() is not implemented on this platform.
#endif

View File

@@ -0,0 +1,32 @@
$NetBSD: patch-deps_v8_src_base_platform_platform-freebsd.cc,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Overlapping variables, taken from https://github.com/joyent/node/issues/9175
--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2015-05-23 03:06:54.000000000 +0000
+++ deps/v8/src/base/platform/platform-freebsd.cc
@@ -122,10 +122,10 @@ static unsigned StringToLong(char* buffe
std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
- std::vector<SharedLibraryAddress> result;
+ std::vector<SharedLibraryAddress> address_result;
static const int MAP_LENGTH = 1024;
int fd = open("/proc/self/maps", O_RDONLY);
- if (fd < 0) return result;
+ if (fd < 0) return address_result;
while (true) {
char addr_buffer[11];
addr_buffer[0] = '0';
@@ -156,10 +156,10 @@ std::vector<OS::SharedLibraryAddress> OS
// There may be no filename in this line. Skip to next.
if (start_of_path == NULL) continue;
buffer[bytes_read] = 0;
- result.push_back(SharedLibraryAddress(start_of_path, start, end));
+ address_result.push_back(SharedLibraryAddress(start_of_path, start, end));
}
close(fd);
- return result;
+ return address_result;
}

View File

@@ -0,0 +1,53 @@
$NetBSD: patch-deps_v8_src_base_platform_platform-openbsd.cc,v 1.1 2015/11/09 20:21:51 fhajny Exp $
--- deps/v8/src/base/platform/platform-openbsd.cc.orig 2015-10-13 17:20:07.000000000 +0000
+++ deps/v8/src/base/platform/platform-openbsd.cc
@@ -34,6 +34,48 @@
namespace v8 {
namespace base {
+#ifdef __arm__
+
+bool OS::ArmUsingHardFloat() {
+ // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify
+ // the Floating Point ABI used (PCS stands for Procedure Call Standard).
+ // We use these as well as a couple of other defines to statically determine
+ // what FP ABI used.
+ // GCC versions 4.4 and below don't support hard-fp.
+ // GCC versions 4.5 may support hard-fp without defining __ARM_PCS or
+ // __ARM_PCS_VFP.
+
+#define GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100 \
+ + __GNUC_PATCHLEVEL__)
+#if GCC_VERSION >= 40600
+#if defined(__ARM_PCS_VFP)
+ return true;
+#else
+ return false;
+#endif
+
+#elif GCC_VERSION < 40500
+ return false;
+
+#else
+#if defined(__ARM_PCS_VFP)
+ return true;
+#elif defined(__ARM_PCS) || defined(__SOFTFP__) || defined(__SOFTFP) || \
+ !defined(__VFP_FP__)
+ return false;
+#else
+#error "Your version of GCC does not report the FP ABI compiled for." \
+ "Please report it on this issue" \
+ "http://code.google.com/p/v8/issues/detail?id=2140"
+
+#endif
+#endif
+#undef GCC_VERSION
+}
+
+#endif // def __arm__
+
const char* OS::LocalTimezone(double time, TimezoneCache* cache) {
if (std::isnan(time)) return "";

View File

@@ -0,0 +1,39 @@
$NetBSD: patch-deps_v8_src_base_platform_platform-posix.cc,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Use sysconf(_SC_THREAD_STACK_MIN) instead of PTHREAD_STACK_MIN.
Cast explicitly.
--- deps/v8/src/base/platform/platform-posix.cc.orig 2015-09-08 15:30:38.000000000 +0000
+++ deps/v8/src/base/platform/platform-posix.cc
@@ -329,6 +329,8 @@ int OS::GetCurrentThreadId() {
return static_cast<int>(syscall(__NR_gettid));
#elif V8_OS_ANDROID
return static_cast<int>(gettid());
+#elif V8_OS_NETBSD || V8_OS_FREEBSD
+ return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
#elif V8_OS_AIX
return static_cast<int>(thread_self());
#elif V8_OS_SOLARIS
@@ -535,8 +537,13 @@ Thread::Thread(const Options& options)
: data_(new PlatformData),
stack_size_(options.stack_size()),
start_semaphore_(NULL) {
+#if defined(__NetBSD__)
+ if (stack_size_ > 0 && static_cast<size_t>(stack_size_) < sysconf(_SC_THREAD_STACK_MIN)) {
+ stack_size_ = sysconf(_SC_THREAD_STACK_MIN);
+#else
if (stack_size_ > 0 && static_cast<size_t>(stack_size_) < PTHREAD_STACK_MIN) {
stack_size_ = PTHREAD_STACK_MIN;
+#endif
}
set_name(options.name());
}
@@ -552,7 +559,7 @@ static void SetThreadName(const char* na
pthread_set_name_np(pthread_self(), name);
#elif V8_OS_NETBSD
STATIC_ASSERT(Thread::kMaxThreadNameLength <= PTHREAD_MAX_NAMELEN_NP);
- pthread_setname_np(pthread_self(), "%s", name);
+ pthread_setname_np(pthread_self(), "%s", (void *)name);
#elif V8_OS_MACOSX
// pthread_setname_np is only available in 10.6 or later, so test
// for it at runtime.

View File

@@ -0,0 +1,26 @@
$NetBSD: patch-deps_v8_src_base_platform_semaphore.cc,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Work around lack of sem_timedwait(3) in NetBSD < 6.99.4.
Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources.
--- deps/v8/src/base/platform/semaphore.cc.orig 2015-09-08 15:30:38.000000000 +0000
+++ deps/v8/src/base/platform/semaphore.cc
@@ -11,6 +11,10 @@
#include <errno.h>
+#if V8_OS_NETBSD
+#include <sys/param.h> // for __NetBSD_Version__
+#endif
+
#include "src/base/logging.h"
#include "src/base/platform/elapsed-timer.h"
#include "src/base/platform/time.h"
@@ -107,7 +111,7 @@ void Semaphore::Wait() {
bool Semaphore::WaitFor(const TimeDelta& rel_time) {
-#if V8_OS_NACL
+#if defined(V8_OS_NACL) || (defined(V8_OS_NETBSD) && (__NetBSD_Version__ - 0 < 699000400))
// PNaCL doesn't support sem_timedwait, do ugly busy waiting.
ElapsedTimer timer;
timer.Start();

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-deps_v8_src_types.h,v 1.1 2015/11/09 20:21:51 fhajny Exp $
NetBSD 6 doesn't have nearbyint.
--- deps/v8/src/types.h.orig 2015-09-08 15:30:40.000000000 +0000
+++ deps/v8/src/types.h
@@ -10,6 +10,13 @@
#include "src/handles.h"
#include "src/ostreams.h"
+#ifdef __NetBSD__
+#include <sys/param.h>
+#if __NetBSD_Version__ - 0 < 699001700
+#define nearbyint rint
+#endif
+#endif
+
namespace v8 {
namespace internal {

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-deps_v8_tools_run-llprof.sh,v 1.1 2015/11/09 20:21:51 fhajny Exp $
POSIX shell portability.
--- deps/v8/tools/run-llprof.sh.orig 2015-03-31 22:13:01.000000000 +0000
+++ deps/v8/tools/run-llprof.sh
@@ -46,7 +46,7 @@ framework, then calls the low level tick
EOF
}
-if [ $# -eq 0 ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
+if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
usage
exit 1
fi

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-src_cares__wrap.cc,v 1.1 2015/11/09 20:21:51 fhajny Exp $
NetBSD has no AI_V4MAPPED.
--- src/cares_wrap.cc.orig 2015-03-31 22:13:01.000000000 +0000
+++ src/cares_wrap.cc
@@ -1301,8 +1301,10 @@ static void Initialize(Handle<Object> ta
Integer::New(env->isolate(), AF_UNSPEC));
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "AI_ADDRCONFIG"),
Integer::New(env->isolate(), AI_ADDRCONFIG));
+#if defined(AI_V4MAPPED)
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "AI_V4MAPPED"),
Integer::New(env->isolate(), AI_V4MAPPED));
+#endif
Local<FunctionTemplate> aiw =
FunctionTemplate::New(env->isolate(), NewGetAddrInfoReqWrap);

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-src_node.cc,v 1.1 2016/08/27 18:11:12 joerg Exp $
--- src/node.cc.orig 2016-08-26 20:21:02.722620766 +0000
+++ src/node.cc
@@ -3626,8 +3626,10 @@ static int RegisterDebugSignalHandler()
// Don't shrink the thread's stack on FreeBSD. Said platform decided to
// follow the pthreads specification to the letter rather than in spirit:
// https://lists.freebsd.org/pipermail/freebsd-current/2014-March/048885.html
-#ifndef __FreeBSD__
+#if defined(__FreeBSD__)
CHECK_EQ(0, pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN));
+#elif defined(__NetBSD__)
+ CHECK_EQ(0, pthread_attr_setstacksize(&attr, sysconf(_SC_THREAD_STACK_MIN)));
#endif // __FreeBSD__
CHECK_EQ(0, pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED));
sigset_t sigmask;

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-tools_gyp_pylib_gyp_common.py,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Add support for NetBSD and DragonFly.
--- tools/gyp/pylib/gyp/common.py.orig 2013-03-28 19:07:52.000000000 +0000
+++ tools/gyp/pylib/gyp/common.py
@@ -394,6 +394,10 @@ def GetFlavor(params):
return 'freebsd'
if sys.platform.startswith('openbsd'):
return 'openbsd'
+ if sys.platform.startswith('netbsd'):
+ return 'netbsd'
+ if sys.platform.startswith('dragonflybsd'):
+ return 'dragonflybsd'
if sys.platform.startswith('aix'):
return 'aix'

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-tools_gyp_pylib_gyp_generator_make.py,v 1.1 2015/11/09 20:21:51 fhajny Exp $
Add support for NetBSD and DragonFly.
Ensure we use the system libtool on OSX.
--- tools/gyp/pylib/gyp/generator/make.py.orig 2013-12-12 05:20:06.000000000 +0000
+++ tools/gyp/pylib/gyp/generator/make.py
@@ -174,7 +174,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -
LINK_COMMANDS_MAC = """\
quiet_cmd_alink = LIBTOOL-STATIC $@
-cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
+cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool /usr/bin/libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
@@ -2012,7 +2012,7 @@ def GenerateOutput(target_list, target_d
'flock': './gyp-flock-tool flock',
'flock_index': 2,
})
- elif flavor == 'freebsd':
+ elif flavor == 'freebsd' or flavor == 'dragonflybsd' or flavor == 'netbsd':
# Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific.
header_params.update({
'flock': 'lockf',

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-tools_install.py,v 1.2 2016/01/21 11:43:44 fhajny Exp $
Install man pages under the right directory.
--- tools/install.py.orig 2016-01-20 19:09:38.000000000 +0000
+++ tools/install.py
@@ -140,10 +140,7 @@ def files(action):
action(['deps/v8/tools/gdbinit'], 'share/doc/node/')
- if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
- action(['doc/node.1'], 'man/man1/')
- else:
- action(['doc/node.1'], 'share/man/man1/')
+ action(['doc/node.1'], os.environ.get('PKGMANDIR') + '/man1/')
if 'true' == variables.get('node_install_npm'): npm_files(action)