1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=b325fa9d238e32195fbb3fc3646b0d28
8 PKG_SOURCE_URL
:=http
://toxygen.net
/6tunnel
/
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-0.11
13 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,6TUNNEL
,6tunnel
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 $(PKG_BUILD_DIR
)/.configured
:
20 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
21 $(TARGET_CONFIGURE_OPTS
) \
22 CFLAGS
="$(TARGET_CFLAGS)" \
23 ac_cv_path_STRIP
=$(STRIP
) \
24 ac_cv_func_vsnprintf
=yes \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
34 --datadir=/usr
/share \
35 --includedir=/usr
/include \
36 --infodir=/usr
/share
/info \
38 --libexecdir
=/usr
/lib \
39 --localstatedir
=/var \
40 --mandir=/usr
/share
/man \
43 $(DISABLE_LARGEFILE
) \
48 $(PKG_BUILD_DIR
)/.built
:
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 install -d
-m0755
$(IDIR_6TUNNEL
)/usr
/sbin
55 cp
-fpR
$(PKG_BUILD_DIR
)/6tunnel
$(IDIR_6TUNNEL
)/usr
/sbin
/
56 $(RSTRIP
) $(IDIR_6TUNNEL
)/
57 $(IPKG_BUILD
) $(IDIR_6TUNNEL
) $(PACKAGE_DIR
)