summaryrefslogtreecommitdiff
path: root/package/miredo/Makefile
blob: f63354fbe65b8d5570545f94e199290b8c6ce4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		miredo
PKG_VERSION:=		1.2.6
PKG_RELEASE:=		2
PKG_MD5SUM:=		5bcdbaced54f40b6cb1e9c9a8dbac411
PKG_DESCR:=		A Teredo client and relay daemon
PKG_SECTION:=		ipv6
PKG_BUILDDEP:=		autotool
PKG_URL:=		http://www.remlab.net/
PKG_SITES:=		http://www.remlab.net/files/miredo/

PKG_SUBPKGS:=		MIREDO MIREDO_SERVER

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,MIREDO,miredo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,MIREDO_SERVER,miredo-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

AUTOTOOL_STYLE:=	autoreconf
TARGET_CFLAGS+=		-std=gnu99
CONFIGURE_ENV+=		ac_cv_file__proc_self_maps=yes
CONFIGURE_ARGS+=	--without-Judy \
			--without-libcap \
			--enable-teredo-client \
			--enable-miredo-user=root

XAKE_FLAGS+=		 CXXLINK="\$${LINK}" \

miredo-install:
	${INSTALL_DIR} ${IDIR_MIREDO}/etc/miredo ${IDIR_MIREDO}/usr/sbin
	${INSTALL_DIR} ${IDIR_MIREDO}/usr/lib
	${INSTALL_DATA} ${WRKINST}/etc/miredo/miredo.conf \
		${IDIR_MIREDO}/etc/miredo
	${CP} ${WRKINST}/usr/lib/libtun*.so* ${IDIR_MIREDO}/usr/lib
	${CP} ${WRKINST}/usr/lib/libteredo.so* ${IDIR_MIREDO}/usr/lib
	${INSTALL_BIN} ${WRKINST}/usr/sbin/miredo ${IDIR_MIREDO}/usr/sbin/

miredo-server-install:
	${INSTALL_DIR} ${IDIR_MIREDO_SERVER}/usr/sbin
	${INSTALL_BIN} ${WRKINST}/usr/sbin/miredo-server \
		${IDIR_MIREDO_SERVER}/usr/sbin/

include ${TOPDIR}/mk/pkg-bottom.mk