Code Monkey home page Code Monkey logo

Comments (22)

lrinQVQ avatar lrinQVQ commented on July 21, 2024 1

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.

aieu avatar aieu commented on July 21, 2024

#58

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

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.

aieu avatar aieu commented on July 21, 2024

you can download libcork, extract it, and move to $srcdir/$pkgname-$pkgver, and ./configuration, and blah blah....

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

@registe

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.

debiansid avatar debiansid commented on July 21, 2024

It caused by lack of libtool

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

here is full error log after install libtool
https://github.com/debiansid/shadowsocks-libev-archlinux/blob/master/1.log

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

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.

debiansid avatar debiansid commented on July 21, 2024

It caused by findutils on busybox lack of some functions, no idea how to fix it.

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

@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.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

soga, i will try again

from simple-obfs.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

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.

debiansid avatar debiansid commented on July 21, 2024

The most easy way is adding libcork source into release package

from simple-obfs.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

but ... release is publish, and @madeye What are you think0.0

from simple-obfs.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

@debiansid and APKBUILD is work now?

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

@IrinQVQ
Not yet. It is hard for me coz I am not programmer

from simple-obfs.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

@debiansid I create commit try to fix this bug.a01eecc

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

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.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

@debiansid why disable-documentation 0.0

from simple-obfs.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

and i test in my alpine0.0 a01eecc this is work too 233

from simple-obfs.

debiansid avatar debiansid commented on July 21, 2024

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.

lrinQVQ avatar lrinQVQ commented on July 21, 2024

soga 0.0 fix here f134104

from simple-obfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.