3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=309534fd03c5d13a19c43916f61f4bbf
10 PKG_SOURCE_URL
:=@SF
/vtun
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,VTUN
,vtun
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
:
21 (cd
$(PKG_BUILD_DIR
) ; rm -rf config.
{cache
,status
} ; \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
25 LIBS
="-L$(STAGING_DIR)/usr/lib" \
26 BLOWFISH_HDR_DIR
="$(STAGING_DIR)/usr/include/openssl" \
27 LZO_HDR_DIR
="$(STAGING_DIR)/usr/include" \
28 SSL_HDR_DIR
="$(STAGING_DIR)/usr/include/openssl" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
52 $(PKG_BUILD_DIR
)/.built
:
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 install -m0755
-d
$(IDIR_VTUN
)/etc
59 install -m0600
$(PKG_BUILD_DIR
)/vtund.conf
$(IDIR_VTUN
)/etc
/
60 install -m0755
-d
$(IDIR_VTUN
)/usr
/sbin
61 install -m0755
$(PKG_BUILD_DIR
)/vtund
$(IDIR_VTUN
)/usr
/sbin
/
62 $(RSTRIP
) $(IDIR_VTUN
)
63 $(IPKG_BUILD
) $(IDIR_VTUN
) $(PACKAGE_DIR
)