LinuxSir.cn,穿越时空的Linuxsir!

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

china-overlay的gsopcast是不是更新一下?

[复制链接]
发表于 2007-9-28 14:28:50 | 显示全部楼层 |阅读模式
overlay的gsopcast是不是该更新一下,sp-sc都没有的~我是手动改的ebuild,不过还是觉得完全emerge不用自己改的方便。

还有pcmanx,在台湾的overlay有,但是速度太慢了~能加上么?
发表于 2007-9-28 14:31:53 | 显示全部楼层
你改了什么?可以share一下么?
其实你只要把你的可以用的ebuild贴出来就好了
如果你愿意,直接给你commit权限都行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-28 15:07:31 | 显示全部楼层
其实没改什么,sopcast的网站上不再叫sp-sc.tgz了,其实里面的内容都一样。所以我只改了tgz的包名和src_install的cd的path和它的tgz包相同就行了。
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="gtk front-end of the p2p iptv"
HOMEPAGE="http://lianwei3.googlepages.com/home2"
SRC_URI="http://lianwei3.googlepages.com/${P}.tar.bz2
                http://download.sopcast.org/download/sp-auth.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="x11-libs/gtk+"
RDEPEND="${DEPEND}
        amd64? ( app-emulation/emul-linux-x86-compat )"

RESTRICT="mirror"

src_unpack() {
        mkdir ${WORKDIR}
        cd ${WORKDIR}
        unpack ${P}.tar.bz2
        unpack sp-auth.tgz
}

src_compile() {
        cd ${S}
        econf || die "econf failed"
        emake || die "emake failed"
}

src_install() {
        cd ${WORKDIR}/sp-auth
        dobin sp-sc-auth
        dosym sp-sc-auth /usr/bin/sp-sc
        cd ${S}/src
        dobin gsopcast
        insinto /usr/share/applications
        doins ${FILESDIR}/gsopcast.desktop
}
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-28 15:11:33 | 显示全部楼层
pcmanx我编译firefox的插件支持总出错。台湾的overlay里改动的包比较多。我一方面觉得这个插件没什么必要,就ebuild里把那些都禁用了。
pcmanx-0.3.6.ebuild
#Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/ebuildteam/net-misc/pcmanx/pcmanx-0.3.4.ebuild,v 1.1 2006/04/09 15:58:59 scsi Exp $

inherit eutils

DESCRIPTION="CMan is an easy-to-use telnet client mainly targets BBS users formerly writen by gtk2"
SRC_URI="http://pcmanx.csie.net/release/pcmanx-gtk2-${PV}.tar.bz2"
HOMEPAGE="http://pcmanx.csie.net/"
RESTRICT="nomirror"

S="${WORKDIR}/pcmanx-gtk2-${PV}"

KEYWORDS="x86 ~ppc amd64"
SLOT="0"
LICENSE="GPL"
IUSE="mozilla firefox"

DEPEND=">=x11-libs/gtk+-2.4
        !www-client/pcmanxplug-in
        !virtual/pcmanx"
PROVIDE="virtual/pcmanx"

src_compile() {
        myconf=""

        #use mozilla ||use firefox && myconf="$myconf --enable-plugin"
       
        econf $myconf || die "econf failed"
       
        emake || die "emake failed"
}

src_install()
{
        cd $S
        make DESTDIR=${D} install
        #if  use mozilla || use firefox
        #then
        #        if [ -d $D/usr/lib/mozilla ]
        #        then
        #                mv $D/usr/lib/mozilla $D/usr/lib/web
        #        elif [ -d $D/usr/lib/firefox ]
        #        then
        #                mv $D/usr/lib/mozilla-firefox $D/usr/lib/web
        #        else
        #                die "no plugin file found."
        #        fi
        #        rm -rf $D/usr/lib/mozilla $D/usr/lib/mozilla-firefox >/dev/null 2>&1
        #        chmod +x $D/usr/lib/web/plugins/pcmanx-plugin.so
       
                #use mozilla && (einfo "install mozlla plugin"; cp -r $D/usr/lib/web $D/usr/lib/mozilla)
                #use firefox && (einfo "install firefox plugin";cp -r $D/usr/lib/web $D/usr/lib/mozilla-firefox)
                rm -rf $D/usr/lib/web  2>&1
        #fi
}
resetplugin()
{
        #use mozilla && /usr/lib/mozilla/regxpcom
        #use firefox && /usr/lib/mozilla-firefox/regxpcom
        echo "disable the plugin"
}

