免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: isnowran

自定义升级系统 netkite [复制链接]

论坛徽章:
0
发表于 2006-12-15 10:07 |显示全部楼层
支持,能说明一下是怎么生成的man吗?

论坛徽章:
0
发表于 2006-12-15 14:00 |显示全部楼层
原帖由 zw2002 于 2006-12-15 10:07 发表
支持,能说明一下是怎么生成的man吗?

我是用pod2man生成的

论坛徽章:
0
发表于 2006-12-15 15:57 |显示全部楼层
支持一个,希望SF有越来越多我们中国人的项目!

论坛徽章:
0
发表于 2007-01-01 13:07 |显示全部楼层
昨晚更新到0.9.0.315,主要更新如下

  1. 0.9.0.315
  2. ==============
  3. * insert a respond at serial send/recv protocol version and module name.
  4.   that mean not compatible previous version.
  5. * after the temp file receiving completed, the client blocks all signals
  6.   when replacing the destination file.
  7. - initialize the m_sock when construct the tcpbase object.
  8. - fix the man page some error.

复制代码

  1. MD5: 4f2a9275084aa4dfc55486ec9949243c
复制代码

[ 本帖最后由 isnowran 于 2007-1-1 13:09 编辑 ]

netkite-0.9.0-pre1.tar.gz

94.57 KB, 下载次数: 137

论坛徽章:
0
发表于 2007-01-01 13:18 |显示全部楼层
干什么用的啊

论坛徽章:
0
发表于 2007-01-25 17:23 |显示全部楼层
昨晚更新到0.9.0.315,主要更新如下,增加了一个覆盖模式,如果覆盖模式关闭(默认),那么客户端在更新时会忽略多于1个的相同目标文件,这样就能客户端获取的是服务端提供的最深层的更新文件,这也正是你所想的:)

  1. 0.9.1.325
  2. ==============
  3. * add overlap mode, now have correct inherit relation.
  4. - change the function name and argument in the mdc library.
  5. - change -h and -H infomation( about overlap mode ).
  6. - change man page( about overlap mode ).
复制代码

  1. MD5: 41908783f69563a9c94326cad3bf8f4c
复制代码

netkite-0.9.1-pre1.tar.gz

95.61 KB, 下载次数: 220

论坛徽章:
0
发表于 2007-06-18 13:22 |显示全部楼层
这是来自CUDev的短消息,非常感谢CUDev的支持,在此做一些解答.
问:
我只是看了manual,感觉netkite有些不是很完善的地方:
1、只能够在服务器端设置,客户端更新;最好能够支持客户端上传模式,客户端能够将一些文件更新到服务器上,供其他机器使用、或者是自己想恢复以前的文件
2、如果有一个module叫a,下面有一个子目录c;
还有一个模块叫b,下面也有一个子目录叫c;
客户端执行netkite 10.0.0.1 -m c时候怎么处理?
            root/
             l- a/
                  l- c
                     l- file1
                     l- file1.rule
             l- b/
                 l- c
                     l- file2
                     l- file2.rule
我感觉你这种自底向上更新的方式不是很好?

BTW:Code没有编译过去,好像使用了kernel-header里面的一些头文件


答:
1. 因为netkite的初衷是为修补无人值守式设备使用的,比如家用的路由器等等类似设备,所以客户端只需要被动接受就可以了;反之,因为并没有身份验证机制,若使客户端有权利更新服务端的文件,那岂非很危险?

2. 最新版本的netkite内部维护一个哈希表,这样能保证同样的文件只获取一次,以后的忽略,这样为个性化定制提供了可能;至于兄台给出的结构图,只能是规划不合理,具体能更新到哪个C模块,只有天知道 :)
            root/
             l-file           (不被获取)
             l- file.rule
             l- c/            (被识别的模块)
                l- file       (被获取的文件)
                l- file.rule
                l- c/
                   l- file
                   l- file.rule

3. 过去的版本在Debian下编译有问题,在0.9.1.327版本已经修复,现在最新的版本是0.9.2.332.


贴出一个我实际应用中的目录结构图,已作参考
我在实际中使用情况,最终得模块节点实际上是每一台机器的序列号(S2D070100001),里面放的是各自不同的更新文件,而公共的文件放在顶层或最顶层.

