diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-04-26 14:45:41 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-04-26 14:45:41 +0800 |
commit | 5f1c3b3699572dfe0f4fa0309bfe6e14b9f6e892 (patch) | |
tree | ecc2d234da6f86380b63e0b4f49ed61e161a166c /net/linux-nx-client | |
parent | 6ebd761cd21471ed3df205b78dc1c5c5b77431ca (diff) | |
download | freebsd-ports-gnome-5f1c3b3699572dfe0f4fa0309bfe6e14b9f6e892.tar.gz freebsd-ports-gnome-5f1c3b3699572dfe0f4fa0309bfe6e14b9f6e892.tar.zst freebsd-ports-gnome-5f1c3b3699572dfe0f4fa0309bfe6e14b9f6e892.zip |
- Make desktop entries pass desktop-file-validate; install them in
${PREFIX}/share/applications so that they do not show up twice in the
menus.
- Polish the Makefile.
PR: ports/79343
Submitted by: myself
Diffstat (limited to 'net/linux-nx-client')
-rw-r--r-- | net/linux-nx-client/Makefile | 15 | ||||
-rw-r--r-- | net/linux-nx-client/files/patch-nxclient-admin.desktop | 7 | ||||
-rw-r--r-- | net/linux-nx-client/files/patch-nxclient-help.desktop | 7 | ||||
-rw-r--r-- | net/linux-nx-client/files/patch-nxclient-wizard.desktop | 7 | ||||
-rw-r--r-- | net/linux-nx-client/files/patch-nxclient.desktop | 7 | ||||
-rw-r--r-- | net/linux-nx-client/pkg-plist | 16 |
6 files changed, 27 insertions, 32 deletions
diff --git a/net/linux-nx-client/Makefile b/net/linux-nx-client/Makefile index 07621a05d24d..65dfec9b1d07 100644 --- a/net/linux-nx-client/Makefile +++ b/net/linux-nx-client/Makefile @@ -7,6 +7,7 @@ PORTNAME= linux-nx-client PORTVERSION= 1.4.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.nomachine.com/download/nxclient/${PORTVERSION}/Linux-Static-Tar/ DISTNAME= nxclient-${PORTVERSION}-91.i386 @@ -23,7 +24,6 @@ NO_BUILD= yes NXSRC= ${WRKSRC}/NX NXDST= ${PREFIX}/lib/linux-nx-client -ICONS3232= nx.png nxclient-admin.png nxclient-wizard.png # Linux binary should not be stripped by INSTALL_PROGRAM # because as a side effect it brands the binary as FreeBSD. @@ -32,7 +32,7 @@ STRIP= PLIST_SUB+= PORTVERSION=${PORTVERSION} post-extract: - ${CP} ${NXSRC}/share/applnk/NX\ Client\ for\ Linux/* ${WRKSRC} + @${CP} ${NXSRC}/share/applnk/NX\ Client\ for\ Linux/* ${WRKSRC} do-install: ${MKDIR} ${NXDST}/bin @@ -46,22 +46,19 @@ do-install: ${MKDIR} ${NXDST}/share/images ${INSTALL_DATA} ${NXSRC}/share/images/* ${NXDST}/share/images - ${MKDIR} ${PREFIX}/share/gnome/applications - ${INSTALL_DATA} ${WRKSRC}/*.desktop ${PREFIX}/share/gnome/applications + ${MKDIR} ${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/*.desktop ${PREFIX}/share/applications ${MKDIR} ${PREFIX}/share/gnome/pixmaps ${INSTALL_DATA} ${NXSRC}/share/icons/* ${PREFIX}/share/gnome/pixmaps - ${MKDIR} ${LOCALBASE}/share/applnk/Internet - ${INSTALL_DATA} ${WRKSRC}/*.desktop ${LOCALBASE}/share/applnk/Internet ${MKDIR} ${LOCALBASE}/share/icons/crystalsvg/48x48 \ ${LOCALBASE}/share/icons/crystalsvg/32x32 ${INSTALL_DATA} ${NXSRC}/share/icons/nx-desktop.png \ ${LOCALBASE}/share/icons/crystalsvg/48x48 -.for FILE in ${ICONS3232} - ${INSTALL_DATA} ${NXSRC}/share/icons/${FILE} \ +.for f in nx.png nxclient-admin.png nxclient-wizard.png + ${INSTALL_DATA} ${NXSRC}/share/icons/${f} \ ${LOCALBASE}/share/icons/crystalsvg/32x32 .endfor - ${MKDIR} ${PREFIX}/bin .for f in nxclient nxprint nxproxy nxssh ${ECHO_CMD} "#!/bin/sh" > ${WRKSRC}/${f} ${ECHO_CMD} "export NXDIR=${NXDST}" >> ${WRKSRC}/${f} diff --git a/net/linux-nx-client/files/patch-nxclient-admin.desktop b/net/linux-nx-client/files/patch-nxclient-admin.desktop index adcebd8c4f72..18b35106d471 100644 --- a/net/linux-nx-client/files/patch-nxclient-admin.desktop +++ b/net/linux-nx-client/files/patch-nxclient-admin.desktop @@ -1,7 +1,8 @@ ---- nxclient-admin.desktop.orig Wed Sep 1 18:18:13 2004 -+++ nxclient-admin.desktop Wed Sep 1 18:18:30 2004 -@@ -1,6 +1,7 @@ +--- nxclient-admin.desktop.orig Tue Apr 26 08:23:07 2005 ++++ nxclient-admin.desktop Tue Apr 26 08:26:09 2005 +@@ -1,6 +1,8 @@ [Desktop Entry] ++Encoding=UTF-8 Comment=Launch NX session Administrator -Exec=/usr/NX/bin/nxclient -admin -Icon=/usr/NX/share/icons/nxclient-admin.png diff --git a/net/linux-nx-client/files/patch-nxclient-help.desktop b/net/linux-nx-client/files/patch-nxclient-help.desktop index f3bd023c6cb1..4e80f113cc15 100644 --- a/net/linux-nx-client/files/patch-nxclient-help.desktop +++ b/net/linux-nx-client/files/patch-nxclient-help.desktop @@ -1,7 +1,8 @@ ---- nxclient-help.desktop.orig Wed Sep 1 18:18:13 2004 -+++ nxclient-help.desktop Wed Sep 1 18:18:34 2004 -@@ -1,6 +1,6 @@ +--- nxclient-help.desktop.orig Tue Apr 26 08:23:07 2005 ++++ nxclient-help.desktop Tue Apr 26 08:26:44 2005 +@@ -1,6 +1,7 @@ [Desktop Entry] ++Encoding=UTF-8 Comment=Help online -Exec=konqueror http://www.nomachine.com/help -Icon=konqueror diff --git a/net/linux-nx-client/files/patch-nxclient-wizard.desktop b/net/linux-nx-client/files/patch-nxclient-wizard.desktop index d36c83accf0b..66b1402cf861 100644 --- a/net/linux-nx-client/files/patch-nxclient-wizard.desktop +++ b/net/linux-nx-client/files/patch-nxclient-wizard.desktop @@ -1,7 +1,8 @@ ---- nxclient-wizard.desktop.orig Wed Sep 1 18:18:13 2004 -+++ nxclient-wizard.desktop Wed Sep 1 18:18:39 2004 -@@ -1,6 +1,7 @@ +--- nxclient-wizard.desktop.orig Tue Apr 26 08:23:07 2005 ++++ nxclient-wizard.desktop Tue Apr 26 08:26:56 2005 +@@ -1,6 +1,8 @@ [Desktop Entry] ++Encoding=UTF-8 Comment=Launch connection wizard -Exec=/usr/NX/bin/nxclient -wizard -Icon=/usr/NX/share/icons/nxclient-wizard.png diff --git a/net/linux-nx-client/files/patch-nxclient.desktop b/net/linux-nx-client/files/patch-nxclient.desktop index 73a649394102..2f1c55325463 100644 --- a/net/linux-nx-client/files/patch-nxclient.desktop +++ b/net/linux-nx-client/files/patch-nxclient.desktop @@ -1,7 +1,8 @@ ---- nxclient.desktop.orig Wed Sep 1 18:18:13 2004 -+++ nxclient.desktop Wed Sep 1 18:18:44 2004 -@@ -1,6 +1,7 @@ +--- nxclient.desktop.orig Tue Apr 26 08:23:07 2005 ++++ nxclient.desktop Tue Apr 26 08:27:04 2005 +@@ -1,6 +1,8 @@ [Desktop Entry] ++Encoding=UTF-8 Comment=Client for connection to a remote NX server -Exec=/usr/NX/bin/nxclient -Icon=/usr/NX/share/icons/nx.png diff --git a/net/linux-nx-client/pkg-plist b/net/linux-nx-client/pkg-plist index 3c29d14e7242..c49686389a83 100644 --- a/net/linux-nx-client/pkg-plist +++ b/net/linux-nx-client/pkg-plist @@ -57,10 +57,10 @@ lib/linux-nx-client/share/images/view-log-dsb.png lib/linux-nx-client/share/images/view-log.png lib/linux-nx-client/share/images/warning.png lib/linux-nx-client/share/images/wizard.png -share/gnome/applications/nxclient-admin.desktop -share/gnome/applications/nxclient-help.desktop -share/gnome/applications/nxclient-wizard.desktop -share/gnome/applications/nxclient.desktop +share/applications/nxclient-admin.desktop +share/applications/nxclient-help.desktop +share/applications/nxclient-wizard.desktop +share/applications/nxclient.desktop share/gnome/pixmaps/nx-desktop.png share/gnome/pixmaps/nx.png share/gnome/pixmaps/nxclient-admin.png @@ -70,7 +70,7 @@ share/gnome/pixmaps/nxclient-wizard.png @dirrm lib/linux-nx-client/share/images @dirrm lib/linux-nx-client/share @dirrm lib/linux-nx-client -@unexec rmdir %D/share/gnome/applications 2>/dev/null || true +@unexec rmdir %D/share/applications 2>/dev/null || true @unexec rmdir %D/share/gnome/pixmaps 2>/dev/null || true @unexec rmdir %D/share/gnome 2>/dev/null || true @cwd %%LOCALBASE%% @@ -78,13 +78,7 @@ share/icons/crystalsvg/48x48/nx-desktop.png share/icons/crystalsvg/32x32/nx.png share/icons/crystalsvg/32x32/nxclient-admin.png share/icons/crystalsvg/32x32/nxclient-wizard.png -share/applnk/Internet/nxclient-admin.desktop -share/applnk/Internet/nxclient-help.desktop -share/applnk/Internet/nxclient-wizard.desktop -share/applnk/Internet/nxclient.desktop @unexec rmdir %D/share/icons/crystalsvg/48x48 2>/dev/null || true @unexec rmdir %D/share/icons/crystalsvg/32x32 2>/dev/null || true @unexec rmdir %D/share/icons/crystalsvg 2>/dev/null || true @unexec rmdir %D/share/icons 2>/dev/null || true -@unexec rmdir %D/share/applnk/Internet 2>/dev/null || true -@unexec rmdir %D/share/applnk 2>/dev/null || true |