Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gkrellm-themes ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Wed Jul 23, 2003 4:58 pm    Post subject: gkrellm-themes ebuild Reply with quote

I've written an ebuild for gkrellm-themes as requested by bug 20377. Before I submit it could anyone interested give me some feedback. Any feedback on these errors would be appreciated:
Code:
>>> Unpacking GKrellM-Skins.tar.gz to /var/tmp/portage/gkrellm-themes-20030129/work
tar: Skirellm/README: Cannot change ownership to uid 500, gid 500: No such file or directory
tar: Error exit delayed from previous errors
tar: twilite/bg_meter.png: Cannot change ownership to uid 1000, gid 1000: No such file or directory
tar: twilite/bg_panel.png: Cannot change ownership to uid 1000, gid 1000: No such file or directory
tar: twilite/.png: Cannot change ownership to uid 1000, gid 1000: No such file or directory
tar: twilite/frame_bottom.png: Cannot change ownership to uid 1000, gid 1000: No such file or directory
tar: twilite/frame_left.png: Cannot change ownership to uid 1000, gid 1000: No such file or directory
tar: twilite/frame_top.png: Cannot change ownership to uid 1000, gid 1000: No such file or directory
tar: Error exit delayed from previous errors
and
Code:
cp: failed to preserve ownership for /var/tmp/portage/gkrellm-themes-20030129/image//usr/share/gkrellm2/themes/Skirellm/README: No such file or directory
cp: failed to preserve ownership for /var/tmp/portage/gkrellm-themes-20030129/image//usr/share/gkrellm2/themes/master/README: No such file or directory
cp: failed to preserve ownership for /var/tmp/portage/gkrellm-themes-20030129/image//usr/share/gkrellm2/themes/twilite/.png: No such file or directory


Err, I'm new to bash scripting so go easy on me please. :-D

EDIT: Code changed slightly. Nothing major.
You'll want to put this in a gkrellm-themes directory in /usr/portage/x11-themes/ and save it as gkrellm-themes-20030129.ebuild

Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="GKrellm Themes"
HOMEPAGE="http://www.muhri.net/gkrellm/"
SRC_URI="http://www.muhri.net/gkrellm/GKrellM-Skins.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=gkrellm-1.0"
S=${WORKDIR}/${P}

src_unpack() {
        unpack ${A}
        cd ${WORKDIR}/GKrellM-skins/
        for x in `ls *.tar.gz`
        do

                tar -zxf ${x}
                rm ${x}
        done
}

src_install() {
        dodir /usr/share/gkrellm2/themes
        cd $WORKDIR/GKrellM-skins/
        cp -dpR * ${D}/usr/share/gkrellm2/themes/
        chown -R root.root ${D}/usr/share/gkrellm2/themes/
        chmod -R go-w ${D}/usr/share/gkrellm2/themes/
}

pkg_postinst() {
        einfo
        einfo "GkrellM users (i.e. not GKrellM2) must make a symlink between the"
        einfo "all-users theme directory and /usr/share/gkrellm2/themes/"
        einfo "Move any custom themes from the GKrellM all-users theme directory"
        einfo "rm <PATH TO GKRELLM THEME DIRECTORY> (Probably /usr/share/gkrellm/themes)"
        einfo "ln -s /usr/share/gkrellm2/themes/ <PATH TO GKRELLM THEME DIRECTORY>"
        einfo
}


Puggy
_________________
Where there's open source , there's a way.


Last edited by puggy on Thu Jul 24, 2003 8:52 pm; edited 2 times in total
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Thu Jul 24, 2003 9:10 am    Post subject: Reply with quote

Go on! You know you want to theme your gkrellm....
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
Raoul_Duke
l33t
l33t


Joined: 15 Dec 2002
Posts: 694
Location: Caerdydd, Wales

PostPosted: Thu Jul 24, 2003 10:23 am    Post subject: Reply with quote

If i have time, i'll give it a go tonight 8)
_________________
www.iamthepenguin.com
Back to top
View user's profile Send private message
cyman777
n00b
n00b


Joined: 22 May 2003
Posts: 18
Location: Vienna, Austria

PostPosted: Mon Aug 11, 2003 11:28 pm    Post subject: Thanks!! Reply with quote

Works like a charm!
Back to top
View user's profile Send private message
ozukir@
Apprentice
Apprentice


Joined: 14 Oct 2002
Posts: 209
Location: USA

PostPosted: Thu Aug 21, 2003 11:37 am    Post subject: Reply with quote

Works nicely. I had the same errors as your first group of errors, but I guess that's related to the downloaded tar ball. I made a slight modification changing the src_unpack function to include the themes packaged as *.tgz, otherwise you'll miss out on four themes.
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Thu Aug 21, 2003 12:24 pm    Post subject: Reply with quote

This ebuild was duplicated by someone else and his bug was marked a duplicate of mine. I've updated my ebuild. It's located here:
https://bugs.gentoo.org/show_bug.cgi?id=20377

Puggy[/list]
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
magrathea
n00b
n00b


Joined: 26 Jul 2003
Posts: 26
Location: amsterdam

PostPosted: Sat Oct 04, 2003 10:57 am    Post subject: Reply with quote

works great, thanks for the ebuild!
_________________
magrathea home
mmm...... specs;
mama; AMD XP 2200+,384mb DDR,SCSI IBMx2,Geforce MX440, PCTV, MX700
4ngel;laptop 333mhz, dvd, 256mb RAM, 10gb HD 5400 rpm, ati rage lt pro 4mb
--------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum