update to latest upstream
[openadk.git] / package / miredo / Makefile
blob3b05b4666f5a35b0225176c78332b60c41aab0c5
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= miredo
7 PKG_VERSION:= 1.2.6
8 PKG_RELEASE:= 2
9 PKG_HASH:= fa26d2f4a405415833669e2e2e22677b225d8f83600844645d5683535ea43149
10 PKG_DESCR:= teredo application
11 PKG_SECTION:= net/ipv6
12 PKG_URL:= http://www.remlab.net/
13 PKG_SITES:= http://www.remlab.net/files/miredo/
15 PKG_SUBPKGS:= MIREDO_CLIENT MIREDO_SERVER
16 PKGSD_MIREDO_CLIENT:= teredo client
17 PKGSD_MIREDO_SERVER:= teredo relay daemon
19 include ${ADK_TOPDIR}/mk/package.mk
21 $(eval $(call PKG_template,MIREDO_CLIENT,miredo-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MIREDO_CLIENT},${PKG_SECTION}))
22 $(eval $(call PKG_template,MIREDO_SERVER,miredo-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MIREDO_SERVER},${PKG_SECTION}))
24 AUTOTOOL_STYLE:= autoreconf
25 TARGET_CFLAGS+= -std=gnu99
26 CONFIGURE_ENV+= ac_cv_file__proc_self_maps=yes
27 CONFIGURE_ARGS+= --without-Judy \
28 --without-libcap \
29 --enable-teredo-client \
30 --enable-miredo-user=root
32 XAKE_FLAGS+= CXXLINK="\$${LINK}"
34 miredo-client-install:
35 ${INSTALL_DIR} ${IDIR_MIREDO_CLIENT}/etc/miredo ${IDIR_MIREDO_CLIENT}/usr/sbin
36 ${INSTALL_DIR} ${IDIR_MIREDO_CLIENT}/usr/lib
37 ${INSTALL_DATA} ${WRKINST}/etc/miredo/miredo.conf \
38 ${IDIR_MIREDO_CLIENT}/etc/miredo
39 ${CP} ${WRKINST}/usr/lib/libtun*.so* ${IDIR_MIREDO_CLIENT}/usr/lib
40 ${CP} ${WRKINST}/usr/lib/libteredo.so* ${IDIR_MIREDO_CLIENT}/usr/lib
41 ${INSTALL_BIN} ${WRKINST}/usr/sbin/miredo ${IDIR_MIREDO_CLIENT}/usr/sbin/
43 miredo-server-install:
44 ${INSTALL_DIR} ${IDIR_MIREDO_SERVER}/usr/sbin
45 ${INSTALL_BIN} ${WRKINST}/usr/sbin/miredo-server \
46 ${IDIR_MIREDO_SERVER}/usr/sbin/
48 include ${ADK_TOPDIR}/mk/pkg-bottom.mk