Skip to content

Instantly share code, notes, and snippets.

@yellowback
yellowback / redis
Created June 26, 2012 09:32
redis start script for NetBSD
#!/bin/sh
#
# $NetBSD: $
#
# PROVIDE: redis
# REQUIRE: DAEMON
. /etc/rc.subr
name="redis"
@yellowback
yellowback / example.gitolite.rc.patch
Created June 26, 2012 09:55
example.gitolite.rc diff
--- /usr/pkg/share/gitolite/conf/example.gitolite.rc 2012-06-19 16:24:39.000000000 +0900
+++ /usr/pkg/share/gitolite/conf/example.gitolite.rc 2012-06-19 16:24:50.000000000 +0900
@@ -29,7 +29,7 @@
$PROJECTS_LIST = $ENV{HOME} . "/projects.list";
# $WEB_INTERFACE = "gitweb";
# $GITWEB_URI_ESCAPE = 0;
-$REPO_UMASK = 0077;
+$REPO_UMASK = 0007;
# ------------------------------------------------------------------------------
@yellowback
yellowback / libv8-netbsd.patch
Created June 26, 2012 10:06
libv8 netbsd diff
diff -ur v8/SConstruct v8/SConstruct
--- v8/SConstruct 2012-06-18 21:39:33.000000000 +0900
+++ v8/SConstruct 2012-06-19 17:38:46.000000000 +0900
@@ -130,6 +134,12 @@
'LIBPATH' : ['/usr/local/lib'],
'CCFLAGS': ['-ansi'],
},
+ 'os:netbsd': {
+ 'CPPPATH' : ['/usr/pkg/include'],
+ 'LIBPATH' : ['/usr/pkg/lib'],
@yellowback
yellowback / a
Last active December 16, 2015 21:38
b
Index: build/gyp_chromium
===================================================================
--- build/gyp_chromium (revision 2937)
+++ build/gyp_chromium (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2009 Google Inc.
#
Index: net/instaweb/instaweb_core.gyp
===================================================================
--- net/instaweb/instaweb_core.gyp (revision 2937)
+++ net/instaweb/instaweb_core.gyp (working copy)
@@ -174,58 +174,4 @@
],
},
],
- 'conditions': [
- ['OS=="linux" and use_system_icu==0', {
Index: net/instaweb/rewriter/js_minify_main.cc
===================================================================
--- net/instaweb/rewriter/js_minify_main.cc (revision 2937)
+++ net/instaweb/rewriter/js_minify_main.cc (working copy)
@@ -80,16 +80,16 @@
filename);
TrimWhitespace(original, &stripped);
}
- FileSystem::OutputFile* stdout = file_system.Stdout();
+ FileSystem::OutputFile* stdout2 = file_system.Stdout();
Index: net/instaweb/util/pthread_shared_mem.cc
===================================================================
--- net/instaweb/util/pthread_shared_mem.cc (revision 2937)
+++ net/instaweb/util/pthread_shared_mem.cc (working copy)
@@ -24,6 +24,9 @@
#include <cstddef>
#include <map>
#include <utility>
+#if defined(__NetBSD__)
+#include <semaphore.h>
Index: net/instaweb/util/pthread_thread_system.cc
===================================================================
--- net/instaweb/util/pthread_thread_system.cc (revision 2937)
+++ net/instaweb/util/pthread_thread_system.cc (working copy)
@@ -135,7 +135,11 @@
}
int64 PthreadThreadSystem::ThreadId() const {
+#if defined(__NetBSD__)
+ return reinterpret_cast<int64>(pthread_self());
Index: debug/debugger_posix.cc
===================================================================
--- debug/debugger_posix.cc (revision 161115)
+++ debug/debugger_posix.cc (working copy)
@@ -125,7 +125,7 @@
is_set = true;
#if defined(OS_FREEBSD)
being_debugged = (info.ki_flag & P_TRACED) != 0;
-#elif defined(OS_BSD)
+#elif defined(OS_BSD) && !defined(OS_NETBSD)