New package: simple-obfs
This commit is contained in:
parent
d9207af5ec
commit
deee699027
2 changed files with 49 additions and 0 deletions
23
srcpkgs/simple-obfs/patches/211.patch
Normal file
23
srcpkgs/simple-obfs/patches/211.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
From 117dd05632cbc05ad54d5aa5da949835e09ef0f0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zane <ticonci@users.noreply.github.com>
|
||||||
|
Date: Fri, 6 Jul 2018 11:03:24 +0800
|
||||||
|
Subject: [PATCH] fix compile warning with GCC8
|
||||||
|
|
||||||
|
---
|
||||||
|
src/netutils.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/netutils.c b/src/netutils.c
|
||||||
|
index 66d0a7c..b7fcb64 100644
|
||||||
|
--- a/src/netutils.c
|
||||||
|
+++ b/src/netutils.c
|
||||||
|
@@ -85,7 +85,8 @@ setinterface(int socket_fd, const char *interface_name)
|
||||||
|
{
|
||||||
|
struct ifreq interface;
|
||||||
|
memset(&interface, 0, sizeof(struct ifreq));
|
||||||
|
- strncpy(interface.ifr_name, interface_name, IFNAMSIZ);
|
||||||
|
+ strncpy(interface.ifr_name, interface_name, IFNAMSIZ - 1);
|
||||||
|
+ interface.ifr_name[IFNAMSIZ - 1] = '\0';
|
||||||
|
int res = setsockopt(socket_fd, SOL_SOCKET, SO_BINDTODEVICE, &interface,
|
||||||
|
sizeof(struct ifreq));
|
||||||
|
return res;
|
26
srcpkgs/simple-obfs/template
Normal file
26
srcpkgs/simple-obfs/template
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Template file for 'simple-obfs'
|
||||||
|
pkgname=simple-obfs
|
||||||
|
version=0.0.5
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-configure
|
||||||
|
hostmakedepends="automake libtool pkg-config asciidoc xmlto"
|
||||||
|
makedepends="libev-devel"
|
||||||
|
short_desc="Simple obfusacting tool designed as plugin server of shadowsocks"
|
||||||
|
maintainer="whoami <whoami@systemli.org>"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
homepage="https://github.com/shadowsocks/simple-obfs"
|
||||||
|
distfiles="${homepage}/archive/v${version}.tar.gz
|
||||||
|
https://github.com/shadowsocks/libcork/archive/f02984545061c924808e4b9ea7cc6749a41f1979.tar.gz"
|
||||||
|
checksum="0de9b551b67ec82d0af9d09bcb74c9e8d047f0082ae07db8e4f5f3defeb2ce4c
|
||||||
|
0f1ede7bd23672718d1d10adbe9e4028515d029585b93092d7199e51a40b3fe4"
|
||||||
|
patch_args="-Np1"
|
||||||
|
_version_libcork=f02984545061c924808e4b9ea7cc6749a41f1979
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
rmdir libcork
|
||||||
|
mv ../libcork-${_version_libcork} libcork
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
autoreconf -fi
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue