3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= 309534fd03c5d13a19c43916f61f4bbf
10 PKG_SOURCE_URL
:= @SF
/vtun
11 PKG_SOURCE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,VTUN
,vtun
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 $(PKG_BUILD_DIR
)/.configured
:
20 (cd
$(PKG_BUILD_DIR
) ; \
21 $(TARGET_CONFIGURE_OPTS
) \
22 CFLAGS
="$(TARGET_CFLAGS) \
23 -I$(STAGING_DIR)/usr/include" \
24 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
33 --libexecdir
=/usr
/lib \
34 --datadir=/usr
/share \
35 --infodir=/usr
/share
/info \
36 --mandir=/usr
/share
/man \
37 --localstatedir
=/var \
39 --with-kernel
=$(LINUX_DIR
) \
40 --with-zlib
=$(STAGING_DIR
)/usr
/ \
41 --with-lzo-headers
=$(STAGING_DIR
)/usr
/include \
42 --with-lzo-libs
=$(STAGING_DIR
)/usr
/lib \
44 touch
$(PKG_BUILD_DIR
)/.configured
46 $(PKG_BUILD_DIR
)/.built
:
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 CFLAGS
="$(TARGET_CFLAGS) \
50 -I$(STAGING_DIR)/usr/include" \
51 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -lssl -lz -llzo -lcrypto" \
56 mkdir
-p
$(IDIR_VTUN
)/usr
/sbin
57 cp
$(PKG_BUILD_DIR
)/vtund
$(IDIR_VTUN
)/usr
/sbin
/
58 $(STRIP
) $(IDIR_VTUN
)/usr
/sbin
/*
59 mkdir
-p
$(IDIR_VTUN
)/etc
60 cp
$(PKG_BUILD_DIR
)/vtund.conf
$(IDIR_VTUN
)/etc
61 $(IPKG_BUILD
) $(IDIR_VTUN
) $(PACKAGE_DIR
)