2003-06-05 10:19:53 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# vtun
|
2003-12-28 23:07:59 +01:00
|
|
|
#
|
2003-06-05 10:19:53 +02:00
|
|
|
# NOTE: Uses start-stop-daemon in init script, so be sure
|
|
|
|
# to enable that within busybox
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-01-10 01:18:04 +01:00
|
|
|
#Old version 2.6
|
|
|
|
VTUN_VERSION:=3.0.2
|
2007-07-11 16:06:06 +02:00
|
|
|
VTUN_SOURCE:=vtun-$(VTUN_VERSION).tar.gz
|
2005-06-09 14:15:00 +02:00
|
|
|
VTUN_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/vtun/
|
2007-07-11 16:06:06 +02:00
|
|
|
VTUN_DIR:=$(BUILD_DIR)/vtun-$(VTUN_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
VTUN_CAT:=$(ZCAT)
|
2003-06-05 10:27:41 +02:00
|
|
|
VTUN_BINARY:=vtund
|
|
|
|
VTUN_TARGET_BINARY:=usr/sbin/vtund
|
2003-06-05 10:19:53 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(VTUN_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(VTUN_SITE)/$(VTUN_SOURCE)
|
|
|
|
|
|
|
|
vtun-source: $(DL_DIR)/$(VTUN_SOURCE)
|
|
|
|
|
|
|
|
$(VTUN_DIR)/.unpacked: $(DL_DIR)/$(VTUN_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(VTUN_CAT) $(DL_DIR)/$(VTUN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2009-01-10 01:18:04 +01:00
|
|
|
touch $@
|
2003-06-05 10:19:53 +02:00
|
|
|
|
2009-01-10 01:18:04 +01:00
|
|
|
$(VTUN_DIR)/.patched: $(VTUN_DIR)/.unpacked
|
|
|
|
toolchain/patch-kernel.sh $(VTUN_DIR) package/vtun/ vtun-$(VTUN_VERSION)\*.patch
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(VTUN_DIR)/.configured: $(VTUN_DIR)/.patched
|
2003-06-05 10:19:53 +02:00
|
|
|
(cd $(VTUN_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2003-06-05 10:19:53 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2003-06-05 10:19:53 +02:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2007-06-22 00:07:24 +02:00
|
|
|
--with-ssl-headers=$(STAGING_DIR)/usr/include/openssl \
|
|
|
|
--with-lzo-headers=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-lzo-lib=$(STAGING_DIR)/usr/lib \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2004-10-09 22:27:29 +02:00
|
|
|
touch $(VTUN_DIR)/.configured
|
2003-06-05 10:19:53 +02:00
|
|
|
|
|
|
|
$(VTUN_DIR)/$(VTUN_BINARY): $(VTUN_DIR)/.configured
|
|
|
|
$(MAKE) -C $(VTUN_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(VTUN_TARGET_BINARY): $(VTUN_DIR)/$(VTUN_BINARY)
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(VTUN_DIR) install
|
|
|
|
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
|
|
|
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
|
|
|
|
2004-10-09 22:27:29 +02:00
|
|
|
vtun: uclibc zlib lzo openssl $(TARGET_DIR)/$(VTUN_TARGET_BINARY)
|
2003-06-05 10:19:53 +02:00
|
|
|
|
2009-01-10 01:18:04 +01:00
|
|
|
vtun-unpacked: $(VTUN_DIR)/.unpacked
|
|
|
|
|
|
|
|
vtun-patched: $(VTUN_DIR)/.patched
|
|
|
|
|
2003-06-05 10:19:53 +02:00
|
|
|
vtun-clean:
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(VTUN_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(VTUN_DIR) clean
|
|
|
|
|
|
|
|
vtun-dirclean:
|
|
|
|
rm -rf $(VTUN_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_VTUN),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=vtun
|
|
|
|
endif
|