Comments (22)
Maybe you missing some dep? I test use alpine-virt-3.6.2-x86_64.iso.
I use apk add gcc autoconf make libtool automake zlib-devel openssl asciidoc xmlto libpcre32 libev-dev c-ares-dev g++ linux-headers(netfilter headers need)
then i use
git clone https://github.com/shadowsocks/simple-obfs.git
cd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure && make
(sudo) make install
all is work
commit:https://github.com/lrinQVQ/simple-obfs/commit/7af8aaa53fbda0556d86cf3777e70989d9548b15
from simple-obfs.
from simple-obfs.
I see, On Arch Linux, it is easy to checkout git source in PKGBUILD, but I have no idea how to do that on Alpine Linux
from simple-obfs.
you can download libcork, extract it, and move to $srcdir/$pkgname-$pkgver, and ./configuration, and blah blah....
from simple-obfs.
alpine-ramnode:~/simple-obfs$ ./autogen.sh
configure.ac:19: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:20: error: possibly undefined macro: AC_DISABLE_SHARED
configure.ac:44: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1
autogen.sh failed in same position.I thought it is related to autoconf
alpine linux --autoconf -V autoconf (GNU Autoconf) 2.69
from simple-obfs.
It caused by lack of libtool
from simple-obfs.
here is full error log after install libtool
https://github.com/debiansid/shadowsocks-libev-archlinux/blob/master/1.log
from simple-obfs.
error msg
mv: missing destination file operand after 'include/{,libcork}ipset'
Try 'mv --help' for more information.
>>> ERROR: libcorkipset: all failed
APKBUILD part related to configure,make
prepare() {
mkdir build
mv libcorkipset-debian-1.1.1-20150311-$debver libcorkipset
cd libcorkipset
for p in debian/patches/*.patch; do
patch -p1 -i "$p"
done
sed -e 's%#include <ipset%#include <libcorkipset%' \
-e 's%#include "ipset%#include "libcorkipset%' \
-i include/ipset/*.h */*/*/*.c */*/*/*.c.in */*/*.c */*.c
mv include/{,libcork}ipset
}
build() {
cd build
cmake ../libcorkipset -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
make
}
I have no idea how to make mv include/{,libcork}ipset
on Alpine Linux.
from simple-obfs.
It caused by findutils on busybox lack of some functions, no idea how to fix it.
from simple-obfs.
@lrinQVQ I know what you mean, this is compiling it directly, what i need is an APKBUILD file that I can run abuild -r to create simple-obfs-0.0.3.apk.
because there is no libcork source included in the release source package and alpine APKBUILD does not support git clone.
so you just can't run
git submodule update --init --recursive
./autogen.sh
from the source tree.
from simple-obfs.
soga, i will try again
from simple-obfs.
emmm @debiansid
mv: missing destination file operand
you need tell mv where's include/{,libcork}ipset will move to ?
mv include/{,libcork}ipset ?
from simple-obfs.
The most easy way is adding libcork source into release package
from simple-obfs.
but ... release is publish, and @madeye What are you think0.0
from simple-obfs.
@debiansid and APKBUILD is work now?
from simple-obfs.
@IrinQVQ
Not yet. It is hard for me coz I am not programmer
from simple-obfs.
@debiansid I create commit try to fix this bug.a01eecc
from simple-obfs.
this is the working edition. the current 0.0.3 release does not include libcares. so it will not work with 3.1.0.
I managed change it to master.zip. and tested on my alpine vps.
hope it could help somebody who need it.
# Contributor: Max Lv <[email protected]>
# Maintainer: Max Lv <[email protected]>
pkgname=simple-obfs
pkgver=0.0.3
pkgrel=1
pkgdesc="Simple-obfs is a simple obfusacting tool, designed as plugin server of shadowsocks."
url="https://github.com/shadowsocks/simple-obfs"
arch="all"
license="GPL3"
depends="libtool libsodium libev-dev c-ares-dev linux-headers"
makedepends="gcc autoconf make libsodium-dev automake zlib-dev libpcre32"
source="simple-obfs-$pkgver.zip::https://github.com/shadowsocks/simple-obfs/archive/master.zip
https://github.com/shadowsocks/libcork/archive/shadowsocks.zip"
includeddir="$srcdir"/libcork-shadowsocks
builddir=simple-obfs-master
prepare() {
mv -f $includeddir/* $builddir/libcork
}
build() {
cd "$builddir"
./autogen.sh
./configure \
--prefix=/usr \
--disable-documentation
make
}
package() {
cd "$srcdir/$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="291c8bc2c86b87cf452485441383ffee8a37f299c6d55f55ce1b9dcba2050f23226d5062f9fa412f5d3e7109cb34
143365f007242c8f5e009f75d03bcc8a4dd55edbdb0b357b0ae76e802a4c3847be3b1b5c93aacb643c5b46b4a102d7dfe8b235ff
from simple-obfs.
@debiansid why disable-documentation 0.0
from simple-obfs.
and i test in my alpine0.0 a01eecc this is work too 233
from simple-obfs.
without disable documentation
>> simple-obfs*: Running postcheck for simple-obfs
>>> WARNING: simple-obfs*: Found /usr/share/doc but package name doesn't end with -doc
>>> WARNING: simple-obfs*: Found /usr/share/man but package name doesn't end with -doc
>>> ERROR: simple-obfs*: Found uncompressed man pages:
/usr/share/man/man1/obfs-local.1
/usr/share/man/man1/obfs-server.1
>>> ERROR: simple-obfs*: prepare_subpackages failed
>>> ERROR: simple-obfs: all failed
from simple-obfs.
soga 0.0 fix here f134104
from simple-obfs.
Related Issues (20)
- 服务器端和客户端都启用了obfs,为什么通过联通后台看到部分混淆成功,部分失败?
- obfs能被探测了吗?端口被封之前出现了如下日志 HOT 1
- 能不能支持一下window on arm平台
- 提问:这个插件与SSR的混淆是否兼容
- 提问:Android端可以用这个插件吗(Can it be used on Android devices?) HOT 2
- genrpm.sh runs with errors HOT 1
- plugin service exit unexpectedly HOT 3
- unknown sofware exception 0x40000015 HOT 1
- assertion failed error
- Build failure with GCC 10
- usage method in armv7 ?
- freebsd how to do
- 一種新混淆方案
- configure failed with Ubuntu20.04 HOT 1
- where is the obfs-server protocol?
- simple-obfs和v2ray-plugin的区别
- /usr/bin/ss-server[21116]: getpeername: Transport endpoint is not connected
- Compile on Cygwin Error: configure: error: Couldn't find libev. Try installing libev-dev[el]. HOT 2
- package/utils/util-linux/download
- 为啥不更新了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-obfs.