OpenWrt Forum Archive

Topic: ipkg of openvpn 2.1.0 rc1

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

In case this is of interest to others, I built the 2.1 version of openvpn, which runs wonderfully.  In case anyone else is interested, and to avoid their having to setup the build environment, I stuck this in a web-accessible location:

http://ovpnppc.ziggurat29.com/files/ope … mipsel.ipk

Also, not really related, but I made a nicer init.d script that works a bit more like the traditional desktop script.  It has start, stop, restart, and (like the desktop script) runs all the .conf files in the /etc/openvpn directory.

S50openvpn:

#!/bin/sh

DAEMON="OpenVPN"
openvpn=/usr/sbin/openvpn
confdir=/etc/openvpn
piddir=/var/run/openvpn
test -d $piddir || mkdir $piddir

test -x $openvpn || exit 5

case $1 in
start)
  echo -n "Starting $DAEMON..."
  for conf in $confdir/*.conf; do
          pidfile=$(basename ${conf%%.conf}).pid
          $openvpn --daemon \
                  --writepid $piddir/$pidfile \
                  --config $conf \
                  --cd $confdir \
                  || ret=false
  done
  echo
  exit 0
  ;;

stop)
  echo -n "Shutting down $DAEMON..."
  for i in $piddir/*.pid; do
          kill $(cat $i)
  done
  echo
  exit 0
  ;;

restart)
  $0 stop
  sleep 3
  $0 start
  ;;

*)
  echo "usage: $0 (start|stop|retstart)"
  exit 1
esac
exit $?

ziggurat29 wrote:

In case this is of interest to others, I built the 2.1 version of openvpn, which runs wonderfully.  In case anyone else is interested, and to avoid their having to setup the build environment, I stuck this in a web-accessible location:

http://ovpnppc.ziggurat29.com/files/ope … mipsel.ipk

Please, also provide the patches for your package and not only the binary. Creating patches with subversion is very easy e.g. 'svn diff' on the buildroot checked out from svn. Maybe you open a ticket with your patch attached.

(Last edited by forum2006 on 30 Dec 2006, 18:53)

sure, though it wasn't anything shocking.  just pointing the makefile to the newer source code.  Nonetheless, if someone actually _does_ wish to build it themselves, here is the output of the `svn diff`...:

Index: package/openvpn/Makefile
===================================================================
--- package/openvpn/Makefile    (revision 5738)
+++ package/openvpn/Makefile    (working copy)
@@ -3,9 +3,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=openvpn
-PKG_VERSION:=2.0.8
+PKG_VERSION:=2.1_rc1
+#PKG_VERSION:=2.0.9
PKG_RELEASE:=1
-PKG_MD5SUM:=de41592b6dd88d33b7c45c114a4f4e00
+PKG_MD5SUM:=b0773149ef9d93a0075dfa42b87042a0
+#PKG_MD5SUM:=60745008b90b7dbe25fe8337c550fec6

PKG_SOURCE_URL:=http://openvpn.net/release @SF/openvpn
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

Hi...

I have downloaded the package and instaled in my wrt54g with kamikaze 8.09_RC2, kernel 2.4, but when I try to run the openvpn server I get this error output "./openvpn: can't resolve symbol '__uClibc_start_main'"...

I installed all the extra packages that tell to install on your web page, http://ziggurat29.com/, but I still get tha error sad...

can you help me? please ....

thanks in advance...

Oslec; this is a WhiteRussian (not kamikaze) build, which may be the reason for the unresolved symbol.
I've continuing to make packages since the rc1 years ago, and you can find up to rc15
http://ziggurat29.com/
though I suspect even that will not help -- that your underlying problem is that you need a Kamikaze build.  I haven't set up a Kamikaze build environment because I use White Russian still (on my wl-500gp).

The discussion might have continued from here.