@ -8,19 +8,17 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := vpnc
PKG_REV := 550
PKG_VERSION := 0.5.3.r$( PKG_REV)
PKG_RELEASE := 9
PKG_SOURCE_DATE := 2021-01-31
PKG_SOURCE_VERSION := 43780cecd7a61668002f73b6f8b9f9ba61af74ad
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://svn.unix-ag.uni-kl.de/vpnc/trunk/
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_SOURCE_PROTO := svn
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/streambinder/vpnc
PKG_MIRROR_HASH := df833bbe369bb96cb915da9b63e4dded0f676f06bcdada4ef94e56b8d87b187e
PKG_MAINTAINER := Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
PKG_LICENSE := VARIOUS
PKG_LICENSE_FILES := COPYING
PKG_LICENSE := GPL-3.0-or-later
PKG_LICENSE_FILES := LICENSE
PKG_CONFIG_DEPENDS := \
CONFIG_VPNC_GNUTLS \
@ -36,9 +34,17 @@ endef
d e f i n e P a c k a g e / v p n c
SECTION:= net
CATEGORY:= Network
DEPENDS:= +libgpg-error +libgcrypt +kmod-tun +VPNC_OPENSSL:libopenssl +VPNC_GNUTLS:libgnutls +vpnc-scripts +resolveip
DEPENDS:= \
+libgpg-error \
+libgcrypt \
+kmod-tun \
+VPNC_OPENSSL:libopenssl \
+VPNC_GNUTLS:libgnutls \
+vpnc-scripts \
+resolveip \
TITLE:= VPN client for Cisco EasyVPN
URL:= http://www.unix-ag.uni-kl.de/~massar/vpnc/
URL:= https://davidepucci.it/doc /vpnc/
SUBMENU:= VPN
e n d e f
@ -54,39 +60,28 @@ define Package/vpnc/conffiles
/ e t c / v p n c / d e f a u l t . c o n f
e n d e f
i f e q ( $( CONFIG_VPNC_OPENSSL ) , y )
d e f i n e B u i l d / C o m p i l e
$( call Build/Compile/Default, \
OFLAGS = " $( TARGET_CFLAGS) " \
OS = "Linux" VERSION = " $( PKG_VERSION) " \
STAGING_DIR = " $( STAGING_DIR) " \
DESTDIR = " $( PKG_INSTALL_DIR) " \
OPENSSL_GPL_VIOLATION = yes PREFIX = /usr \
all install \
)
e n d e f
e l s e
OPENSSL-y := OPENSSL_GPL_VIOLATION = yes
d e f i n e B u i l d / C o m p i l e
mkdir $( PKG_BUILD_DIR) /bin
$( call Build/Compile/Default, \
OFLAGS = " $( TARGET_CFLAGS) " \
OS = "Linux" VERSION = " $( PKG_VERSION) " \
STAGING_DIR = " $( STAGING_DIR) " \
DESTDIR = " $( PKG_INSTALL_DIR) " \
PREFIX = /usr \
all install \
OS = "Linux" \
VERSION = " $( PKG_VERSION) " \
$( OPENSSL-$( CONFIG_VPNC_OPENSSL) ) \
vpnc \
)
e n d e f
e n d i f
d e f i n e P a c k a g e / v p n c / i n s t a l l
$( INSTALL_DIR) $( 1) /lib/netifd/proto
$( INSTALL_BIN) ./files/vpnc.sh $( 1) /lib/netifd/proto/
$( INSTALL_DIR) $( 1) /usr/sbin
$( CP) $( PKG_INSTALL_DIR) /usr/s bin/vpnc \
$( PKG_INSTALL_DIR) /usr/sbin /vpnc-disconnect \
$( CP) $( PKG_BUILD_DIR) / bin/vpnc \
$( PKG_BUILD_DIR) /src /vpnc-disconnect \
$( 1) /usr/sbin/
$( INSTALL_DIR) $( 1) /etc/vpnc
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/vpnc/default .conf $( 1) /etc/vpnc/
$( INSTALL_CONF) $( PKG_BUILD_DIR) /src/vpnc .conf $( 1) /etc/vpnc/default.conf
$( INSTALL_DIR) $( 1) /lib/upgrade/keep.d
$( INSTALL_DATA) ./files/vpnc.upgrade $( 1) /lib/upgrade/keep.d/vpnc
e n d e f