Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34863 - new ebuild for teamspeak2-client-bin
Summary: new ebuild for teamspeak2-client-bin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-12-01 21:34 UTC by Peter Kirk
Modified: 2004-03-03 16:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the new ebuild. (teamspeak2-client-bin-2.0.32.60-r1.ebuild,2.63 KB, text/plain)
2003-12-01 21:35 UTC, Peter Kirk
Details
teamspeak.protocol, to go into the files directory (teamspeak.protocol,149 bytes, text/plain)
2003-12-03 18:52 UTC, Peter Kirk
Details
revised ebuild. (teamspeak2-client-bin-2.0.32.60-r1.ebuild,1.73 KB, text/plain)
2003-12-03 19:00 UTC, Peter Kirk
Details
ebuild-r2 with revised install (teamspeak2-client-2.0.32.60-r2.ebuild,2.19 KB, text/plain)
2003-12-04 13:17 UTC, Keith Constable
Details
bad ebuild, didnt read before submitted. (teamspeak2-client-bin-2.0.32.60-r1.ebuild,1.95 KB, text/plain)
2003-12-10 00:56 UTC, Peter Kirk
Details
keiths improved ebuild, improved with icon support (teamspeak2-client-bin-2.0.32.60-r2.ebuild,2.40 KB, text/plain)
2004-02-16 09:57 UTC, Peter Kirk
Details
keiths improved ebuild, with icon support + bugfix (teamspeak2-client-bin-2.0.32.60-r2.ebuild,2.40 KB, text/plain)
2004-02-16 10:09 UTC, Peter Kirk
Details
bugfix, keiths improved ebuild, with icon support (teamspeak2-client-bin-2.0.32.60-r2.ebuild,2.35 KB, text/plain)
2004-02-16 10:16 UTC, Peter Kirk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kirk 2003-12-01 21:34:03 UTC
Got a update for media-sound/teamspeak2-client-bin - no update of the programme 
itself, but of the ebuild (2.0.32.60 -> 2.0.32.60-r1). 
 
The changes are: 
 
- Added support for teamspeak://server style links for kde (IUSE="kde"). 
- As requested moved installation dir to /opt instead of /usr/share (like it is 
for teamspeak2-server-bin too) 
- Added MY_P and some sed magic to set it, which should make maintaining the 
ebuild easier. 
- Small fixes after reading the "common ebuild writing mistakes" document 

Reproducible: Always
Steps to Reproduce:
Comment 1 Peter Kirk 2003-12-01 21:35:02 UTC
Created attachment 21571 [details]
the new ebuild.

see above.
Comment 2 Keith Constable 2003-12-03 17:28:05 UTC
Nice work on creating a KDE protocol; however, there's a number of strange
things going on in this ebuild.

Why are you using "mkdir -p ${D}/blah" when there's a perfectly good
"dodir /blah" function to use?

Your editing of the startscript is very ugly.  Why not wait until after the
script has been dobinned, then you can do all of that on one dosed line.  If
you don't want to wait, just add -i to the sed argument and it'll do what
you're doing for you.

And I believe the preferred way to do a file like the teamspeak.protocol file
is to include it with the ebuild and doins it from ${FILESDIR}.  Also, your
einfo referring to the protocol file is not necessary and is actually broken.

The insinto and the dosym near the end of the install are not necessary.  dobin
is not affected by insinto and there's no reason to do it some other way than
by a dobin.  The startscript does not need to be copied into
/opt/teamspeak2-client, AFAIK.
Comment 3 Keith Constable 2003-12-03 17:31:09 UTC
Oh, and my gosh, you don't think including
src_unpack() {
	unpack ${A}
}
in the ebuild is kind of redundant?

'man 5 ebuild' can be a very useful resource.
Comment 4 Peter Kirk 2003-12-03 18:52:10 UTC
Created attachment 21669 [details]
teamspeak.protocol, to go into the files directory

As requested I have detached the teamspeak.protocol file. Didnt know this was
possible, gotta agree it makes the ebuild much cleaner =).
Comment 5 Peter Kirk 2003-12-03 19:00:31 UTC
Created attachment 21670 [details]
revised ebuild.

Ok,

