找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6793|回复: 7

分享两个自己编译的软件 aria2 和 dnsforwarder

[复制链接]
发表于 2014-7-6 16:51 | 显示全部楼层 |阅读模式
本帖最后由 tofuliang 于 2014-7-6 16:53 编辑

一直在用 Tomato bwq518 增强集成版 ,无奈集成的Aria2由于toolchain的问题,不能升级到1.18,自带的dnsforwarder也是老版本的,集成的下载器用的是wget,用https协议从服务器下载hosts文件的时候,会因为wget没有证书导致下载失败.
在这里均提供静态链接与动态链接的Aria2,dnsforwarder;
说明
aria2_1.18.5-1_entware_static.ipk 和 dnsforwarder_5.0.8-1_entware_static.ipk 都是静态链接的,没有任何依赖.

Aria2 包含的功能(所有功能都编译进去了):

** Configuration **
Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5
Libraries: zlib/1.2.8 libxml2/2.9.1 sqlite3/3.7.12.1 OpenSSL/1.0.1g c-ares/1.7.4

dnsforwarder 用的是V5的版本,可以定义多个hosts文件,程序架构上更适合对局域网提供DNS解析服务.
但是在链接libcurl.a时候报错,水平有限,解决不了(谁可以提供协助?这里有点资料,但是不知道加到哪里 http://blog.csdn.net/langeldep/article/details/6223649 ),集成下载器还是调用wget,不能用https下载host



aria2_1.18.5-1_entware.ipk 和 dnsforwarder_5.0.8-1_entware.ipk 是动态链接的,体积要小一点.
因为这个Aria2 比entware默认的多了Async DNS 和Firefox3 Cookie功能,相应的依赖也多了2个,

libcares(entware没有提供,由我提供) 和libsqlite3(entware已提供)
动态链接的dnsforwarder可以使用libcurl了,应该可以用https下载host,但是entware默认的libcurl启用的选项较少,我把能开的都开了,也提供上来,供大家选择.

附件限制,东西都放百度网盘了
http://pan.baidu.com/s/1hqkSbFe



我的恩山、我的无线 The best wifi forum is right here.
发表于 2014-7-6 17:09 | 显示全部楼层
dnsforwarder是干毛 的

点评

防止DNS污染的  详情 回复 发表于 2014-7-6 17:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-7-6 17:12 | 显示全部楼层
晕的,能不能直接上整合进去的啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-7-6 17:15 | 显示全部楼层
libcurl 要最小化编译,这样出来的 libcurl.a 就不会出错了:

  1. ./configure --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-ipv6 --disable-tls-srp --without-winssl --without-darwinssl --without-ca-bundle --without-libssh2 --disable-smtp  --disable-gopher --without-ssl --disable-file --without-libidn -disable-nls --disable-ares --disable-dict --disable-debug --disable-gopher --disable-ldap --disable-manual --disable-telnet --disable-verbose --without-gnutls --without-krb4 --without-zlib
复制代码

点评

--without-ssl 这样就失去用curl的意义了,就是需要支持https,才用的curl,加上 --without-ssl,就不支持了吧  详情 回复 发表于 2014-7-6 17:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-7-6 17:46 | 显示全部楼层
jeromeli 发表于 2014-7-6 17:09
dnsforwarder是干毛 的

防止DNS污染的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-7-6 17:47 | 显示全部楼层
本帖最后由 tofuliang 于 2014-7-6 17:49 编辑
SZPUNK 发表于 2014-7-6 17:15
libcurl 要最小化编译,这样出来的 libcurl.a 就不会出错了:

  --without-ssl 这样就失去用curl的意义了,就是需要支持https,才用的curl,加上 --without-ssl,就不支持了吧 不明白的是 -lcrypto -lidn -lssl /usr/lib/libcurl.a 应该加在哪里呢?mak 的参数里?还是dnsforwarder 的makefile里?

点评

你要 ssl 就去掉这行。  详情 回复 发表于 2014-7-6 18:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-7-6 18:34 | 显示全部楼层
tofuliang 发表于 2014-7-6 17:47
--without-ssl 这样就失去用curl的意义了,就是需要支持https,才用的curl,加上 --without-ssl,就不支持 ...

你要 ssl 就去掉这行。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-9-2 03:15 | 显示全部楼层
楼主好强大.我折腾了好几天了,编译r2,没一次成功的.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-16 15:49

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表