forked from x-wrt/routing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vis: Extract vis package from batmand
The batmand and vis sources are actually stored in two different repositories. It therefore makes more sense to have these two packages also split in two different OpenWrt packages. This also allows to get the vis sources directly from the git repository. The SVN version of vis r1439 was actually r1346. The git export of revision r1346 is referenced by this commit. Signed-off-by: Sven Eckelmann <[email protected]>
- Loading branch information
Showing
4 changed files
with
74 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# | ||
# Copyright (C) 2008-2011 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=vis | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=git://git.open-mesh.org/vis.git | ||
PKG_REV:=e141311c6a4fc824efbad536c137ed279905d825 | ||
PKG_VERSION:=1440 | ||
PKG_RELEASE:=0 | ||
PKG_LICENSE:=GPL-2.0 | ||
|
||
PKG_SOURCE_VERSION:=$(PKG_REV) | ||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) | ||
|
||
PKG_EXTRA_CFLAGS=-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA -DREVISION_VERSION=\"\ rv$(PKG_REV)\" -D_GNU_SOURCE | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/vis | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=Routing and Redirection | ||
DEPENDS:=+libpthread | ||
TITLE:=visualization server for B.A.T.M.A.N. layer 3 | ||
URL:=https://www.open-mesh.org/ | ||
MAINTAINER:=Corinna "Elektra" Aichele <[email protected]> | ||
endef | ||
|
||
define Package/vis/description | ||
visualization server for B.A.T.M.A.N. layer 3 | ||
endef | ||
|
||
MAKE_VIS_ARGS += \ | ||
EXTRA_CFLAGS='$(TARGET_CFLAGS) $(PKG_EXTRA_CFLAGS)' \ | ||
CCFLAGS="$(TARGET_CFLAGS)" \ | ||
OFLAGS="$(TARGET_CFLAGS)" \ | ||
REVISION="$(PKG_REV)" \ | ||
CC="$(TARGET_CC)" \ | ||
NODEBUG=1 \ | ||
UNAME="Linux" \ | ||
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ | ||
STRIP="/bin/true" \ | ||
vis install | ||
|
||
|
||
define Build/Configure | ||
endef | ||
|
||
define Build/Compile | ||
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_VIS_ARGS) | ||
endef | ||
|
||
define Package/vis/install | ||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/vis $(1)/usr/sbin/ | ||
$(INSTALL_BIN) ./files/etc/init.d/vis $(1)/etc/init.d | ||
$(INSTALL_DATA) ./files/etc/config/vis $(1)/etc/config | ||
endef | ||
|
||
define Package/vis/conffiles | ||
/etc/config/vis | ||
endef | ||
|
||
$(eval $(call BuildPackage,vis)) |
File renamed without changes.
File renamed without changes.