cleaned up this ebuild quite alot with your help :). Removed the src_unpack()
part (since it is done this way by default, now using dodir instead of mkdir
-p, changed sed to use the in-place option, avoiding the clumsy handling with
the temp files, out-sourced the teamspeak.protocol (now a external file),
cleaned up the redundant insinto and removed the pointless dosym.
Comment 6 Peter Kirk 2003-12-03 19:05:17 UTC
Oh and btw:

If anybody knows how I would make links like "teamspeak://voice.teamspeak.org" work in other browsers/desktop-enviroments (thinking of gnome and mozilla here especially), please tell me how to do it, Id love to support these links with many (all) browsers that linux offers.
Comment 7 Keith Constable 2003-12-04 13:17:10 UTC
Created attachment 21707 [details]
ebuild-r2 with revised install

Sorry, Peter, don't mean to encroach upon your territorry, but I expanded upon
your excellent work to create this ebuild.

- I revised $S to better reflect the actual source directory we're working
with.
- I variableized the install directory.
- I cleaned the sed command.
- I modified the kde protocol installation.  If the user USE="KDE" then kdelibs

will definately be installed, as will `kde-config`.  Whereas $KDEBASE may or
may not be set in the environment.
- The readme and manual are installed in true Gentoo fashion and a symlink is
made so that Help -> Read Manual still works.
- Everything that shouldn't be executable has it's x bits removed.
- Finally, I revised the postinstall einfo.

If you have any questions or concerns, feel free to ask or state them.

To the devs:
Also, with the submission of this ebuild, I officially and whole-heartedly
object to the naming of this package.  Specifically, I object to the addition
of -bin to the end of the name.  The -bin convention should be reserved for
packages that have both a source and binary version available.	For example
mozilla-firebird and mozilla-firebird-bin, or openoffice and openoffice-bin. 
We don't name quake3 as quake3-bin, or rar as rar-bin, or acroread as
acroread-bin dispite the fact that they are binary packages.  Why should this
package be any different?  There is no source distribution available.

Thank you for listening.
Comment 8 Peter Kirk 2003-12-10 00:56:08 UTC
Created attachment 21962 [details]
bad ebuild, didnt read before submitted.

Oh well,

after some more poking around, I thought it would be cool to put the icon that
comes with teamspeak into the /usr/share/pixmaps directory, so that users can
use it for Desktop icons etc. Since the xpm didnt work for me (in kde at
least), I have it converted to pgn in the ebuild.
Everything else unchanged.
Comment 9 Peter Kirk 2003-12-10 01:14:08 UTC
Oh,

didn't see your revised ebuild there, stupid me. Maybe you want to incoperate the icon into your ebuild Keith Constable ? These are the crude lines I chose to type, I bet it can be done nicer =)

	#Install the teamspeak icon.
	dodir /usr/share/pixmaps
	convert ${S}/setup.data/image/icon.xpm ${S}/setup.data/image/teamspeak.png
	cp ${S}/setup.data/image/teamspeak.png ${D}/usr/share/pixmaps/

Im not sure if the convert from imagemagick is the right thing to use, nor do I know of /usr/share/pixmap is the definite place for icons, but it works like this here, so it cant be that bad =). Oh naturally you need a dependency for imagemagick if you use convert.
And as a side note: I always thought the -bin on teamspeak2-client + server wasn't very coherent :o).
Comment 10 Peter Kirk 2004-02-16 09:54:24 UTC
OK,

I added the lines myself then :) Icon support, here we go
Comment 11 Peter Kirk 2004-02-16 09:57:27 UTC
Created attachment 25720 [details]
keiths improved ebuild, improved with icon support

Well,

the improved ebuild that copies the teamspeak icon and converts it to something
readable.
I cant obsolete Keiths ebuild though, propably because I did not submit it :).
Comment 12 Peter Kirk 2004-02-16 10:09:59 UTC
Created attachment 25721 [details]
keiths improved ebuild, with icon support + bugfix

Ok,

same description, I just squashed a bad quote that was flying around in that
ebuild. It should obsolete Keiths ebuild, but thats disabled (for me).
Comment 13 Peter Kirk 2004-02-16 10:16:52 UTC
Created attachment 25722 [details]
bugfix, keiths improved ebuild, with icon support

doh, I realy should test the ebuilds before submitting them here :)
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-03 16:35:54 UTC
in portage...