tuntox.paketlendi

这个提交存在于:
milisman 2016-10-15 23:37:33 +03:00
父节点 f9ee6b02b4
当前提交 203703889b
共有 2 个文件被更改,包括 44 次插入0 次删除

查看文件

@ -0,0 +1,22 @@
diff --git a/Makefile b/Makefile
index 5e19d0a..96c6ff3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ DEPS=libtoxcore
CC=gcc
CFLAGS=-g #-std=c99
CFLAGS += $(shell pkg-config --cflags $(DEPS))
-LDFLAGS=-g -pthread -lm -static -lrt
+LDFLAGS=-g -pthread -lm -lrt
LDFLAGS += $(shell pkg-config --libs $(DEPS))
OBJECTS=$(SOURCES:.c=.o)
INCLUDES = $(wildcard *.h)
@@ -19,7 +19,7 @@ gitversion.c: gitversion.h
$(CC) $(CFLAGS) $< -c -o $@
tuntox: $(OBJECTS) $(INCLUDES)
- $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) /usr/local/lib/libsodium.a /usr/local/lib/libtoxcore.a
+ $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) -lsodium
cscope.out:
cscope -bv ./*.[ch]

查看文件

@ -0,0 +1,22 @@
# Description: Tunnel TCP connections over the Tox protocol
# URL: http://tuntox.pl/
# Packager: milisarge
# Depends on: cscope toxcore
name=tuntox
version=git
release=1
source=(shared-build.patch)
build() {
if [ ! -d $DERLEME_KAYNAKDIZIN/$name.git ];then
git clone https://github.com/gjedeer/$name.git
else
cd $DERLEME_KAYNAKDIZIN/$name.git
git pull
cd -
fi
cd $name
patch -p1 -i ../shared-build.patch
make
install -Dm755 tuntox "$PKG/usr/bin/tuntox"
}