From owner-svn-ports-all@FreeBSD.ORG Fri Oct 18 23:43:36 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A0AFDEB7; Fri, 18 Oct 2013 23:43:36 +0000 (UTC) (envelope-from nemysis@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D5DE26A6; Fri, 18 Oct 2013 23:43:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9INhaJA000609; Fri, 18 Oct 2013 23:43:36 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9INhZbg000602; Fri, 18 Oct 2013 23:43:35 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201310182343.r9INhZbg000602@svn.freebsd.org> From: Rusmir Dusko Date: Fri, 18 Oct 2013 23:43:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330799 - in head/x11-wm: . lxmed lxmed/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 23:43:36 -0000 Author: nemysis Date: Fri Oct 18 23:43:34 2013 New Revision: 330799 URL: http://svnweb.freebsd.org/changeset/ports/330799 Log: LXMenuEditor is a small, simple, free, open source, easy to use application that allows you to customize the LXDE menu. LXMenuEditor is very useful for people that want to create their own, customized menus for LXDE. This editor can also be used to customize GNOME's main menu and menus of other enviroments, although it's specially designed for the LXDE environment. WWW: http://lxmed.sourceforge.net/ PR: ports/175936 Submitted by: nemysis (self) Approved by: pawel (mentor) Added: head/x11-wm/lxmed/ head/x11-wm/lxmed/Makefile (contents, props changed) head/x11-wm/lxmed/distinfo (contents, props changed) head/x11-wm/lxmed/files/ head/x11-wm/lxmed/files/lxmed.sh.in (contents, props changed) head/x11-wm/lxmed/files/pc-su (contents, props changed) head/x11-wm/lxmed/pkg-descr (contents, props changed) head/x11-wm/lxmed/pkg-plist (contents, props changed) Modified: head/x11-wm/Makefile Modified: head/x11-wm/Makefile ============================================================================== --- head/x11-wm/Makefile Fri Oct 18 23:42:09 2013 (r330798) +++ head/x11-wm/Makefile Fri Oct 18 23:43:34 2013 (r330799) @@ -109,6 +109,7 @@ SUBDIR += libdockapp SUBDIR += libwraster SUBDIR += lwm + SUBDIR += lxmed SUBDIR += lxsession SUBDIR += matwm2 SUBDIR += mcwm Added: head/x11-wm/lxmed/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/lxmed/Makefile Fri Oct 18 23:43:34 2013 (r330799) @@ -0,0 +1,48 @@ +# Created by: Rusmir Dusko +# $FreeBSD$ + +PORTNAME= lxmed +PORTVERSION= 20120515 +CATEGORIES= x11-wm java +MASTER_SITES= SF/${PORTNAME}/ +DIST_SUBDIR= java + +MAINTAINER= nemysis@FreeBSD.org +COMMENT= LXDE Main Menu Editor + +LICENSE= GPLv3 + +RUN_DEPENDS= gksu:${PORTSDIR}/sysutils/gksu + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_JAVA= yes +JAVA_VERSION= 1.6+ +NO_BUILD= yes + +DATADIR= ${JAVASHAREDIR}/${PORTNAME} + +SUB_FILES= ${PORTNAME}.sh + +post-patch: + @${REINPLACE_CMD} -e 's|/opt/lxmed/${PORTNAME}.png|${PREFIX}/share/pixmaps/${PORTNAME}.png|' \ + -e 's|Main Menu Editor|${COMMENT}|g' \ + ${WRKSRC}/content/${PORTNAME}.desktop + @(cd ${WRKSRC}/content/ && ${CP} -a ${PORTNAME}.desktop ${PORTNAME}-root.desktop) + @${REINPLACE_CMD} -e 's|Exec=lxmed|Exec=${DATADIR}/pc-su ${PORTNAME}|' \ + -e 's|${COMMENT}|${COMMENT} (as root)|g' \ + ${WRKSRC}/content/${PORTNAME}-root.desktop + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DATADIR} + ${CP} -a ${FILESDIR}/pc-su ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/content/LXMenuEditor.jar ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/content/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/ + @${MKDIR} ${STAGEDIR}${DESKTOPDIR} + +.for d in ${PORTNAME}.desktop ${PORTNAME}-root.desktop + ${INSTALL_DATA} ${WRKSRC}/content/${d} ${STAGEDIR}${DESKTOPDIR} +.endfor + +.include Added: head/x11-wm/lxmed/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/lxmed/distinfo Fri Oct 18 23:43:34 2013 (r330799) @@ -0,0 +1,2 @@ +SHA256 (java/lxmed-20120515.tar.gz) = 156318768dc4440fdf851cb7eeedfa96678382eca05ce52a8766936ab5d10cca +SIZE (java/lxmed-20120515.tar.gz) = 80181 Added: head/x11-wm/lxmed/files/lxmed.sh.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/lxmed/files/lxmed.sh.in Fri Oct 18 23:43:34 2013 (r330799) @@ -0,0 +1,9 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +export JAVA_VERSION="%%JAVA_VERSION%%" + +cd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" \ +-Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/LXMenuEditor.jar" "${@}" Added: head/x11-wm/lxmed/files/pc-su ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/lxmed/files/pc-su Fri Oct 18 23:43:34 2013 (r330799) @@ -0,0 +1,34 @@ +#!/bin/sh +# Wrapper script which finds the right "su" program +# to use for graphical root execution + +if [ `id -r -u` != "0" ] ; then + VARS="`echo $@`" + + # Try qsudo first, should always be the default + which qsudo >/dev/null 2>/dev/null + if [ $? -eq 0 ] ; then + qsudo $VARS + exit $? + fi + + # Now try gksu + which gksu >/dev/null 2>/dev/null + if [ $? -eq 0 ] ; then + gksu -a "$VARS" + exit $? + fi + + # Lastly we have kdesu + which kdesu >/dev/null 2>/dev/null + if [ $? -eq 0 ] ; then + kdesu -t -c "$VARS" + exit $? + fi + + # If no utility could be found... + echo "No graphical switch-user utility found!" + exit 1 +else + ${@} +fi Added: head/x11-wm/lxmed/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/lxmed/pkg-descr Fri Oct 18 23:43:34 2013 (r330799) @@ -0,0 +1,10 @@ +LXMenuEditor is a small, simple, free, open source, easy to use application +that allows you to customize the LXDE menu. + +LXMenuEditor is very useful for people that want to create their own, +customized menus for LXDE. + +This editor can also be used to customize GNOME's main menu and menus +of other enviroments, although it's specially designed for the LXDE environment. + +WWW: http://lxmed.sourceforge.net/ Added: head/x11-wm/lxmed/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/lxmed/pkg-plist Fri Oct 18 23:43:34 2013 (r330799) @@ -0,0 +1,8 @@ +bin/lxmed +share/applications/lxmed-root.desktop +share/applications/lxmed.desktop +%%DATADIR%%/LXMenuEditor.jar +%%DATADIR%%/pc-su +share/pixmaps/lxmed.png +@dirrm %%DATADIR%% +@dirrmtry share/applications