对于模块S2C061200001来说,他有2个名为S010httpd的文件都可以更新到,但其中一个是他自身定制的文件netkite/root/1.5/chinese/jsp/S2C061200001/S010httpd,这样,就不会更新公共的netkite/root/1.5/chinese/S010httpd (当然,是在overlap mode关闭时,详细见netkite -h).

  1. [binary@smbddns var]$ find netkite
  2. netkite/
  3. netkite/root/
  4. netkite/root/1.5/
  5. netkite/root/1.5/english/
  6. netkite/root/1.5/english/S2D070100001/
  7. netkite/root/1.5/english/S2D070100002/
  8. netkite/root/1.5/chinese/
  9. netkite/root/1.5/chinese/asp/
  10. netkite/root/1.5/chinese/asp/S2B061200001/
  11. netkite/root/1.5/chinese/asp/S2A061200001/
  12. netkite/root/1.5/chinese/asp/S2B061200002/
  13. netkite/root/1.5/chinese/asp/S2B061200003/
  14. netkite/root/1.5/chinese/asp/S2B061200004/
  15. netkite/root/1.5/chinese/asp/S2B070100001/
  16. netkite/root/1.5/chinese/asp/S2B070300001/
  17. netkite/root/1.5/chinese/asp/S2B070400001/
  18. netkite/root/1.5/chinese/php/
  19. netkite/root/1.5/chinese/php/S2C070400001/
  20. netkite/root/1.5/chinese/php/S2C070400002/
  21. netkite/root/1.5/chinese/jsp/
  22. netkite/root/1.5/chinese/jsp/S2C061200001/S010httpd
  23. netkite/root/1.5/chinese/jsp/S2C061200001/S010httpd.rule
  24. netkite/root/1.5/chinese/S010httpd
  25. netkite/root/1.5/chinese/S010httpd.rule
  26. netkite/root/1.5/chinese/S095isoqlog
  27. netkite/root/1.5/chinese/S095isoqlog.rule
复制代码


最后,在此贴出完整的ChangeLog,另,原来的链接依然有效:
   http://sourceforge.net/projects/netkite

  1. 0.9.2.332
  2. ==============
  3. * fix an invalid point in calmd5.
  4. * add a rule, then you can write "md5 = xxx" in the rule file to avoid the dynamic file verification.

  5. 0.9.1.328
  6. ==============
  7. - fixed some libraries' behavior, which are inessential.

  8. 0.9.1.327
  9. ==============
  10. * fixed a compile error in debian.

  11. 0.9.1.325
  12. ==============
  13. * add overlap mode, now have correct inherit relation.
  14. - change the function name and argument in the mdc library.
  15. - change -h and -H infomation( about overlap mode ).
  16. - change man page( about overlap mode ).

  17. 0.9.0.315
  18. ==============
  19. * insert a respond at serial send/recv protocol version and module name.
  20.   that mean not compatible previous version.
  21. * after the temp file receiving completed, the client blocks all signals
  22.   when replacing the destination file.
  23. - initialize the m_sock when construct the tcpbase object.
  24. - fix the man page some error.

  25. 0.8.2.309
  26. ==============
  27. * correct the respond error caused by the timeout of verify message digest.
  28. * client log add finish information.
  29. * modify the man page, add the finish description.
  30. - fix parse library function trim prototype with static, i'm forget last time :(
  31. - logger library has small-beer change.

  32. 0.8.1.305
  33. ==============
  34. * check whether the file name start with '/', if not, add it.
  35. * fix the abnormal return when client without the device specify by server
  36. - close the screen error informations and redirect them to log.
  37. - fix parse library function trim prototype with static.

  38. 0.8.0.299
  39. ==============
  40. - initialize a struct statfs in netkite.cpp.
  41. - fix some nameing rules.

  42. 0.8.0.298
  43. ==============
  44. first times released.
复制代码

[ 本帖最后由 isnowran 于 2007-6-19 12:14 编辑 ]

netkite-0.9.2-pre1.tar.gz

106.1 KB, 下载次数: 220

netkite

论坛徽章:
0
发表于 2015-06-11 16:53 |显示全部楼层
多谢楼主共享
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP