1 #############################################################
5 # NOTE: Uses start-stop-daemon in init script, so be sure
6 # to enable that within busybox
8 #############################################################
9 VTUN_SOURCE
:=vtun-2.6.
tar.gz
10 VTUN_SITE
:=http
://aleron.dl.sourceforge.net
/sourceforge
/vtun
/
11 VTUN_DIR
:=$(BUILD_DIR
)/vtun-2.6
14 VTUN_TARGET_BINARY
:=usr
/sbin
/vtund
15 VTUN_PATCH
:=$(SOURCE_DIR
)/vtun.patch
17 $(DL_DIR
)/$(VTUN_SOURCE
):
18 $(WGET
) -P
$(DL_DIR
) $(VTUN_SITE
)/$(VTUN_SOURCE
)
20 vtun-source
: $(DL_DIR
)/$(VTUN_SOURCE
)
22 $(VTUN_DIR
)/.unpacked
: $(DL_DIR
)/$(VTUN_SOURCE
)
23 $(VTUN_CAT
) $(DL_DIR
)/$(VTUN_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
24 mv
$(BUILD_DIR
)/vtun
$(VTUN_DIR
)
25 cat
$(VTUN_PATCH
) | patch
-p1
-d
$(VTUN_DIR
)
26 touch
$(VTUN_DIR
)/.unpacked
28 $(VTUN_DIR
)/.configured
: $(VTUN_DIR
)/.unpacked zlib lzo openssl
29 (cd
$(VTUN_DIR
); rm -rf config.cache
; \
30 $(TARGET_CONFIGURE_OPTS
) \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
39 --libexecdir
=/usr
/lib \
41 --datadir=/usr
/share \
42 --localstatedir
=/var \
45 --with-ssl-headers
=$(STAGING_DIR
)/include/openssl \
46 --with-lzo-headers
=$(STAGING_DIR
)/include \
48 touch
$(VTUN_DIR
)/.configured
50 $(VTUN_DIR
)/$(VTUN_BINARY
): $(VTUN_DIR
)/.configured
51 $(MAKE
) -C
$(VTUN_DIR
)
53 $(TARGET_DIR
)/$(VTUN_TARGET_BINARY
): $(VTUN_DIR
)/$(VTUN_BINARY
)
54 $(MAKE
) DESTDIR
=$(TARGET_DIR
) -C
$(VTUN_DIR
) install
55 rm -rf
$(TARGET_DIR
)/share
/locale
$(TARGET_DIR
)/usr
/info \
56 $(TARGET_DIR
)/usr
/man
$(TARGET_DIR
)/usr
/share
/doc
58 vtun
: uclibc
$(TARGET_DIR
)/$(VTUN_TARGET_BINARY
)
61 $(MAKE
) DESTDIR
=$(TARGET_DIR
) -C
$(VTUN_DIR
) uninstall
62 -$(MAKE
) -C
$(VTUN_DIR
) clean