[Babel-users] mv from darcs to git
Gabriel Kerneis
kerneis at pps.jussieu.fr
Mon Feb 28 19:38:55 UTC 2011
On Mon, Feb 28, 2011 at 07:20:43PM +0100, Gioacchino Mazzurco wrote:
> ERROR: No download method available
I cannot reproduce this error, using your Makefile and a recent svn
checkout.
Did you update your openwrt copy in the last four months? Does
include/download.mk mention darcs? (And did you apply the patch I
sent?)
> > Add for instance:
> > PKG_SOURCE_SUBDIR=$(PACKAGE_NAME)-darcs
Hmm, this line is totally bogus (for at least two reasons). Sorry, use:
PKG_SOURCE_SUBDIR=$(PKG_NAME)-$
You also had an issue in the install part (because PKG_NAME is no longer
babeld).
I attach the (fixed) Makefile I used for the sucessful build.
Best,
--
Gabriel
-------------- next part --------------
#
# Copyright (C) 2007-2009 OpenWrt.org
# Copyright (C) 2011 Gioacchino Mazzurco <gmazzurco89 at gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file. If not, see <http://www.gnu.org/licenses/>.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=babelz
PKG_VERSION:=1.1.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=darcs
PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/repos/babelz/
PKG_SOURCE_VERSION:=babelz
PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:=A loop-free distance-vector routing protocol
URL:=http://www.pps.jussieu.fr/~jch/software/babel/
MAINTAINER:=Gioacchino Mazzurco <gmazzurco89 at gmail.com>
DEPENDS:=+kmod-ipv6 +librt
endef
define Package/$(PKG_NAME)/description
Babel is a loop-avoiding distance-vector routing protocol roughly based
on DSDV and AODV, but with provisions for link cost estimation and
redistribution of routes from other routing protocols.
While it is optimised for wireless mesh networks, Babel will also work
efficiently on wired networks. It will generate between 1.2 and 2.4 times
the amount of routing traffic that RIPng would generate, while
never counting to infinity.
endef
define Package/$(PKG_NAME)/conffiles
/etc/babeld.conf
/etc/config/babeld
endef
MAKE_FLAGS+= \
CFLAGS="$(TARGET_CFLAGS)" \
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/babeld.config $(1)/etc/config/babeld
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
More information about the Babel-users
mailing list