Add bmx6 packages not existing because of the commit 8ff9eca4bc68b533a1c3d899a4d23b86...
[feed/routing.git] / bmxd / Makefile
1 #
2 # Copyright (C) 2008 Freifunk Leipzig
3 # Copyright (C) 2008-2010 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bmxd
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=git://github.com/axn/bmxd.git
15 PKG_REV:=9c1d12b554dccd2efde249f5e44a7d4de59ce1a8
16 PKG_VERSION:=r2012011001
17 #PKG_RELEASE:=1
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
22
23 PKG_EXTRA_CFLAGS:=-DNODEBUGALL
24
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/bmxd/Default
29 URL:=http://www.bmx6.net/
30 MAINTAINER:=Axel Neumann <neumann@cgws.de>
31 endef
32
33 define Package/bmxd
34 $(call Package/bmxd/Default)
35 SECTION:=net
36 CATEGORY:=Network
37 SUBMENU:=Routing and Redirection
38 DEPENDS:=+kmod-tun
39 TITLE:=B.a.t.M.a.n. eXperimental (BMX) layer 3 routing daemon
40 endef
41
42 define Package/bmxd/conffiles
43 /etc/config/bmxd
44 endef
45
46
47 define Package/bmxd/description
48 B.a.t.M.a.n. eXperimental (BMX) layer 3 routing daemon
49 endef
50
51 MAKE_ARGS += \
52 EXTRA_CFLAGS="$(TARGET_CFLAGS) $(PKG_EXTRA_CFLAGS)" \
53 CCFLAGS="$(TARGET_CFLAGS)" \
54 OFLAGS="$(TARGET_CFLAGS)" \
55 REVISION="$(PKG_REV)" \
56 CC="$(TARGET_CC)" \
57 NODEBUG=1 \
58 UNAME="Linux" \
59 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
60 STRIP="/bin/true" \
61 bmxd install
62
63 define Build/Compile
64 mkdir -p $(PKG_INSTALL_DIR)/usr/sbin
65 $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS)
66 endef
67
68 define Package/bmxd/install
69 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bmxd $(1)/usr/sbin/bmxd
71 $(INSTALL_BIN) ./files/etc/init.d/bmxd $(1)/etc/init.d
72 $(INSTALL_DATA) ./files/etc/config/bmxd $(1)/etc/config
73 endef
74
75 $(eval $(call BuildPackage,bmxd))