parent
8da46c124f
commit
19d0b8b22a
|
@ -0,0 +1 @@
|
|||
simple-obfs is no longer provided by Void Linux, and will be fully removed from the repos on 2019/06/08
|
|
@ -1,23 +0,0 @@
|
|||
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;
|
|
@ -1,26 +1,9 @@
|
|||
# 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"
|
||||
revision=2
|
||||
archs=noarch
|
||||
build_style=meta
|
||||
short_desc="Simple obfusacting tool designed as plugin server of shadowsocks (removed package)"
|
||||
license="metapackage"
|
||||
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…
Reference in New Issue