2007-07-17 20:14:25 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# vpnc
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2009-01-15 00:50:44 +01:00
|
|
|
VPNC_VERSION=0.5.3
|
2007-07-17 20:14:25 +02:00
|
|
|
VPNC_SOURCE=vpnc-$(VPNC_VERSION).tar.gz
|
|
|
|
VPNC_SITE=http://www.unix-ag.uni-kl.de/~massar/vpnc
|
|
|
|
VPNC_DIR=$(BUILD_DIR)/vpnc-$(VPNC_VERSION)
|
|
|
|
VPNC_CAT:=$(ZCAT)
|
|
|
|
VPNC_BINARY:=$(VPNC_DIR)/vpnc
|
|
|
|
VPNC_DEST_DIR:=$(TARGET_DIR)/usr/local/sbin
|
|
|
|
VPNC_TARGET_BINARY:=$(VPNC_DEST_DIR)/vpnc
|
|
|
|
VPNC_TARGET_SCRIPT:=$(TARGET_DIR)/etc/vpnc/default.conf
|
|
|
|
|
|
|
|
$(DL_DIR)/$(VPNC_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(VPNC_SITE),$(VPNC_SOURCE))
|
2007-07-17 20:14:25 +02:00
|
|
|
|
|
|
|
$(VPNC_DIR)/.unpacked: $(DL_DIR)/$(VPNC_SOURCE)
|
|
|
|
$(VPNC_CAT) $(DL_DIR)/$(VPNC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-09-20 19:08:46 +02:00
|
|
|
toolchain/patch-kernel.sh $(VPNC_DIR) package/vpnc vpnc-$(VPNC_VERSION)\*.patch
|
2007-09-19 12:30:02 +02:00
|
|
|
touch $@
|
2007-07-17 20:14:25 +02:00
|
|
|
|
2007-09-19 12:30:02 +02:00
|
|
|
$(VPNC_BINARY): $(VPNC_DIR)/.unpacked
|
2007-07-17 20:14:25 +02:00
|
|
|
rm -f $@
|
2007-08-12 00:26:56 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) INCLUDE=$(STAGING_DIR)/usr/include \
|
2007-09-19 14:28:48 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2010-05-15 20:06:27 +02:00
|
|
|
LDFLAGS+=-lgcrypt LDFLAGS+=-lgpg-error LDFLAGS+="$(TARGET_CFLAGS)" \
|
2007-09-19 12:30:02 +02:00
|
|
|
CC="$(TARGET_CC)" -C $(VPNC_DIR)
|
2007-07-17 20:14:25 +02:00
|
|
|
|
|
|
|
$(VPNC_TARGET_BINARY): $(VPNC_BINARY)
|
2007-08-22 13:47:22 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
DESTDIR=$(TARGET_DIR) \
|
|
|
|
BINDIR=/usr/local/bin \
|
|
|
|
SBINDIR=/usr/local/sbin \
|
|
|
|
ETCDIR=/etc/vpnc \
|
|
|
|
MANDIR=/usr/share/man \
|
|
|
|
VERSION=$(VPNC_VERSION) \
|
|
|
|
INCLUDE=$(STAGING_DIR)/usr/include \
|
2010-05-15 20:06:27 +02:00
|
|
|
LDFLAGS="-lgcrypt -lgpg-error $(TARGET_CFLAGS)" \
|
2007-07-17 20:14:25 +02:00
|
|
|
-C $(VPNC_DIR) install
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(VPNC_TARGET_BINARY)
|
2007-07-17 20:14:25 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
vpnc: libgcrypt $(VPNC_TARGET_BINARY)
|
2007-07-17 20:14:25 +02:00
|
|
|
|
|
|
|
vpnc-source: $(DL_DIR)/$(VPNC_SOURCE)
|
|
|
|
|
|
|
|
vpnc-clean:
|
2007-09-19 12:30:02 +02:00
|
|
|
-$(MAKE) -C $(VPNC_DIR) clean
|
2007-07-17 20:14:25 +02:00
|
|
|
rm -f $(STAGING_DIR)/usr/bin/vpnc
|
|
|
|
|
|
|
|
vpnc-dirclean:
|
|
|
|
rm -rf $(VPNC_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_VPNC),y)
|
2007-07-17 20:14:25 +02:00
|
|
|
TARGETS+=vpnc
|
|
|
|
endif
|