[packages] /net/bmxd: update to revision 1636, adapt Makefile, do not overwrite ...
[openwrt/svn-archive/archive.git] / net / bmxd / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bmxd
11 PKG_SOURCE_URL:=http://downloads.open-mesh.net/svn/batman/trunk/batman-experimental/
12
13 PKG_REV:=1636
14 PKG_VERSION:=r$(PKG_REV)
15 PKG_RELEASE:=1
16 PKG_EXTRA_CFLAGS:=-DNODEBUGALL
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
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/bmxd/Default
27 URL:=https://www.open-mesh.net/
28 MAINTAINER:=Axel Neumann <bmxd@neumann.cgws.de>
29 endef
30
31 define Package/bmxd
32 $(call Package/bmxd/Default)
33 SECTION:=net
34 CATEGORY:=Network
35 DEPENDS:=+kmod-tun
36 TITLE:=B.a.t.M.a.n. eXperimental (BMX) layer 3 routing daemon
37 endef
38
39 define Package/bmxd/conffiles
40 /etc/config/bmxd
41 endef
42
43
44 define Package/bmxd/description
45 B.a.t.M.a.n. eXperimental (BMX) layer 3 routing daemon
46 endef
47
48 MAKE_ARGS += \
49 EXTRA_CFLAGS="$(TARGET_CFLAGS) $(PKG_EXTRA_CFLAGS)" \
50 CCFLAGS="$(TARGET_CFLAGS)" \
51 OFLAGS="$(TARGET_CFLAGS)" \
52 REVISION="$(PKG_REV)" \
53 CC="$(TARGET_CC)" \
54 NODEBUG=1 \
55 UNAME="Linux" \
56 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
57 STRIP="/bin/true" \
58 bmxd install
59
60 define Build/Compile
61 mkdir -p $(PKG_INSTALL_DIR)/usr/sbin
62 $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS)
63 endef
64
65 define Package/bmxd/install
66 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bmxd $(1)/usr/sbin/bmxd
68 $(INSTALL_BIN) ./files/etc/init.d/bmxd $(1)/etc/init.d
69 $(INSTALL_DATA) ./files/etc/config/bmxd $(1)/etc/config
70 endef
71
72 $(eval $(call BuildPackage,bmxd))