madwifi: mark as broken, it has been found to cause kernel crashes even when not attached to a device
[openwrt.org/packages.git] / ipv6 / miredo / Makefile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=miredo
PKG_VERSION:=1.2.4
PKG_RELEASE:=3
 
PKG_SOURCE_URL:=http://www.remlab.net/files/miredo
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_MD5SUM:=1281e7e75bddbde244cd778d99fa22d4
 
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
 
define Package/miredo/Default
  SECTION:=net
  CATEGORY:=Network
  SUBMENU:=miredo: Teredo (IPv6 tunneling over UDP through NAT)
  URL:=http://www.remlab.net/miredo/
endef
 
define Package/miredo-common
$(call Package/miredo/Default)
  TITLE:=Teredo (IPv6 tunneling over UDP through NAT) shared libraries
  DEPENDS+= +ip +libpthread +librt $(CXX_DEPENDS) +kmod-ipv6 +kmod-tun
endef
 
define Package/miredo-server
$(call Package/miredo/Default)
  TITLE:=Teredo (IPv6 tunneling over UDP through NAT) server daemon
  DEPENDS+= +miredo-common
endef
 
define Package/miredo-server/conffiles
/etc/miredo/miredo-server.conf
endef
 
define Package/miredo-client
$(call Package/miredo/Default)
  TITLE:=Teredo (IPv6 tunneling over UDP through NAT) client and relay daemon
  DEPENDS+= +miredo-common
endef
 
define Package/miredo-client/conffiles
/etc/miredo/miredo.conf
endef
 
CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
        --with-gnu-ld \
        --disable-rpath \
        --disable-chroot \
        --enable-teredo-client \
        --enable-miredo-user=root \
        --without-Judy
 
EXTRA_CXXFLAGS=-fno-rtti
 
CONFIGURE_VARS += \
        LIBS="-lm" \
        ac_cv_file__proc_self_maps=yes \
        ac_cv_header_sys_capability_h=no
 
MAKE_FLAGS := CXXLINK="$(TARGET_CXX)"
 
define Package/miredo-common/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{teredo,tun6}.so.* $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/miredo
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/miredo/miredo-privproc $(1)/usr/lib/miredo
endef
 
define Package/miredo-server/install
        $(INSTALL_DIR) $(1)/etc/miredo
        $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo-server.conf $(1)/etc/miredo/miredo-server.conf
        $(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/miredo-server.init $(1)/etc/init.d/miredo-server
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo-server $(1)/usr/sbin/
endef
 
define Package/miredo-client/install
        $(INSTALL_DIR) $(1)/etc/miredo
        $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo.conf $(1)/etc/miredo/miredo.conf
        $(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/miredo.init $(1)/etc/init.d/miredo
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo $(1)/usr/sbin/
endef
 
$(eval $(call BuildPackage,miredo-common))
$(eval $(call BuildPackage,miredo-server))
$(eval $(call BuildPackage,miredo-client))
 
comments