openwrt安装drcom

drcom源代码来自   https://github.com/coverxit/EasyDrcom

在编译过程中会遇到 <boost/property_tree/ini_parser.hpp> 不存在,那是因为openwrt里缺少boost库。谷歌搜索openwrt boost就解决了。

下面是EasyDrcom的Makefile。


include $(TOPDIR)/rules.mk

PKG_NAME:=easyDrcom
PKG_VERSION:=1.0
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=88ac3c2011cc52e6f20b1121659aa9a9d73acf84
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://github.com/coverxit/easyDrcom.git

include $(INCLUDE_DIR)/package.mk

define Build/Compile
	(cd $(PKG_BUILD_DIR); $(TARGET_CXX) -DOPENWRT -DLINUX -Os -s -std=c++0x -o easyDrcom md5.c main.cpp -lpcap -lpthread)
endef

define Package/easyDrcom
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+libpcap +boost +libpthread +libstdcpp
  TITLE:=easyDrcom
  URL:=https://github.com/coverxit/easyDrcom
endef

define Package/easyDrcom/description
easyDrcom
endef

define Package/easyDrcom/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/easyDrcom $(1)/usr/bin
endef

$(eval $(call BuildPackage,easyDrcom))


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值