2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE_URL
:=http
://www.remlab.net
/files
/miredo
/
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_MD5SUM
:=b5a51cb98732decc2ada96b2caee5d3c
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/miredo
/Default
24 DEPENDS
:=+libpthread
+uclibcxx
+kmod-ipv6
+kmod-tun
25 SUBMENU
:=miredo
: Teredo
(IPv6 tunneling over UDP through NAT
)
26 URL
:=http
://www.simphalempin.com
/dev
/miredo
/
29 define Package
/miredo-server
30 $(call Package
/miredo
/Default
)
31 TITLE
:=Teredo
(IPv6 tunneling over UDP through NAT
) server daemon
34 define Package
/miredo-server
/conffiles
35 /etc
/miredo-server.conf
38 define Package
/miredo-client
39 $(call Package
/miredo
/Default
)
40 TITLE
:=Teredo
(IPv6 tunneling over UDP through NAT
) client and relay daemon
43 define Package
/miredo-client
/conffiles
53 --enable-teredo-client \
54 --enable-teredo-relay \
55 --enable-teredo-server \
56 --enable-miredo-user
=root \
59 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
60 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
61 LIBS
="-nodefaultlibs -luClibc++ -lm" \
62 ac_cv_file__proc_self_maps
=yes\
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
66 CXXLINK
="\$$$$(LINK)" \
67 DESTDIR
="$(PKG_INSTALL_DIR)" \
71 define Package
/miredo-server
/install
72 $(INSTALL_DIR
) $(1)/etc
/
73 $(CP
) $(PKG_INSTALL_DIR
)/etc
/miredo-server.conf-dist
$(1)/etc
/miredo-server.conf
74 $(INSTALL_DIR
) $(1)/etc
/init.d
75 $(INSTALL_BIN
) .
/files
/miredo-server.init
$(1)/etc
/init.d
/miredo-server
76 $(INSTALL_DIR
) $(1)/usr
/sbin
77 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/miredo-server
$(1)/usr
/sbin
/
80 define Package
/miredo-client
/install
81 $(INSTALL_DIR
) $(1)/etc
82 $(CP
) $(PKG_INSTALL_DIR
)/etc
/miredo.conf-dist
$(1)/etc
/miredo.conf
83 $(INSTALL_DIR
) $(1)/etc
/init.d
84 $(INSTALL_BIN
) .
/files
/miredo.init
$(1)/etc
/init.d
/miredo
85 $(INSTALL_DIR
) $(1)/usr
/sbin
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/miredo
$(1)/usr
/sbin
/
89 $(eval
$(call BuildPackage
,miredo-server
))
90 $(eval
$(call BuildPackage
,miredo-client
))