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
32 #PKG_SOURCE_URL:=git://git.bmx6.net/bmx6.git
33 PKG_SOURCE_URL
:=git
://github.com
/axn
/bmx6.git
35 PKG_REV
:=7219010098ea67f8ea08a06a68e7a765b114ca16
38 #PKG_SOURCE_URL:=file:///usr/src/bmx6/bmx6-private.git
40 PKG_VERSION
:=r2013022001
43 #PKG_INSTALL:=1 # this tries to install straight to /usr/sbin/bmx6
45 PKG_SOURCE_VERSION
:=$(PKG_REV
)
46 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
47 PKG_SOURCE
:=$(PKG_SOURCE_SUBDIR
).
tar.gz
48 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_SOURCE_SUBDIR
)
50 include $(INCLUDE_DIR
)/package.mk
53 TARGET_CFLAGS
+= $(FPIC
)
55 #-DNO_TRAFFIC_DUMP -DNO_DYN_PLUGIN -DNO_DEBUG_DUMP -DNO_DEBUG_ALL -DNO_DEBUG_TRACK -DNO_DEBUG_SYS
58 EXTRA_CFLAGS
="$(TARGET_CFLAGS) -I. -I$(STAGING_DIR)/usr/include -DNO_DEBUG_ALL -DNO_DEBUG_DUMP" \
59 EXTRA_LDFLAGS
="-L$(STAGING_DIR)/usr/lib " \
60 REVISION_VERSION
="$(PKG_REV)" \
62 INSTALL_DIR
="$(PKG_INSTALL_DIR)" \
67 define Package
/bmx6-qmp
/Default
70 TITLE
:=BMX6 layer
3 routing daemon
(QMP version
)
72 MAINTAINER
:=Axel Neumann
<neumann@cgws.de
>
75 define Package
/bmx6-qmp
/description
76 BMX6 layer
3 routing daemon
(QMP version
) supporting IPv4
, IPv6
, and IPv4 over IPv6
- http
://www.bmx6.net
79 define Package
/bmx6-qmp
80 $(call Package
/bmx6-qmp
/Default
)
84 define Package
/bmx6-qmp-uci-config
85 $(call Package
/bmx6-qmp
/Default
)
86 DEPENDS
:=bmx6-qmp
+libuci
87 TITLE
:=configuration plugin based on uci
(recommended
!)
91 define Package
/bmx6-qmp-json
92 $(call Package
/bmx6-qmp
/Default
)
93 DEPENDS
:=bmx6-qmp
+libjson
94 TITLE
:=josn plugin based on jsonc
97 define Package
/bmx6-qmp-sms
98 $(call Package
/bmx6-qmp
/Default
)
103 define Package
/bmx6-qmp-quagga
104 $(call Package
/bmx6-qmp
/Default
)
105 DEPENDS
:=bmx6-qmp
+qmp-quagga
106 TITLE
:=bmx6 quagga plugin to redistribute
/export routes
(needs manet
/bmx6 patched quagga
0.99.21)
109 define Build
/Configure
110 mkdir
-p
$(PKG_INSTALL_DIR
)
114 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(MAKE_ARGS
)
118 define Package
/bmx6-qmp
/install
119 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/config
$(1)/etc
/init.d
120 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bmx6
$(1)/usr
/sbin
/bmx6
124 define Package
/bmx6-qmp-uci-config
/conffiles
129 define Package
/bmx6-qmp-uci-config
/install
130 $(INSTALL_DIR
) $(1)/usr
/lib
$(1)/etc
/config
$(1)/etc
/init.d
131 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_uci_config
/bmx6_config.so
$(1)/usr
/lib
/bmx6_config.so
132 $(INSTALL_BIN
) .
/files
/etc
/init.d
/bmx6
$(1)/etc
/init.d
/bmx6
133 $(INSTALL_DATA
) .
/files
/etc
/config
/bmx6
$(1)/etc
/config
/bmx6
136 define Package
/bmx6-qmp-json
/install
137 $(INSTALL_DIR
) $(1)/usr
/lib
138 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_json
/bmx6_json.so
$(1)/usr
/lib
/bmx6_json.so
141 define Package
/bmx6-qmp-sms
/install
142 $(INSTALL_DIR
) $(1)/usr
/lib
143 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_sms
/bmx6_sms.so
$(1)/usr
/lib
/bmx6_sms.so
146 define Package
/bmx6-qmp-quagga
/install
147 $(INSTALL_DIR
) $(1)/usr
/lib
148 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/bmx6_quagga
/bmx6_quagga.so
$(1)/usr
/lib
/bmx6_quagga.so
151 $(eval
$(call BuildPackage
,bmx6-qmp
))
152 $(eval
$(call BuildPackage
,bmx6-qmp-uci-config
))
153 $(eval
$(call BuildPackage
,bmx6-qmp-json
))
154 $(eval
$(call BuildPackage
,bmx6-qmp-sms
))
155 $(eval
$(call BuildPackage
,bmx6-qmp-quagga
))