LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 968|回复: 3

发现 BitStormLite 很好用,顺便练习自己做ebuild。和大家分享一下。

[复制链接]
发表于 2006-6-23 09:15:59 | 显示全部楼层 |阅读模式
Gxcooo开发的 BitStormLite 是一个图形界面的BT客户端,使用了一下,觉得不错,来推荐一下。

主要功能(转自 linuxfans.org, Gxcooo):
BitStorm 0.2 Lite主要特性如下
1)基于C++和GTK2,占用系统资源少
2)可调整大小的磁盘缓存,极大的减轻磁盘负担
3)支持多Tracker,支持UDP Tracker,支持compact模式HTTP Tracker
4)UPnp NAT功能,自动进行端口映射(默认监听端口为7681~7689)
5)支持多文件选择性下载,可单独下载某些文件
6)支持UTF-8编码的Torrent文件,文件名不会出现乱码
7)可设置上传/下载速度

我自己学者做了一个 ebuild, 非常简单的,试验过了,将过程记录了下来,作为一个自己制作ebuild来安装自己的软件的实例。
步骤如下:
1. 建立自己的portage目录:
#mkdir /usr/local/portage

2. 在/etc/make.conf里加入上面的目录作为PORTDIR_OVERLAY:
PORTDIR_OVERLAY="/etc/local/portage"

3. 建立软件的ebuild的目录
#mkdir -p /usr/local/portage/net-p2p/bitstorm

4. 建立软件的ebuild文件,或者将在网上找到的ebuild文件放入相应目录
#cp bitstorm-0.2b.ebuild /usr/local/portage/net-p2p/bitstorm/

安全起见,逐步测试:
5. 下载文件并检验:
#ebuild /usr/local/portage/net-p2p/bitstorm/bitstorm-0.2b.ebuild digest

6. 成功以后,解压缩:
#ebuild /usr/local/portage/net-p2p/bitstorm/bitstorm-0.2b.ebuild unpack

7. 编译,编译的结果在 /var/tmp/portage/bitstorm-0.2b/work下面,不会影响系统:
#ebuild /usr/local/portage/net-p2p/bitstorm/bitstorm-0.2b.ebuild compile

8. 测试安装,会安装在/var/tmp/portage/bitstorm-0.2b/image/下,不会影响系统:
#ebuild /usr/local/portage/net-p2p/bitstorm/bitstorm-0.2b.ebuild install

好了,去那个 image 目录下看看,如果安装成功,会复制哪些文件,确定没有问题后,
9. 真正安装:
#ebuild /usr/local/portage/net-p2p/bitstorm/bitstorm-0.2b.ebuild qmerge

10. 检查一下:
#equery list bitstorm

11. 成功了,清理一下:
#ebuild /usr/local/portage/net-p2p/bitstorm/bitstorm-0.2b.ebuild clean

~x86的系统,应该可以用我的ebuild直接emerge.

在此非常感谢 Gxcooo。

bitstorm-0.2b.ebuild 文件如下:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2006-6-23 09:25:16 | 显示全部楼层
bitstorm-0.2b.ebuild:

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils toolchain-funcs flag-o-matic

DESCRIPTION="A light BitTorrent client based on c++ and gtk+."
HOMEPAGE="http://sourceforge.net/projects/bbom/"
SRC_URI="mirror://sourceforge/bbom/BitStormLite-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
S="${WORKDIR}/BitStormLite-${PV}"

src_compile() {

        econf || die "econf failed"

        emake || die "emake failed"
}

pkg_postinst() {
        einfo "BitStormLite is successfully installed."
        einfo "Type bitstormlite to start the GUI."
}

src_install() {
        make DESTDIR="${D}" install || die "make install failed"
}
回复 支持 反对

使用道具 举报

发表于 2006-6-23 19:50:22 | 显示全部楼层
不支持 DHT ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-24 04:57:04 | 显示全部楼层
不支持DHT,基本功能都有了,完全支持中文,比较难得。
回复 支持 反对

使用道具 举报

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

本版积分规则

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