3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=63887373dd763f8d90cecc5a3616c363
10 PKG_SOURCE_URL
:=http
://www.tinc-vpn.org
/packages \
11 http
://ftp.yi.se
/pub
/tinc
/ \
12 http
://www.mirrors.wiretapped.net
/security
/network-security
/tinc
/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,TINC
,tinc
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
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 \
48 $(DISABLE_LARGEFILE
) \
49 --with-kernel
=$(LINUX_DIR
) \
50 --with-zlib
=$(STAGING_DIR
)/usr
/ \
54 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
55 rm -rf
$(PKG_INSTALL_DIR
)
56 mkdir
-p
$(PKG_INSTALL_DIR
)
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
59 CFLAGS
="$(TARGET_CFLAGS)" \
60 DESTDIR
="$(PKG_INSTALL_DIR)" \
65 install -m0755
-d
$(IDIR_TINC
)/usr
/sbin
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/tincd
$(IDIR_TINC
)/usr
/sbin
/
67 $(RSTRIP
) $(IDIR_TINC
)
68 $(IPKG_BUILD
) $(IDIR_TINC
) $(PACKAGE_DIR
)