Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syslog support #80

Closed
schlatterbeck opened this issue Dec 16, 2016 · 9 comments
Closed

Syslog support #80

schlatterbeck opened this issue Dec 16, 2016 · 9 comments

Comments

@schlatterbeck
Copy link
Contributor

I have submitted a pull-request (#65) for adding syslog-support for the log messages.
My use-case is to run openfortivpn non-interactively on a small openwrt-based router.
I'm using the patch in the pull-request successfully for several months now, so maybe you consider to accept the patch? Or do I need to add something to make you reconsider?

I can rebase the patch to the latest head commit if needed.

Ralf

@adrienverge
Copy link
Owner

Hi Ralf, sorry for not following your contribution up.

Yes, please rebase on master and post a comment on #65. We'll follow it there.

@excelwang
Copy link

Hi @schlatterbeck, could you share your openfortivpn compiling tutorial for openwrt, and prebuilt binary files for mips_24kc platform is more appreciated.

@DimitriPapadopoulos
Copy link
Collaborator

DimitriPapadopoulos commented Jan 11, 2018

@excelwang Out of curiosity, have you actually tried to compile? If so, did you encounter any problems while compiling?

@excelwang
Copy link

@schlatterbeck, Thanks for your reply. I have tried twice.

The first time, I tried to cross-compile openfortivpn, but encountered compilation dependencies missing problem (afterward, I knew it was caused by the missing of cross-compiled openssl library).

The second time, I tried to use a prebuilt openssl library shipped with lede/openwrt 17.01.4. But I gave it up at last, as I have no idea how to change openfortivpn's autogen.sh to use the cross compile environment. After all, I doubt if I could build a runnable openwrt version.

Any advice for further step is very appreciated!

@DimitriPapadopoulos
Copy link
Collaborator

DimitriPapadopoulos commented Jan 11, 2018

I understand the whole difficulty here is to:

  1. get a working cross-compiling environment with all necessary dependencies,
  2. tweak the build infrastructure of openfortivpn to work within this cross-compiling environment.

I've seldom messed with cross-compiling myself - and never with openfortivpn - so I won't be much help. For item 2 I would just suggest forgetting autogen.sh and tweaking individuals commands:

aclocal
autoconf
automake --add-missing

Once you get there, I don't see why it wouldn't be possible to build openfortivpn for OpenWrt with minimal changes. I might help once you get there but I cannot help with prior items 1 and 2.

@excelwang
Copy link

@schlatterbeck. Finally I successfully cross compiled a working openfortivpn for openwrt. Mainly 2 steps:

  1. cross compile the openssl.
    2.modefiy the Makefile of openfortivpn: change gcc to the cross-compile gcc.

@msfuentess
Copy link

Hello,
I have compiled succesfully openfortivpn in Fedora and it works, but now I'm trying unsuccessfuly to cross-compile it in my OpenWRT building environment for an ar71xx (mips) Tp-Link router. Could any of you elaborate how should I do it? It is the first package that I'm trying to compile from external sources ....

Thanks in advance

@schlatterbeck
Copy link
Contributor Author

schlatterbeck commented Feb 27, 2018 via email

@msfuentess
Copy link

msfuentess commented Mar 6, 2018

I finally got it compiled and working (except the ip routes that are not accepted by the client, but do work in fedora)

This is the file structure that I used

./package/feeds/custom/openfortivpn
./package/feeds/custom/openfortivpn/Makefile
./package/feeds/custom/openfortivpn/files
./package/feeds/custom/openfortivpn/files/openfortivpn.init

and on the Makefile (thanks Ralf) I changed:
PKG_SOURCE_URL:=https://github.com/adrienverge/openfortivpn.git
#PKG_SOURCE_URL:=git@github.com:adrienverge/openfortivpn.git

Also on feeds.conf.default add:
src-git custom https://github.com/adrienverge/openfortivpn.git

then proceed as normal:
./scripts/feeds update -a
./scripts/feeds install -a
make -j1 V=s package/openfortivpn/compile

And you get your ipk file. You can also select openfortivpn in menuconfig and build your binary with openfortivpn inside.

Thanks everyone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants