Homebridge jail

Status
Not open for further replies.

angyp

Dabbler
Joined
Jun 25, 2017
Messages
15
Has anyone got homebridge working in a standard Freenas 11 jail. I had it working fine in Freenas 9.3. Tried to use axemann's instructions from 9.10 but ran into a few problems during "npm install bignum" then completely failed during "npm install -g homebridge"
 

angyp

Dabbler
Joined
Jun 25, 2017
Messages
15
So this is what happens when I try to install bignum. So I can understand that it's couldn't find pre built binaries for my version of node and bignumber and I can understand that stuff gets deprecated in newer versions but I don't know enough to progress past here?

root@homebridge:/ # npm install bignum

> bignum@0.12.5 install /node_modules/bignum
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://rvagg-node.s3-us-west-2.ama....5/bignum-v0.12.5-node-v51-freebsd-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bignum@0.12.5 and node@7.10.0 (node-v51 ABI) (falling back to source compile with node-gyp)
gmake: Entering directory '/node_modules/bignum/build'
CXX(target) Release/obj.target/bignum/bignum.o
../bignum.cc:385:24: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
GetFunction()->NewInstance(len, newArgs);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:413:69: warning: 'ToNumber' is deprecated [-Wdeprecated-declarations]
base = obj->ToObject()->Get(Nan::New("base").ToLocalChecked())->ToNumber()->Value();
^
/root/.node-gyp/7.10.0/include/node/v8.h:9005:22: note: 'ToNumber' has been explicitly marked deprecated here
Local<Number> Value::ToNumber() const {
^
../bignum.cc:461:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:474:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:488:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:502:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:520:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:538:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:557:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:576:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:585:3: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
REQ_UINT32_ARG(0, x);
^
../bignum.cc:44:27: note: expanded from macro 'REQ_UINT32_ARG'
uint32_t VAR = info->ToUint32()->Value();
^
/root/.node-gyp/7.10.0/include/node/v8.h:9035:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
^
../bignum.cc:589:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:598:3: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
REQ_UINT32_ARG(0, x);
^
../bignum.cc:44:27: note: expanded from macro 'REQ_UINT32_ARG'
uint32_t VAR = info->ToUint32()->Value();
^
/root/.node-gyp/7.10.0/include/node/v8.h:9035:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
^
../bignum.cc:602:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:614:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:626:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:640:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:659:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:674:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:691:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:707:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:720:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:727:3: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
REQ_UINT32_ARG(0, x);
^
../bignum.cc:44:27: note: expanded from macro 'REQ_UINT32_ARG'
uint32_t VAR = info->ToUint32()->Value();
^
/root/.node-gyp/7.10.0/include/node/v8.h:9035:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
^
../bignum.cc:734:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:744:3: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
REQ_UINT32_ARG(0, reps);
^
../bignum.cc:44:27: note: expanded from macro 'REQ_UINT32_ARG'
uint32_t VAR = info->ToUint32()->Value();
^
/root/.node-gyp/7.10.0/include/node/v8.h:9035:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
^
../bignum.cc:753:3: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
REQ_UINT32_ARG(0, n);
^
../bignum.cc:44:27: note: expanded from macro 'REQ_UINT32_ARG'
uint32_t VAR = info->ToUint32()->Value();
^
/root/.node-gyp/7.10.0/include/node/v8.h:9035:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
^
../bignum.cc:994:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:1026:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:1061:3: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
WRAP_RESULT(res, result);
^
../bignum.cc:70:20: note: expanded from macro 'WRAP_RESULT'
GetFunction()->NewInstance(1, arg);
^
/root/.node-gyp/7.10.0/include/node/v8.h:3658:31: note: 'NewInstance' has been explicitly marked deprecated here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
../bignum.cc:1085:36: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
unsigned int nCompact = info[0]->ToUint32()->Value();
^
/root/.node-gyp/7.10.0/include/node/v8.h:9035:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
^
30 warnings generated.
SOLINK_MODULE(target) Release/obj.target/bignum.node
COPY Release/bignum.node
COPY /node_modules/bignum/binding/bignum.node
TOUCH Release/obj.target/action_after_build.stamp
gmake: Leaving directory '/node_modules/bignum/build'
npm WARN saveError ENOENT: no such file or directory, open '/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.

+ bignum@0.12.5
added 113 packages in 23.294s



Everything prior to this goes well from what I can see.

root@homebridge:/ # pkg install -y node npm dbus avahi-libdns gcc
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
[homebridge] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
[homebridge] Fetching packagesite.txz: 100% 6 MiB 1.0MB/s 00:06
Processing entries: 100%
FreeBSD repository update completed. 26609 packages processed.
All repositories are up to date.
The following 33 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
node: 7.10.0
npm: 5.0.3
dbus: 1.10.16_1
avahi-libdns: 0.6.31_2
gcc: 5.4.0_2
c-ares: 1.12.0_1
libuv: 1.12.0
icu: 58.2_2,1
python2: 2_3
gmake: 4.2.1_1
libX11: 1.6.5,1
xproto: 7.0.31
libxcb: 1.12_2
libXdmcp: 1.1.2
libXau: 1.0.8_3
libxml2: 2.9.4
libpthread-stubs: 0.4
kbproto: 1.0.7
libSM: 1.2.2_3,1
libICE: 1.0.9_1,1
gnome_subr: 1.0
avahi-app: 0.6.31_5
libdaemon: 0.14_1
gobject-introspection: 1.50.0,1
glib: 2.50.2_2,1
libiconv: 1.14_10
dbus-glib: 0.108
gcc5: 5.4.0_2
mpfr: 3.1.5_1
gmp: 6.1.2
mpc: 1.0.3
gcc-ecj: 4.5
binutils: 2.28,1

Number of packages to be installed: 33

The process will require 739 MiB more space.
127 MiB to be downloaded.
[homebridge] [1/33] Fetching node-7.10.0.txz: 100% 4 MiB 899.7kB/s 00:05
[homebridge] [2/33] Fetching npm-5.0.3.txz: 100% 3 MiB 779.6kB/s 00:04
[homebridge] [3/33] Fetching dbus-1.10.16_1.txz: 100% 331 KiB 338.7kB/s 00:01
[homebridge] [4/33] Fetching avahi-libdns-0.6.31_2.txz: 100% 33 KiB 34.3kB/s 00:01
[homebridge] [5/33] Fetching gcc-5.4.0_2.txz: 100% 804 B 0.8kB/s 00:01
[homebridge] [6/33] Fetching c-ares-1.12.0_1.txz: 100% 120 KiB 122.6kB/s 00:01
[homebridge] [7/33] Fetching libuv-1.12.0.txz: 100% 90 KiB 92.2kB/s 00:01
[homebridge] [8/33] Fetching icu-58.2_2,1.txz: 100% 9 MiB 1.3MB/s 00:07
[homebridge] [9/33] Fetching python2-2_3.txz: 100% 1 KiB 1.1kB/s 00:01
[homebridge] [10/33] Fetching gmake-4.2.1_1.txz: 100% 378 KiB 387.5kB/s 00:01
[homebridge] [11/33] Fetching libX11-1.6.5,1.txz: 100% 2 MiB 556.3kB/s 00:03
[homebridge] [12/33] Fetching xproto-7.0.31.txz: 100% 59 KiB 60.2kB/s 00:01
[homebridge] [13/33] Fetching libxcb-1.12_2.txz: 100% 985 KiB 504.2kB/s 00:02
[homebridge] [14/33] Fetching libXdmcp-1.1.2.txz: 100% 14 KiB 14.1kB/s 00:01
[homebridge] [15/33] Fetching libXau-1.0.8_3.txz: 100% 11 KiB 11.4kB/s 00:01
[homebridge] [16/33] Fetching libxml2-2.9.4.txz: 100% 802 KiB 273.7kB/s 00:03
[homebridge] [17/33] Fetching libpthread-stubs-0.4.txz: 100% 1 KiB 1.0kB/s 00:01
[homebridge] [18/33] Fetching kbproto-1.0.7.txz: 100% 122 KiB 125.1kB/s 00:01
[homebridge] [19/33] Fetching libSM-1.2.2_3,1.txz: 100% 21 KiB 21.9kB/s 00:01
[homebridge] [20/33] Fetching libICE-1.0.9_1,1.txz: 100% 89 KiB 91.4kB/s 00:01
[homebridge] [21/33] Fetching gnome_subr-1.0.txz: 100% 740 B 0.7kB/s 00:01
[homebridge] [22/33] Fetching avahi-app-0.6.31_5.txz: 100% 385 KiB 197.0kB/s 00:02
[homebridge] [23/33] Fetching libdaemon-0.14_1.txz: 100% 22 KiB 22.9kB/s 00:01
[homebridge] [24/33] Fetching gobject-introspection-1.50.0,1.txz: 100% 1 MiB 384.0kB/s 00:03
[homebridge] [25/33] Fetching glib-2.50.2_2,1.txz: 100% 3 MiB 730.0kB/s 00:04
[homebridge] [26/33] Fetching libiconv-1.14_10.txz: 100% 599 KiB 306.8kB/s 00:02
[homebridge] [27/33] Fetching dbus-glib-0.108.txz: 100% 156 KiB 159.4kB/s 00:01
[homebridge] [28/33] Fetching gcc5-5.4.0_2.txz: 100% 81 MiB 4.7MB/s 00:18
[homebridge] [29/33] Fetching mpfr-3.1.5_1.txz: 100% 366 KiB 374.4kB/s 00:01
[homebridge] [30/33] Fetching gmp-6.1.2.txz: 100% 463 KiB 474.1kB/s 00:01
[homebridge] [31/33] Fetching mpc-1.0.3.txz: 100% 72 KiB 73.7kB/s 00:01
[homebridge] [32/33] Fetching gcc-ecj-4.5.txz: 100% 1 MiB 468.1kB/s 00:03
[homebridge] [33/33] Fetching binutils-2.28,1.txz: 100% 19 MiB 2.2MB/s 00:09
Checking integrity... done (0 conflicting)
[homebridge] [1/33] Installing xproto-7.0.31...
[homebridge] [1/33] Extracting xproto-7.0.31: 100%
[homebridge] [2/33] Installing libXdmcp-1.1.2...
[homebridge] [2/33] Extracting libXdmcp-1.1.2: 100%
[homebridge] [3/33] Installing libXau-1.0.8_3...
[homebridge] [3/33] Extracting libXau-1.0.8_3: 100%
[homebridge] [4/33] Installing libxml2-2.9.4...
[homebridge] [4/33] Extracting libxml2-2.9.4: 100%
[homebridge] [5/33] Installing libpthread-stubs-0.4...
[homebridge] [5/33] Extracting libpthread-stubs-0.4: 100%
[homebridge] [6/33] Installing libxcb-1.12_2...
[homebridge] [6/33] Extracting libxcb-1.12_2: 100%
[homebridge] [7/33] Installing kbproto-1.0.7...
[homebridge] [7/33] Extracting kbproto-1.0.7: 100%
[homebridge] [8/33] Installing libICE-1.0.9_1,1...
[homebridge] [8/33] Extracting libICE-1.0.9_1,1: 100%
[homebridge] [9/33] Installing libX11-1.6.5,1...
[homebridge] [9/33] Extracting libX11-1.6.5,1: 100%
[homebridge] [10/33] Installing libSM-1.2.2_3,1...
[homebridge] [10/33] Extracting libSM-1.2.2_3,1: 100%
[homebridge] [11/33] Installing libiconv-1.14_10...
[homebridge] [11/33] Extracting libiconv-1.14_10: 100%
[homebridge] [12/33] Installing gmp-6.1.2...
[homebridge] [12/33] Extracting gmp-6.1.2: 100%
[homebridge] [13/33] Installing dbus-1.10.16_1...
===> Creating groups.
Creating group 'messagebus' with gid '556'.
===> Creating users
Creating user 'messagebus' with uid '556'.
[homebridge] [13/33] Extracting dbus-1.10.16_1: 100%
[homebridge] [14/33] Installing python2-2_3...
[homebridge] [14/33] Extracting python2-2_3: 100%
[homebridge] [15/33] Installing glib-2.50.2_2,1...
[homebridge] [15/33] Extracting glib-2.50.2_2,1: 100%
No schema files found: doing nothing.
[homebridge] [16/33] Installing mpfr-3.1.5_1...
[homebridge] [16/33] Extracting mpfr-3.1.5_1: 100%
[homebridge] [17/33] Installing c-ares-1.12.0_1...
[homebridge] [17/33] Extracting c-ares-1.12.0_1: 100%
[homebridge] [18/33] Installing libuv-1.12.0...
[homebridge] [18/33] Extracting libuv-1.12.0: 100%
[homebridge] [19/33] Installing icu-58.2_2,1...
[homebridge] [19/33] Extracting icu-58.2_2,1: 100%
[homebridge] [20/33] Installing gnome_subr-1.0...
[homebridge] [20/33] Extracting gnome_subr-1.0: 100%
[homebridge] [21/33] Installing libdaemon-0.14_1...
[homebridge] [21/33] Extracting libdaemon-0.14_1: 100%
[homebridge] [22/33] Installing gobject-introspection-1.50.0,1...
[homebridge] [22/33] Extracting gobject-introspection-1.50.0,1: 100%
[homebridge] [23/33] Installing dbus-glib-0.108...
[homebridge] [23/33] Extracting dbus-glib-0.108: 100%
[homebridge] [24/33] Installing mpc-1.0.3...
[homebridge] [24/33] Extracting mpc-1.0.3: 100%
[homebridge] [25/33] Installing gcc-ecj-4.5...
[homebridge] [25/33] Extracting gcc-ecj-4.5: 100%
[homebridge] [26/33] Installing binutils-2.28,1...
[homebridge] [26/33] Extracting binutils-2.28,1: 100%
[homebridge] [27/33] Installing node-7.10.0...
[homebridge] [27/33] Extracting node-7.10.0: 100%
[homebridge] [28/33] Installing gmake-4.2.1_1...
[homebridge] [28/33] Extracting gmake-4.2.1_1: 100%
[homebridge] [29/33] Installing avahi-app-0.6.31_5...
===> Creating groups.
Creating group 'avahi' with gid '558'.
===> Creating users
Creating user 'avahi' with uid '558'.
[homebridge] [29/33] Extracting avahi-app-0.6.31_5: 100%
[homebridge] [30/33] Installing gcc5-5.4.0_2...
[homebridge] [30/33] Extracting gcc5-5.4.0_2: 100%
[homebridge] [31/33] Installing npm-5.0.3...
[homebridge] [31/33] Extracting npm-5.0.3: 100%
[homebridge] [32/33] Installing avahi-libdns-0.6.31_2...
===> Creating groups.
Using existing group 'avahi'.
===> Creating users
Using existing user 'avahi'.
[homebridge] [32/33] Extracting avahi-libdns-0.6.31_2: 100%
[homebridge] [33/33] Installing gcc-5.4.0_2...
[homebridge] Extracting gcc-5.4.0_2: 100%
Message from node-7.10.0:
Note: If you need npm (Node Package Manager), please install www/npm.
Message from gcc5-5.4.0_2:
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using

-Wl,-rpath=/usr/local/lib/gcc5

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
root@homebridge:/ # sysrc dbus_enable="YES"
dbus_enable: -> YES
root@homebridge:/ #
root@homebridge:/ # sysrc avahi_daemon_enable="YES"
avahi_daemon_enable: -> YES
root@homebridge:/ # ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
 

angyp

Dabbler
Joined
Jun 25, 2017
Messages
15
Sort of got this working. Couldn't use the -g on the npn install commands and had to cd /usr/local/lib before any npn install, Also to get into the jail I just used jexec didn't enable ssh


pkg install -y node npm dbus avahi-libdns gcc
sysrc dbus_enable="YES"
sysrc avahi_daemon_enable="YES"
ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
cd /usr/local/lib
npm install bignum
npm install homebridge
npm install homebridge-wemo
npm install pm2
service dbus start
service avahi-daemon start
pm2 startup rcd
sysrc pm2_enable="YES"
mkdir ~/.homebridge
cp /usr/local/lib/node_modules/homebridge/config-sample.json ~/.homebridge/config.json

edit the ~/.homebridge/config.json


pm2 start homebridge -- -D
pm2 save
 
Status
Not open for further replies.
Top