Hi! Please find attached msn4lin-ebuild.tar.gz containing msn4lin-0.2e ebuild and a patch so that it will install into /opt/msn4lin instead of defaults user's home dir. msn4lin is a MSN messenger clone for linux. It has all msn icons, sounds and multi-language support. I suggest app-misc/msn4lin Also, this ebuild depend on tcl-8.3.3 and tk-8.3.3 which are already in the portage tree. pof
Created attachment 650 [details] msn4lin-0.2e.ebuild and msn4lin-0.2e.diff
Please add the ebuild + diff as comments on the bug, i can't open the attachment... Also, only binary packages are installed in /opt, is this a binary package? Thanks
It is not a binary package, I'm sorry I did not follow the filesystem hierarchy standard correctly. I've corrected the patch and the ebuild files so to install binaries into /usr/bin/ and other files into /usr/share/msn4lin/ (docs are into /usr/share/doc/msn4lin-0.2e/). The previously attached file was in .tar.gz format, I think that's why you couldn't open it. Anyway, this time I attach both files (ebuild + patch) separated in plain text format. Thank's for your quick response. pof
# Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Mantainer: Pau Oliva <pau@eSlack.org> S=${WORKDIR}/${P} DESCRIPTION="MSN Messenger client for linux" SRC_URI="http://80.33.169.13/downloads/msn4lin.tar.gz" HOMEPAGE="http://www.borsanza.com/" DEPEND=">=dev-lang/tcl-8.3.3 >=dev-lang/tk-8.3.3" SLOT="0" src_unpack() { unpack msn4lin.tar.gz cd ${S} patch -p0 < ${FILESDIR}/${P}.diff } src_install () { dodir /usr/share/msn4lin/icons/{16x16,32x32,48x48} dodir /usr/share/msn4lin/icons/16x16/low dodir /usr/share/msn4lin/icons/32x32/low dodir /usr/share/msn4lin/icons/48x48/low dodoc GNUGPL agradecimientos.txt leeme.txt original.txt insinto /usr/share/msn4lin doins migmd5.tcl agradecimientos.txt leeme.txt original.txt exeinto /usr/share/msn4lin doexe actualizar comprobar dobin msn4lin insinto /usr/share/msn4lin/icons/16x16 doins icons/16x16/*.png insinto /usr/share/msn4lin/icons/16x16/low doins icons/16x16/low/*.png insinto /usr/share/msn4lin/icons/32x32 doins icons/32x32/*.png insinto /usr/share/msn4lin/icons/32x32/low doins icons/32x32/low/*.png insinto /usr/share/msn4lin/icons/48x48 doins icons/48x48/*.png insinto /usr/share/msn4lin/icons/48x48/low doins icons/48x48/low/*.png insinto /usr/share/msn4lin/images doins images/* insinto /usr/share/msn4lin/lang doins lang/* insinto /usr/share/msn4lin/sounds doins sounds/* }
This is the patch file: msn4lin-0.2e.diff diff -ur ../../msn2/msn4lin-0.2e/actualizar ./actualizar --- ../../msn2/msn4lin-0.2e/actualizar Wed Apr 17 14:15:46 2002 +++ ./actualizar Tue Apr 23 20:06:32 2002 @@ -6,10 +6,10 @@ wget http://${ip}/downloads/msn4lin.tar.gz -q if [ -s msn4lin.tar.gz ] ; then rm msn4lin-* -r -f - tar -xvzf msn4lin.tar.gz - rm msn4lin.tar.gz - killall msn4lin - ./msn4lin +# tar -xvzf msn4lin.tar.gz +# rm msn4lin.tar.gz +# killall msn4lin +# ./msn4lin wget "http://www.softonic.com/informacion_extendida.phtml?n_id=19848&plat=4&plat=4&down=yes&user=free" rm "informacion_extendida.phtml?n_id=19848&plat=4&plat=4&down=yes&user=free" fi diff -ur ../../msn2/msn4lin-0.2e/comprobar ./comprobar --- ../../msn2/msn4lin-0.2e/comprobar Wed Apr 17 14:15:46 2002 +++ ./comprobar Wed Apr 24 19:19:38 2002 @@ -1,7 +1,7 @@ #!/bin/sh ip="80.33.169.13" -cd ~/msn4lin-*/ +cd /usr/share/msn4lin/ rm msn4lin.ve* 2> /dev/null wget http://${ip}/downloads/msn4lin.version -q mv msn4lin.version msn4lin.ver 2> /dev/null diff -ur ../../msn2/msn4lin-0.2e/msn4lin ./msn4lin --- ../../msn2/msn4lin-0.2e/msn4lin Wed Apr 17 14:15:46 2002 +++ ./msn4lin Wed Apr 24 19:19:24 2002 @@ -25,18 +25,18 @@ ### along with this program; if not, write to the Free Software ### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -exec ./comprobar & +exec /usr/share/msn4lin/comprobar & set comprobacion 0 -source migmd5.tcl +source /usr/share/msn4lin/migmd5.tcl set version "0.2e" ############################################################################### -set images_folder "images" -set sounds_folder "sounds" -set lang_folder "lang" +set images_folder "/usr/share/msn4lin/images" +set sounds_folder "/usr/share/msn4lin/sounds" +set lang_folder "/usr/share/msn4lin/lang" # :):D:o:P;):(:S:|(Y)(N)(L)(U)(K)(G)(F)(X)(Z)(P)(B)(D)(T)(@)(C)(i)(H)(S)(*)(8)(E)(M):[:'((w)(&)(o):$:@(A)(6)(~)(^)({)(}) set emotions {{":-)" smile} {":)" smile} {":-D" smiled} {":D" smiled} @@ -288,7 +288,7 @@ scrollbar .about.ys -command ".about.info yview" pack .about.ys -side right -fill y pack .about.info -expand true -fill both - set id [open "original.txt" r] + set id [open "/usr/share/msn4lin/original.txt" r] .about.info insert 1.0 [read $id] close $id .about.info configure -state disabled @@ -311,7 +311,7 @@ scrollbar .about2.ys -command ".about2.info yview" pack .about2.ys -side right -fill y pack .about2.info -expand true -fill both - set id [open "leeme.txt" r] + set id [open "/usr/share/msn4lin/leeme.txt" r] .about2.info insert 1.0 [read $id] close $id .about2.info configure -state disabled @@ -606,7 +606,7 @@ proc msn4lin_comprobar { mostrar } { global version Frases allfonts - catch { [ exec ./comprobar ]} + catch { [ exec /usr/share/msn4lin/comprobar ]} set antigua 0 set encontrado 1 @@ -773,7 +773,7 @@ ############################################################################### proc msn4lin_update {} { - catch { [ exec ./actualizar ]} + catch { [ exec /usr/share/msn4lin/actualizar ]} } ###############################################################################
Oki, i started the ebuild from scratch, check it out.. much simpler that way I used you patch for the msn4lin file, and changed the default language to english... If something isn't working, feel free to send a patch (the program starts fine, so it should be ok).. it's in net-im, our default instant messenger category btw.. Thanks for the ebuild!
Hi, I've updated ebuild an patch to work with new version 0.3c. msn4lin-0.3c.ebuild: -----8<------ CUT HERE ------------ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Mantainer: Pau Oliva <pau@eSlack.org> S=${WORKDIR}/${P} DESCRIPTION="Tcl/tk MSN Messenger client for linux" SRC_URI="http://80.33.169.13/downloads/msn4lin.tar.gz" HOMEPAGE="http://www.borsanza.com/" DEPEND=">=dev-lang/tcl-8.3.3 >=dev-lang/tk-8.3.3" SLOT="0" src_unpack() { unpack msn4lin.tar.gz cd ${S} patch -p0 < ${FILESDIR}/${P}.diff } src_install() { cd ${S} mkdir -p ${D}/usr/share/msn4lin mkdir -p ${D}/usr/bin rm -f lang/languages cp ${FILESDIR}/languages-0.3c lang/languages dodoc GNUGPL agradecimientos.txt leeme.txt original.txt cp -rf * ${D}/usr/share/msn4lin/ cd ${D}/usr/share/msn4lin/ # We disable all this auto-update stuff.. echo "#!/bin/sh" > comprobar echo "#!/bin/sh" > actualizar ln -sf /usr/share/msn4lin/msn4lin ${D}/usr/bin/msn4lin } -----8<------ CUT HERE ------------ files/msn4lin-0.3c.diff: -----8<------ CUT HERE ------------ --- ../msn4lin-0.3c/msn4lin Tue May 14 14:48:05 2002 +++ ./msn4lin Fri May 17 20:59:07 2002 @@ -28,23 +28,9 @@ set version "0.3c" -if {$tcl_platform(platform) == "unix"} { - set HOME2 "$env(HOME)" - set HOME "$env(HOME)/.msn4lin" -} else { - set HOME2 "" - set HOME "msn4lin" -} - +set HOME "$env(HOME)/.msn4lin" set log_dir "${HOME}/logs" - - -set DIR_BASE [lindex [array get env MSN4LIN_PATH] 1] -if { $DIR_BASE=="" } { - set DIR_BASE "${HOME2}/msn4lin-${version}" -} else { - set DIR_BASE "${DIR_BASE}/msn4lin-${version}" -} +set DIR_BASE "/usr/share/msn4lin" exec ${DIR_BASE}/comprobar & set comprobacion 0 @@ -400,7 +386,7 @@ scrollbar .about.ys -command ".about.info yview" pack .about.ys -side right -fill y pack .about.info -expand true -fill both - set id [open "original.txt" r] + set id [open "/usr/share/msn4lin/original.txt" r] .about.info insert 1.0 [read $id] close $id .about.info configure -state disabled @@ -423,7 +409,7 @@ scrollbar .about2.ys -command ".about2.info yview" pack .about2.ys -side right -fill y pack .about2.info -expand true -fill both - set id [open "leeme.txt" r] + set id [open "/usr/share/msn4lin/leeme.txt" r] .about2.info insert 1.0 [read $id] close $id .about2.info configure -state disabled @@ -446,7 +432,7 @@ scrollbar .gracias.ys -command ".gracias.info yview" pack .gracias.ys -side right -fill y pack .gracias.info -expand true -fill both - set id [open "agradecimientos.txt" r] + set id [open "/usr/share/msn4lin/agradecimientos.txt" r] .gracias.info insert 1.0 [read $id] close $id .gracias.info configure -state disabled -----8<------ CUT HERE ------------ files/languages: -----8<------ CUT HERE ------------ 1000 english.msn4lin 1001 spanish.msn4lin 1002 valenciano.msn4lin 1003 catalan.msn4lin 1004 euskera.msn4lin 1005 french.msn4lin 1006 german.msn4lin 1007 italian.msn4lin 1008 portuguese.msn4lin 1009 gallego.msn4lin -----8<------ CUT HERE ------------