freebsd-ports/net-im/linux-ymessenger/files/linux-ymessenger.sh
Ion-Mihai Tetcu 5ec43bbf32 - upgrades linux-ymessenger from 1.0.4 to 1.0.6
- merges in the 1.0.6_1 executable
- works around a preferences corruption bug that can cause ymessenger to crash
on startup

To do: determine if any prerequisite tests are missing from the Makefile.

Other issues: this port depends on graphics/linux-gdk-pixbuf,which is marked as
conflicting with x11-toolkits/linux-gtk2.  The latter is used by things like
multimedia/linux-realplayer and print/acroread7.  Manually installing just the
shared libraries from the linux-gdk-pixbuf-0.22.0.12.fc2_1.tbz package seems to
allow both to coexist.  (Hopefully, someone will come up with a better solution.)

PR:		ports/97669
Submitted by:	Eric P. Scott <eps+pbug0605@ana.com>
Approved by:	maintainer, lawrance (mentor, implicit)
2006-06-08 01:35:14 +00:00

7 lines
327 B
Bash

#!/bin/sh
if [ -w $HOME/.ymessenger/preferences ]; then
/usr/bin/grep -q '^PrimaryIdentity $' $HOME/.ymessenger/preferences&&/usr/bin/sed -i '' -e '/^PrimaryIdentity $/s/$/ ""/' $HOME/.ymessenger/preferences
fi
export LD_LIBRARY_PATH=%%PREFIX%%/lib/linux-ymessenger
cd %%PREFIX%%/libexec/linux-ymessenger
./ymessenger.bin $*