[packages] net/bmxd: Updated to revision 1075
[feed/routing.git] / Makefile
1 #
2 # Copyright (C) 2008 Freifunk Leipzig
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bmxd
12 PKG_SOURCE_URL:=http://downloads.open-mesh.net/svn/batman/trunk/batman-experimental/
13
14 PKG_REV:=1075
15 PKG_VERSION:=r$(PKG_REV)
16 PKG_RELEASE:=1
17
18 PKG_SOURCE_PROTO:=svn
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
23 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/bmxd/Default
28 URL:=https://www.open-mesh.net/
29 endef
30
31 define Package/bmxd
32 $(call Package/bmxd/Default)
33 SECTION:=net
34 CATEGORY:=Network
35 DEPENDS:=+libpthread +kmod-tun
36 TITLE:=B.A.T.M.A.N. Experimental (BMX) layer 3 routing daemon
37 endef
38
39 define Package/bmxd/description
40 B.A.T.M.A.N. Experimental (BMX) layer 3 routing daemon
41 endef
42
43 MAKE_ARGS += \
44 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
45 CCFLAGS="$(TARGET_CFLAGS)" \
46 OFLAGS="$(TARGET_CFLAGS)" \
47 REVISION="$(PKG_REV)" \
48 CC="$(TARGET_CC)" \
49 NODEBUG=1 \
50 UNAME="Linux" \
51 INSTALL_DIR="$(PKG_INSTALL_DIR)" \
52 STRIP="/bin/true" \
53 batmand install
54
55 define Build/Configure
56 mkdir -p $(PKG_INSTALL_DIR)/bin
57 endef
58
59 define Build/Compile
60 $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS)
61 endef
62
63 define Package/bmxd/install
64 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/batmand $(1)/usr/sbin/bmxd
66 $(INSTALL_BIN) ./files/etc/init.d/bmxd $(1)/etc/init.d
67 $(INSTALL_DATA) ./files/etc/config/bmxd $(1)/etc/config
68 endef
69
70 $(eval $(call BuildPackage,bmxd))