tuntox.paketlendi
This commit is contained in:
parent
f9ee6b02b4
commit
203703889b
|
@ -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"
|
||||||
|
}
|
Loading…
Reference in New Issue