pkg_postinst()
{
        resetplugin
}

pkg_postrm()
{
        resetplugin
}

pkg_preinst()
{
        if use firefox || use mozilla
        then
                #use mozilla && web=mozilla
                #use firefox && web=firefox
                #use mozilla && use firefox && web="mozilla and firefox"

                einfo "You must restart $web to take effect."
                einfo "if still not effect, please remove compreg.dat in ~/<$web working directory> ."
        fi
}
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-28 15:11:37 | 显示全部楼层
pcmanx我编译firefox的插件支持总出错。台湾的overlay里改动的包比较多。我一方面觉得这个插件没什么必要,就ebuild里把那些都禁用了。
pcmanx-0.3.6.ebuild
#Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/ebuildteam/net-misc/pcmanx/pcmanx-0.3.4.ebuild,v 1.1 2006/04/09 15:58:59 scsi Exp $

inherit eutils

DESCRIPTION="CMan is an easy-to-use telnet client mainly targets BBS users formerly writen by gtk2"
SRC_URI="http://pcmanx.csie.net/release/pcmanx-gtk2-${PV}.tar.bz2"
HOMEPAGE="http://pcmanx.csie.net/"
RESTRICT="nomirror"

S="${WORKDIR}/pcmanx-gtk2-${PV}"

KEYWORDS="x86 ~ppc amd64"
SLOT="0"
LICENSE="GPL"
IUSE="mozilla firefox"

DEPEND=">=x11-libs/gtk+-2.4
        !www-client/pcmanxplug-in
        !virtual/pcmanx"
PROVIDE="virtual/pcmanx"

src_compile() {
        myconf=""

        #use mozilla ||use firefox && myconf="$myconf --enable-plugin"
       
        econf $myconf || die "econf failed"
       
        emake || die "emake failed"
}

src_install()
{
        cd $S
        make DESTDIR=${D} install
        #if  use mozilla || use firefox
        #then
        #        if [ -d $D/usr/lib/mozilla ]
        #        then
        #                mv $D/usr/lib/mozilla $D/usr/lib/web
        #        elif [ -d $D/usr/lib/firefox ]
        #        then
        #                mv $D/usr/lib/mozilla-firefox $D/usr/lib/web
        #        else
        #                die "no plugin file found."
        #        fi
        #        rm -rf $D/usr/lib/mozilla $D/usr/lib/mozilla-firefox >/dev/null 2>&1
        #        chmod +x $D/usr/lib/web/plugins/pcmanx-plugin.so
       
                #use mozilla && (einfo "install mozlla plugin"; cp -r $D/usr/lib/web $D/usr/lib/mozilla)
                #use firefox && (einfo "install firefox plugin";cp -r $D/usr/lib/web $D/usr/lib/mozilla-firefox)
                rm -rf $D/usr/lib/web  2>&1
        #fi
}
resetplugin()
{
        #use mozilla && /usr/lib/mozilla/regxpcom
        #use firefox && /usr/lib/mozilla-firefox/regxpcom
        echo "disable the plugin"
}

pkg_postinst()
{
        resetplugin
}

pkg_postrm()
{
        resetplugin
}

pkg_preinst()
{
        if use firefox || use mozilla
        then
                #use mozilla && web=mozilla
                #use firefox && web=firefox
                #use mozilla && use firefox && web="mozilla and firefox"

                einfo "You must restart $web to take effect."
                einfo "if still not effect, please remove compreg.dat in ~/<$web working directory> ."
        fi
}
回复 支持 反对

使用道具 举报

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

本版积分规则

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