1 # Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License along
14 # with this program; if not, write to the Free Software Foundation, Inc.,
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 # The full GNU General Public License is included in this distribution in
18 # the file called "COPYING".
21 # Axel Neumann, Simó Albert i Beltran, Pau Escrich
25 include $(TOPDIR
)/rules.mk
28 PKG_VERSION
:=0.1-alpha
32 PKG_SOURCE_URL
:=https
://github.com
/bmx-routing
/bmx6.git
33 PKG_SOURCE_DATE
:=2020-06-08
34 PKG_SOURCE_VERSION
:=65cb0d542f16a4b4689f5ad2542c9f24215a6616
35 PKG_MIRROR_HASH
:=45501cfe9f82e08e8082147f90b94ba5b6bd11771a9140412bfbf5523a796177
37 PKG_MAINTAINER
:=Axel Neumann
<neumann@cgws.de
>
38 PKG_LICENSE
:=GPL-2.0
-or-later
40 include $(INCLUDE_DIR
)/package.mk
42 TARGET_CFLAGS
+= $(FPIC
)
45 EXTRA_CFLAGS
="$(TARGET_CFLAGS) -I. -I$(STAGING_DIR)/usr/include -DNO_DEBUG_ALL -DNO_DEBUG_DUMP" \
46 EXTRA_LDFLAGS
="-L$(STAGING_DIR)/usr/lib " \
47 GIT_REV
="$(PKG_REV)" \
49 INSTALL_DIR
="$(PKG_INSTALL_DIR)" \
53 define Package
/bmx6
/Default
56 SUBMENU
:=Routing and Redirection
57 TITLE
:=BMX6 layer
3 routing daemon
58 URL
:=https
://bmx6.net
/projects
/bmx6
59 DEPENDS
:=+kmod-ip6-tunnel
+kmod-iptunnel6
+kmod-tun
62 define Package
/bmx6
/description
63 BMX6 layer
3 routing daemon supporting IPv4
, IPv6
, and IPv4 over IPv6
67 $(call Package
/bmx6
/Default
)
71 define Package
/bmx6-uci-config
72 $(call Package
/bmx6
/Default
)
74 TITLE
:=configuration plugin based on uci
(recommended
!)
77 define Package
/bmx6-json
78 $(call Package
/bmx6
/Default
)
79 DEPENDS
:=bmx6
+libjson-c
80 TITLE
:=json plugin based on json-c
83 define Package
/bmx6-sms
84 $(call Package
/bmx6
/Default
)
89 #define Package/bmx6-quagga
90 # $(call Package/bmx6/Default)
91 # DEPENDS:=bmx6 +qmp-quagga @BROKEN
92 # TITLE:=bmx6 quagga plugin to redistribute/export routes (needs manet/bmx6 patched quagga 0.99.21)
95 define Package
/bmx6-table
96 $(call Package
/bmx6
/Default
)
98 TITLE
:=bmx6 table plugin to automatic announce routing-table routes via ip6ip tunnels
101 define Build
/Configure
102 mkdir
-p
$(PKG_INSTALL_DIR
)
106 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(MAKE_ARGS
)
109 define Package
/bmx6
/install
110 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/config
$(1)/etc
/init.d
111 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bmx6
$(1)/usr
/sbin
/bmx6
114 define Package
/bmx6-uci-config
/conffiles
118 define Package
/bmx6-uci-config
/install
119 $(INSTALL_DIR
) $(1)/usr
/lib
$(1)/etc
/config
$(1)/etc
/init.d
120 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_uci_config
/bmx6_config.so
$(1)/usr
/lib
/bmx6_config.so
121 $(INSTALL_BIN
) .
/files
/etc
/init.d
/bmx6
$(1)/etc
/init.d
/bmx6
122 $(INSTALL_DATA
) .
/files
/etc
/config
/bmx6
$(1)/etc
/config
/bmx6
125 define Package
/bmx6-json
/install
126 $(INSTALL_DIR
) $(1)/usr
/lib
127 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_json
/bmx6_json.so
$(1)/usr
/lib
/bmx6_json.so
130 define Package
/bmx6-sms
/install
131 $(INSTALL_DIR
) $(1)/usr
/lib
132 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_sms
/bmx6_sms.so
$(1)/usr
/lib
/bmx6_sms.so
135 define Package
/bmx6-table
/install
136 $(INSTALL_DIR
) $(1)/usr
/lib
137 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_table
/bmx6_table.so
$(1)/usr
/lib
/bmx6_table.so
140 #define Package/bmx6-quagga/install
141 # $(INSTALL_DIR) $(1)/usr/lib
142 # $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_quagga/bmx6_quagga.so $(1)/usr/lib/bmx6_quagga.so
145 $(eval
$(call BuildPackage
,bmx6
))
146 $(eval
$(call BuildPackage
,bmx6-uci-config
))
147 $(eval
$(call BuildPackage
,bmx6-json
))
148 $(eval
$(call BuildPackage
,bmx6-sms
))
149 #$(eval $(call BuildPackage,bmx6-quagga))
150 $(eval
$(call BuildPackage
,bmx6-table
))