Hi OpenWRT folks,

I'm one of the current OpenVPN developers, and happy OpenWRT user, but 
have not yet fully figured out how the OpenWRT development model works
("who decides what, who commits where, etc.") - so bear with me :-)

OpenWRT has an OpenVPN package containing the current stable release
(2.1.1), and this is a good start.

OTOH, that package does not have any sort of IPv6 support, which means
that IPv6-on-OpenWRT users need to compile their own OpenVPN package,
which is not that easy for non-developers.

I have dabbled a bit with the OpenWRT build system and created a package
Makefile that seems to work (as in: it fetches the right source archive
and builds an .ipk that 'works for me').  It shares the "files/" stuff
with the existing openvpn package.  It is attached, in case you want to 
tell me what I should do differently :-) - build instructions have
been put here (again, feedback welcome): 

  https://community.openvpn.net/openvpn/wiki/OpenvpnDevelPackageForOpenWRT


Now, for the interesting bit: what is the way to get a new package into
the OpenWRT package feed?  And when it's in there, how to get it updated
when the upstream release changes?  (OpenVPN development uses weekly
snapshots for 'platform builds', e.g. FreeBSD ports, and my OpenWRT 
Makefile is based on these).

Thanks for your help,

gert


-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]
fax: +49-89-35655025                        [email protected]
#
# Makefile for openvpn-devel package for OpenWRT
#

include $(TOPDIR)/rules.mk

PKG_NAME:=openvpn_devel
# this is "2010, week 26"
PKG_VERSION:=201026
# BUILD_DIR has to accomodate path naming of source tarball
PKG_BUILD_DIR:=$(BUILD_DIR)/openvpn-devel
PKG_RELEASE:=2

PKG_SOURCE:=openvpn-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.secure-computing.net/pub/FreeBSD/ports/openvpn-devel/
# if you change the PKG_VERSION, adjust this checksum ("md5sum $PKG_SOURCE")
#PKG_MD5SUM:=424e7ae5de6430374e97c9e458ee45d5

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/openvpn_devel
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+kmod-tun +kmod-ipv6 +libopenssl +liblzo +ip
  TITLE:=Open source VPN solution using SSL - DEVEL VERSION
  URL:=http://openvpn.net
  SUBMENU:=VPN
endef

define Package/openvpn_devel/conffiles
/etc/config/openvpn
endef

define Package/openvpn_devel/description
         Open source VPN solution using SSL - DEVEL VERSION, Week $(PKG_VERSION)
endef

define Build/Configure
        $(call Build/Configure/Default, \
                --disable-pthread \
                --disable-debug \
                --disable-plugins \
                --enable-management \
                --disable-socks \
                --enable-password-save \
                --enable-iproute2 \
                --with-iproute-path=/usr/sbin/ip \
                ,\
                ac_cv_func_epoll_create=no \
        )
endef

define Package/openvpn_devel/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc/init.d/
        $(INSTALL_BIN) files/openvpn.init $(1)/etc/init.d/openvpn
        $(INSTALL_DIR) $(1)/etc/config
        $(INSTALL_CONF) files/openvpn.config $(1)/etc/config/openvpn
        $(INSTALL_DIR) $(1)/etc/openvpn
endef

$(eval $(call BuildPackage,openvpn_devel))

Attachment: pgphv8EZD6rZa.pgp
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to