source: packages/net/bmxd/Makefile @ 22389

Last change on this file since 22389 was 22389, checked in by axel, 6 years ago

packages/net/bmxd: use stable branches/bmxd-0.3.x (instead of upcoming, unstable, and incompatible trunk/bmxd v0.4)
bmxd-0.3.x is fully compatible to former trunk/batman-experimental

File size: 1.7 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=bmxd
11PKG_SOURCE_URL:=http://downloads.open-mesh.net/svn/batman/branches/bmx-0.3.x/
12
13PKG_REV:=1707
14PKG_VERSION:=r$(PKG_REV)
15PKG_RELEASE:=1
16PKG_EXTRA_CFLAGS:=-DNODEBUGALL
17
18PKG_SOURCE_PROTO:=svn
19PKG_SOURCE_VERSION:=$(PKG_REV)
20PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
22PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
23
24include $(INCLUDE_DIR)/package.mk
25
26define Package/bmxd/Default
27  URL:=https://www.open-mesh.net/
28  MAINTAINER:=Axel Neumann <bmxd@neumann.cgws.de>
29endef
30
31define 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
37endef
38
39define Package/bmxd/conffiles
40/etc/config/bmxd
41endef
42
43
44define Package/bmxd/description
45B.a.t.M.a.n. eXperimental (BMX) layer 3 routing daemon
46endef
47
48MAKE_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
60define Build/Compile
61        mkdir -p $(PKG_INSTALL_DIR)/usr/sbin
62        $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS)
63endef
64
65define 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
70endef
71
72$(eval $(call BuildPackage,bmxd))
Note: See TracBrowser for help on using the repository browser.