View previous topic :: View next topic |
Author |
Message |
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Wed Jul 23, 2003 4:58 pm Post subject: gkrellm-themes ebuild |
|
|
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.
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 |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Thu Jul 24, 2003 9:10 am Post subject: |
|
|
Go on! You know you want to theme your gkrellm.... _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
Raoul_Duke l33t
Joined: 15 Dec 2002 Posts: 694 Location: Caerdydd, Wales
|
Posted: Thu Jul 24, 2003 10:23 am Post subject: |
|
|
If i have time, i'll give it a go tonight _________________ www.iamthepenguin.com |
|
Back to top |
|
|
cyman777 n00b
Joined: 22 May 2003 Posts: 18 Location: Vienna, Austria
|
Posted: Mon Aug 11, 2003 11:28 pm Post subject: Thanks!! |
|
|
Works like a charm! |
|
Back to top |
|
|
ozukir@ Apprentice
Joined: 14 Oct 2002 Posts: 209 Location: USA
|
Posted: Thu Aug 21, 2003 11:37 am Post subject: |
|
|
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 |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Thu Aug 21, 2003 12:24 pm Post subject: |
|
|
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 |
|
|
magrathea n00b
Joined: 26 Jul 2003 Posts: 26 Location: amsterdam
|
Posted: Sat Oct 04, 2003 10:57 am Post subject: |
|
|
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 |
|
|
|