mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-18 20:57:56 +00:00
Updated build files for openwrt (now all live in openwrt/). #26
This apparently works for building on openwrt, but servald segfaults when activating an interface.
This commit is contained in:
parent
be3b529504
commit
f7ee962df3
@ -1,33 +0,0 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=servald
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=1
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/servald
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=servald
|
||||
endef
|
||||
|
||||
define Package/servald/description
|
||||
Serval Distributed Numbering Architecture Reference Implementation
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
||||
$(TARGET_CC) $(PKG_BUILD_DIR)/*.c -o $(PKG_BUILD_DIR)/servald
|
||||
# $(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Package/servald/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/servald $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,servald))
|
38
openwrt/packages/serval-dna/Makefile
Normal file
38
openwrt/packages/serval-dna/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=serval-dna
|
||||
PKG_VERSION:=2012-10-29
|
||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/servalproject/serval-dna.git
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=be3b529504450680065008aab95e2ed3f1a5a3d5
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DEPENDS:=
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/serval-dna
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=serval-dna
|
||||
DEPENDS:=+libpthread +librt
|
||||
endef
|
||||
|
||||
define Package/serval-dna/description
|
||||
Serval Daemon
|
||||
endef
|
||||
|
||||
define Package/serval-dna/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/servald $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,serval-dna))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user