aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-im/linux-ymessenger/Makefile19
-rw-r--r--net-im/linux-ymessenger/distinfo9
-rw-r--r--net-im/linux-ymessenger/files/linux-ymessenger.sh3
-rw-r--r--net-im/linux-ymessenger/pkg-plist2
4 files changed, 20 insertions, 13 deletions
diff --git a/net-im/linux-ymessenger/Makefile b/net-im/linux-ymessenger/Makefile
index b69d5f44503a..05ea16f5e296 100644
--- a/net-im/linux-ymessenger/Makefile
+++ b/net-im/linux-ymessenger/Makefile
@@ -6,12 +6,13 @@
#
PORTNAME= ymessenger
-PORTVERSION= 1.0.4.1
+PORTVERSION= 1.0.6.1
CATEGORIES= net-im
-MASTER_SITES= http://download.yahoo.com/dl/unix/
+MASTER_SITES= http://public.yahoo.com/%7Emmk/
PKGNAMEPREFIX= linux-
-DISTNAME= rh${BASEVERSION:C/([^\.])\..*/\1/}.${PORTNAME}-${PORTVERSION:C/\.([^\.]+)$/-\1/}.${MACHINE_ARCH}
-EXTRACT_SUFX= .rpm
+DISTNAME= rh9.${PORTNAME}-${PORTVERSION:C/\.([^\.]+)$/-\1/}.${MACHINE_ARCH}
+DISTFILES= ${DISTNAME}.rpm ymessenger.bin
+EXTRACT_ONLY= ${DISTNAME}.rpm
MAINTAINER= sethk@meowfishies.com
COMMENT= An RPM of Yahoo! Messenger instant messaging client
@@ -27,9 +28,6 @@ ONLY_FOR_ARCHS= i386
STRIP=
NO_FILTER_SHLIBS=yes
-# Set the version of linux_base
-BASEVERSION?= 7.1
-
SHARE_FILES= yahoo_gnome.png yahoo_kde.xpm ymessenger.desktop\
ymessenger.kdelnk
@@ -39,9 +37,12 @@ do-extract:
@for rpm in ${EXTRACT_ONLY}; do\
(cd ${WRKDIR} &&\
rpm2cpio.pl ${DISTDIR}/${DIST_SUBDIR}/${DISTFILE}/$$rpm |\
- ${CPIO} --quiet -id);\
+ ${CPIO} --quiet -idm);\
done
+pre-patch:
+ ${CP} -fp ${DISTDIR}/ymessenger.bin ${WRKDIR}/opt/ymessenger/bin
+
post-patch:
${SED} -e 's:%%PREFIX%%:${PREFIX}:g' ${FILESDIR}/linux-ymessenger.sh >\
${WRKDIR}/linux-ymessenger.sh
@@ -57,7 +58,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/linux-ymessenger.sh\
${PREFIX}/bin/linux-ymessenger
@${MKDIR} ${PREFIX}/lib/linux-ymessenger
- ${INSTALL_DATA} ${WRKDIR}/opt/ymessenger/lib/libgtkhtml.so.6\
+ ${INSTALL_DATA} ${WRKDIR}/opt/ymessenger/lib/libgtkhtml.so.0\
${PREFIX}/lib/linux-ymessenger
.include <bsd.port.mk>
diff --git a/net-im/linux-ymessenger/distinfo b/net-im/linux-ymessenger/distinfo
index 345de285a7dd..707755c53286 100644
--- a/net-im/linux-ymessenger/distinfo
+++ b/net-im/linux-ymessenger/distinfo
@@ -1,3 +1,6 @@
-MD5 (rh7.ymessenger-1.0.4-1.i386.rpm) = 8d6ebad8eee0260ef9f53a535ced5f68
-SHA256 (rh7.ymessenger-1.0.4-1.i386.rpm) = 2c549f288daff070c0ae5e58f65ff8197028c12b007b8641496fafbc3a763481
-SIZE (rh7.ymessenger-1.0.4-1.i386.rpm) = 966719
+MD5 (rh9.ymessenger-1.0.6-1.i386.rpm) = 1a2e515ad9512ba49dd4bc63e5b0ed6d
+SHA256 (rh9.ymessenger-1.0.6-1.i386.rpm) = ec516782bb131fa14e5261a8d004df868f7d21a710c0298cd3b6322f67a1956d
+SIZE (rh9.ymessenger-1.0.6-1.i386.rpm) = 723165
+MD5 (ymessenger.bin) = b0dfd6d467406981b2f82c2534941e27
+SHA256 (ymessenger.bin) = fac21fbb30b6c273a4764bd4e20d609ed873b7c3978b32751e0855e03aff0220
+SIZE (ymessenger.bin) = 2025244
diff --git a/net-im/linux-ymessenger/files/linux-ymessenger.sh b/net-im/linux-ymessenger/files/linux-ymessenger.sh
index 220657a59330..355eb45fc0d5 100644
--- a/net-im/linux-ymessenger/files/linux-ymessenger.sh
+++ b/net-im/linux-ymessenger/files/linux-ymessenger.sh
@@ -1,4 +1,7 @@
#!/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 $*
diff --git a/net-im/linux-ymessenger/pkg-plist b/net-im/linux-ymessenger/pkg-plist
index 2f2b59b9093f..12294da78eb7 100644
--- a/net-im/linux-ymessenger/pkg-plist
+++ b/net-im/linux-ymessenger/pkg-plist
@@ -4,6 +4,6 @@ libexec/linux-ymessenger/ymessenger.desktop
libexec/linux-ymessenger/ymessenger.kdelnk
libexec/linux-ymessenger/ymessenger.bin
bin/linux-ymessenger
-lib/linux-ymessenger/libgtkhtml.so.6
+lib/linux-ymessenger/libgtkhtml.so.0
@dirrm libexec/linux-ymessenger
@dirrm lib/linux-ymessenger