2008-01-21 00:56:34 +00:00
|
|
|
#
|
2011-11-16 20:02:41 +00:00
|
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
2007-03-17 03:59:59 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2007-07-31 19:42:13 +00:00
|
|
|
PKG_NAME:=batmand
|
2007-03-17 03:59:59 +00:00
|
|
|
|
2017-01-18 13:34:16 +01:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2018-07-12 16:50:47 +02:00
|
|
|
PKG_SOURCE_URL:=https://git.open-mesh.org/batmand.git
|
2017-01-18 13:34:16 +01:00
|
|
|
PKG_REV:=b67a7087b51d7a5e90d27ac39116d1f57257c86e
|
|
|
|
PKG_VERSION:=1440
|
2019-07-27 23:33:35 +02:00
|
|
|
PKG_RELEASE:=1
|
2014-11-03 13:16:46 +01:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2007-03-17 03:59:59 +00:00
|
|
|
|
2017-01-18 13:34:16 +01:00
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
|
2017-01-25 09:51:44 +01:00
|
|
|
PKG_MIRROR_HASH:=ceb8e0e399f79b1b663594fcf9642e1efc40e696a7604daf709c77da9b6ec52f
|
2017-01-18 13:34:16 +01:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
|
|
|
|
2022-02-19 09:11:11 +01:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2007-03-17 03:59:59 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2019-07-27 21:52:58 +02:00
|
|
|
define Package/batmand
|
2017-01-18 12:59:53 +01:00
|
|
|
URL:=https://www.open-mesh.org/
|
2017-01-18 13:01:20 +01:00
|
|
|
MAINTAINER:=Corinna "Elektra" Aichele <onelektra@gmx.net>
|
2008-03-16 18:32:13 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 06:55:07 +00:00
|
|
|
SUBMENU:=Routing and Redirection
|
2007-03-17 03:59:59 +00:00
|
|
|
DEPENDS:=+libpthread +kmod-tun
|
2008-01-21 00:56:34 +00:00
|
|
|
TITLE:=B.A.T.M.A.N. layer 3 routing daemon
|
2007-03-17 03:59:59 +00:00
|
|
|
endef
|
|
|
|
|
2008-01-16 19:15:46 +00:00
|
|
|
define Package/batmand/description
|
|
|
|
B.A.T.M.A.N. layer 3 routing daemon
|
|
|
|
endef
|
|
|
|
|
2019-07-27 22:10:04 +02:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
EXTRA_CFLAGS='-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA -DREVISION_VERSION=\"\ rv$(PKG_REV)\" -D_GNU_SOURCE' \
|
2008-01-21 00:56:34 +00:00
|
|
|
REVISION="$(PKG_REV)" \
|
2008-01-16 19:15:46 +00:00
|
|
|
CC="$(TARGET_CC)" \
|
2007-07-31 19:42:13 +00:00
|
|
|
UNAME="Linux" \
|
2019-07-27 22:02:50 +02:00
|
|
|
batmand
|
2009-04-21 19:16:40 +00:00
|
|
|
|
2008-01-16 19:15:46 +00:00
|
|
|
define Package/batmand/install
|
2007-07-31 22:08:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
|
2019-07-27 22:02:50 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/batmand $(1)/usr/sbin/
|
2008-01-16 19:15:46 +00:00
|
|
|
$(INSTALL_BIN) ./files/etc/init.d/batmand $(1)/etc/init.d
|
|
|
|
$(INSTALL_DATA) ./files/etc/config/batmand $(1)/etc/config
|
2007-03-17 03:59:59 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/batmand/conffiles
|
|
|
|
/etc/config/batmand
|
|
|
|
endef
|
|
|
|
|
2008-01-16 19:15:46 +00:00
|
|
|
$(eval $(call BuildPackage,batmand))
|