Skip to content

Commit

Permalink
add git (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jun 17, 2018
1 parent a4e4a5f commit 1b6db2c
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 4 deletions.
Binary file added addon_files/redmatic/bin/git
Binary file not shown.
9 changes: 5 additions & 4 deletions addon_files/redmatic/bin/redmatic
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ WWW_DIR=/usr/local/etc/config/addons/www/redmatic

NODE=$ADDON_DIR/bin/node

export PATH=$ADDON_DIR/bin:$PATH
export NO_UPDATE_NOTIFIER=true

SETTINGS=$ADDON_DIR/lib/settings.js
RED_DIR=$ADDON_DIR/lib/node_modules/node-red
RED=$RED_DIR/red.js

SETTINGS=$ADDON_DIR/lib/settings.js
export PATH=$ADDON_DIR/bin:$PATH
export LD_LIBRARY_PATH=$ADDON_DIR/lib:$LD_LIBRARY_PATH
export GIT_EXEC_PATH=/usr/local/addons/redmatic/libexec/git-core
export NO_UPDATE_NOTIFIER=true

Stop () {
PSPID=`ps -o pid,comm,args | awk '{if($3 == "node-red" || $4 ~ /node-red/){print $1}}'`
Expand Down
41 changes: 41 additions & 0 deletions addon_files/redmatic/lib/libcurl.la
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# libcurl.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-2
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libcurl.so.4'

# Names of this library.
library_names='libcurl.so.4.5.0 libcurl.so.4 libcurl.so'

# The name of the static archive.
old_library=''

# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=' -pthread'

# Libraries that this one depends upon.
dependency_libs=' -L/root/buildroot-2018.02.2/output/host/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib -L/root/buildroot-2018.02.2/output/host/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr//lib -lssl -lcrypto -lz'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libcurl.
current=9
age=5
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib'
Binary file added addon_files/redmatic/lib/libcurl.so
Binary file not shown.
Binary file added addon_files/redmatic/lib/libcurl.so.4
Binary file not shown.
Binary file added addon_files/redmatic/lib/libcurl.so.4.5.0
Binary file not shown.
Binary file added addon_files/redmatic/libexec/git-core.tar.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions addon_files/update_script
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ ln -sf $RED_DIR/www $WWW_DIR
ln -sf $RED_DIR/bin/redmatic $CONF_DIR/rc.d/redmatic
ln -sf $RED_DIR/etc/lighttpd.conf $CONF_DIR/lighttpd/redmatic.conf

#
# Decompress git-core
#
tar -xzf $RED_DIR/libexec/git-core.tar.gz --directory $RED_DIR/libexec/
rm $RED_DIR/libexec/git-core.tar.gz

#
# Create Buttons in Homematic WebUI
#
Expand Down

0 comments on commit 1b6db2c

Please sign in to comment.