Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
Misc. Makefile cleanup and fix the VERSION definition.
|
||||
|
||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
||||
|
||||
---
|
||||
diff -purN vpnc-0.5.3.orig/Makefile vpnc-0.5.3/Makefile
|
||||
--- vpnc-0.5.3.orig/Makefile 2012-08-06 00:03:22.677914146 +0200
|
||||
+++ vpnc-0.5.3/Makefile 2012-08-06 00:06:58.506744901 +0200
|
||||
@@ -19,21 +19,19 @@
|
||||
#
|
||||
# $Id: Makefile 312 2008-06-15 18:09:42Z Joerg Mayer $
|
||||
|
||||
-DESTDIR=
|
||||
-PREFIX=/usr/local
|
||||
-ETCDIR=/etc/vpnc
|
||||
-BINDIR=$(PREFIX)/bin
|
||||
-SBINDIR=$(PREFIX)/sbin
|
||||
-MANDIR=$(PREFIX)/share/man
|
||||
-DOCDIR=$(PREFIX)/share/doc/vpnc
|
||||
-
|
||||
-SRCS = sysdep.c vpnc-debug.c isakmp-pkt.c tunip.c config.c dh.c math_group.c supp.c decrypt-utils.c
|
||||
-BINS = vpnc cisco-decrypt
|
||||
-OBJS = $(addsuffix .o,$(basename $(SRCS)))
|
||||
+DESTDIR =
|
||||
+PREFIX ?= /usr/local
|
||||
+ETCDIR = /etc/vpnc
|
||||
+BINDIR = $(PREFIX)/bin
|
||||
+SBINDIR = $(PREFIX)/sbin
|
||||
+MANDIR = $(PREFIX)/share/man
|
||||
+DOCDIR = $(PREFIX)/share/doc/vpnc
|
||||
+
|
||||
+SRCS = sysdep.c vpnc-debug.c isakmp-pkt.c tunip.c config.c dh.c math_group.c supp.c decrypt-utils.c
|
||||
+BINS = vpnc cisco-decrypt
|
||||
+OBJS = $(addsuffix .o,$(basename $(SRCS)))
|
||||
BINOBJS = $(addsuffix .o,$(BINS))
|
||||
BINSRCS = $(addsuffix .c,$(BINS))
|
||||
-VERSION := $(shell sh mk-version)
|
||||
-RELEASE_VERSION := $(shell cat VERSION)
|
||||
|
||||
# The license of vpnc (Gpl >= 2) is quite likely incompatible with the
|
||||
# openssl license. Openssl is currently used to provide certificate
|
||||
@@ -50,13 +48,13 @@ RELEASE_VERSION := $(shell cat VERSION)
|
||||
#OPENSSL_GPL_VIOLATION = -DOPENSSL_GPL_VIOLATION
|
||||
#OPENSSLLIBS = -lcrypto
|
||||
|
||||
-CC=gcc
|
||||
-CFLAGS ?= -O3 -g
|
||||
-CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings
|
||||
-CFLAGS += $(shell libgcrypt-config --cflags)
|
||||
-CPPFLAGS += -DVERSION=\"$(VERSION)\" $(OPENSSL_GPL_VIOLATION)
|
||||
-LDFLAGS ?= -g
|
||||
-LDFLAGS += $(shell libgcrypt-config --libs) $(OPENSSLLIBS)
|
||||
+CC ?= gcc
|
||||
+CFLAGS ?= -O3 -g
|
||||
+CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings
|
||||
+CFLAGS += $(shell libgcrypt-config --cflags)
|
||||
+CPPFLAGS += $(OPENSSL_GPL_VIOLATION)
|
||||
+LDFLAGS ?= -g
|
||||
+LDFLAGS += $(shell libgcrypt-config --libs) $(OPENSSLLIBS)
|
||||
|
||||
ifeq ($(shell uname -s), SunOS)
|
||||
LDFLAGS += -lnsl -lresolv -lsocket
|
||||
@@ -84,7 +82,7 @@ cisco-decrypt : cisco-decrypt.o decrypt-
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
.depend: $(SRCS) $(BINSRCS)
|
||||
- $(CC) -MM $(SRCS) $(BINSRCS) $(CFLAGS) $(CPPFLAGS) > $@
|
||||
+ $(CC) -MM $(SRCS) $(BINSRCS) $(CPPFLAGS) $(CFLAGS) > $@
|
||||
|
||||
vpnc-debug.c vpnc-debug.h : isakmp.h enum2debug.pl
|
||||
LC_ALL=C perl -w ./enum2debug.pl isakmp.h >vpnc-debug.c 2>vpnc-debug.h
|
||||
@@ -0,0 +1,15 @@
|
||||
diff -urN vpnc-0.5.3-0rig/Makefile vpnc-0.5.3/Makefile
|
||||
--- vpnc-0.5.3-0rig/Makefile 2008-11-19 21:36:12.000000000 +0100
|
||||
+++ vpnc-0.5.3/Makefile 2009-01-15 00:38:36.000000000 +0100
|
||||
@@ -72,7 +72,10 @@
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
vpnc.8 : vpnc.8.template makeman.pl vpnc
|
||||
- ./makeman.pl
|
||||
+ @echo "Cannot make manual when cross compiling"
|
||||
+ touch $@
|
||||
+
|
||||
+# ./makeman.pl
|
||||
|
||||
vpnc-script : vpnc-script.in
|
||||
sed -e 's,@''PREFIX''@,$(PREFIX),g' $< > $@ && chmod 755 $@
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -rdup vpnc-0.5.1.oorig/config.c vpnc-0.5.1/config.c
|
||||
--- vpnc-0.5.1.oorig/config.c 2007-09-10 22:39:48.000000000 +0200
|
||||
+++ vpnc-0.5.1/config.c 2007-09-19 14:19:46.000000000 +0200
|
||||
@@ -538,7 +538,7 @@ static char *get_config_filename(const c
|
||||
{
|
||||
char *realname;
|
||||
|
||||
- asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
|
||||
+ asprintf(&realname, "%s%s%s", strchr(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
|
||||
return realname;
|
||||
}
|
||||
|
||||
13
deprecated/firmware/buildroot/package/vpnc/Config.in
Normal file
13
deprecated/firmware/buildroot/package/vpnc/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_VPNC
|
||||
bool "vpnc"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_LIBGCRYPT
|
||||
select BR2_PACKAGE_LIBGPG_ERROR
|
||||
help
|
||||
Client for Cisco VPN concentrator
|
||||
3000 Series VPN Concentrator
|
||||
IOS Routers
|
||||
PIX/ASA Zecurity Appliances
|
||||
Juniper/Netscreen
|
||||
|
||||
http://www.unix-ag.uni-kl.de/~massar/vpnc
|
||||
2
deprecated/firmware/buildroot/package/vpnc/vpnc.hash
Normal file
2
deprecated/firmware/buildroot/package/vpnc/vpnc.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# locally computed hash
|
||||
sha256 46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884 vpnc-0.5.3.tar.gz
|
||||
28
deprecated/firmware/buildroot/package/vpnc/vpnc.mk
Normal file
28
deprecated/firmware/buildroot/package/vpnc/vpnc.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# vpnc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
VPNC_VERSION = 0.5.3
|
||||
VPNC_SITE = http://www.unix-ag.uni-kl.de/~massar/vpnc
|
||||
VPNC_LICENSE = GPLv2+
|
||||
VPNC_LICENSE_FILES = COPYING
|
||||
|
||||
VPNC_DEPENDENCIES = libgcrypt libgpg-error
|
||||
|
||||
VPNC_LDFLAGS = $(TARGET_LDFLAGS) -lgcrypt -lgpg-error
|
||||
VPNC_CPPFLAGS = -DVERSION=\\\"$(VPNC_VERSION)\\\"
|
||||
|
||||
define VPNC_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
||||
CPPFLAGS="$(VPNC_CPPFLAGS)" LDFLAGS="$(VPNC_LDFLAGS)"
|
||||
endef
|
||||
|
||||
define VPNC_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D) install $(TARGET_CONFIGURE_OPTS) \
|
||||
CPPFLAGS="$(VPNC_CPPFLAGS)" LDFLAGS="$(VPNC_LDFLAGS)" \
|
||||
DESTDIR="$(TARGET_DIR)" PREFIX=/usr
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user