From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 7 20:00:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C67DF811 for ; Thu, 7 Feb 2013 20:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AB836A2E for ; Thu, 7 Feb 2013 20:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r17K00H0080068 for ; Thu, 7 Feb 2013 20:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r17K00dI080065; Thu, 7 Feb 2013 20:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 7 Feb 2013 20:00:00 GMT Resent-Message-Id: <201302072000.r17K00dI080065@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, nemysis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 63B88791 for ; Thu, 7 Feb 2013 19:54:18 +0000 (UTC) (envelope-from nemysis@gmx.ch) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by mx1.freebsd.org (Postfix) with ESMTP id E975C9EC for ; Thu, 7 Feb 2013 19:54:17 +0000 (UTC) Received: from mailout-de.gmx.net ([10.1.76.19]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0Mgqx4-1UGpD62sts-00M1dB for ; Thu, 07 Feb 2013 20:54:16 +0100 Received: (qmail invoked by alias); 07 Feb 2013 19:54:15 -0000 Received: from 226-42.104-92.cust.bluewin.ch (EHLO something.email.com) [92.104.42.226] by mail.gmx.net (mp019) with SMTP; 07 Feb 2013 20:54:15 +0100 Received: by something.email.com (sSMTP sendmail emulation); Thu, 07 Feb 2013 20:54:15 +0100 Message-Id: <20130207195418.63B88791@hub.freebsd.org> Date: Thu, 07 Feb 2013 20:54:15 +0100 From: nemysis To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/175936: [NEW PORT] x11-wm/lxmed: LXDE Main Menu Editor X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 20:00:00 -0000 >Number: 175936 >Category: ports >Synopsis: [NEW PORT] x11-wm/lxmed: LXDE Main Menu Editor >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 20:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: nemysis >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 >Description: LXMenuEditor lxmed is a small, simple, free, open source, easy to use application that allows you to customize the LXDE menu. lxmed 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, altough it's specially designed for the LXDE environment. WWW: http://lxmed.sourceforge.net/ Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: new) >How-To-Repeat: portlint -A looks fine. port test: clean >Fix: --- .shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # lxmed # lxmed/files # lxmed/files/pc-su # lxmed/files/lxmed.sh.in # lxmed/Makefile # lxmed/pkg-descr # lxmed/distinfo # echo c - lxmed mkdir -p lxmed > /dev/null 2>&1 echo c - lxmed/files mkdir -p lxmed/files > /dev/null 2>&1 echo x - lxmed/files/pc-su sed 's/^X//' >lxmed/files/pc-su << '6bfbd7db770db2c74a9369c2ca175f61' X#!/bin/sh X# Wrapper script which finds the right "su" program X# to use for graphical root execution X Xif [ `id -r -u` != "0" ] ; then X VARS="`echo $@`" X X # Try qsu first, should always be the default X which qsu >/dev/null 2>/dev/null X if [ $? -eq 0 ] ; then X qsu $VARS X exit $? X fi X X # Now try gksu X which gksu >/dev/null 2>/dev/null X if [ $? -eq 0 ] ; then X gksu -a "$VARS" X exit $? X fi X X # Lastly we have kdesu X which kdesu >/dev/null 2>/dev/null X if [ $? -eq 0 ] ; then X kdesu -t -c "$VARS" X exit $? X fi X X # If no utility could be found... X echo "No graphical switch-user utility found!" X exit 1 Xelse X ${@} Xfi 6bfbd7db770db2c74a9369c2ca175f61 echo x - lxmed/files/lxmed.sh.in sed 's/^X//' >lxmed/files/lxmed.sh.in << '2621300815151400967b9a0fc77475ee' X#!/bin/sh X# X# $FreeBSD$ X# X Xexport JAVA_VERSION="%%JAVA_VERSION%%" X Xcd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" \ X-Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/LXMenuEditor.jar" "${@}" 2621300815151400967b9a0fc77475ee echo x - lxmed/Makefile sed 's/^X//' >lxmed/Makefile << '8aec8225461fd6fae6c37e6155a7ec6f' X# Created by: nemysis@gmx.ch X# $FreeBSD$ X XPORTNAME= lxmed XPORTVERSION= 20120515 XCATEGORIES= x11-wm java XMASTER_SITES= SF/${PORTNAME}/ XDIST_SUBDIR= java X XMAINTAINER= nemysis@gmx.ch XCOMMENT= LXDE Main Menu Editor X XLICENSE= GPLv3 X XRUN_DEPENDS= gksu:${PORTSDIR}/sysutils/gksu X XWRKSRC= ${WRKDIR}/${PORTNAME} X XUSE_JAVA= yes XJAVA_VERSION= 1.6+ XNO_BUILD= yes X XPLIST_FILES= bin/${PORTNAME} \ X share/applications/${PORTNAME}-root.desktop \ X share/applications/${PORTNAME}.desktop \ X ${DATADIR}/LXMenuEditor.jar \ X ${DATADIR}/pc-su \ X share/pixmaps/${PORTNAME}.png XPLIST_DIRS= %%DATADIR%% XPLIST_DIRSTRY= share/applications X XDATADIR= ${JAVASHAREDIR}/${PORTNAME} X XSUB_FILES= ${PORTNAME}.sh X Xpost-patch: X @${REINPLACE_CMD} -e 's|/opt/lxmed/${PORTNAME}.png|${PREFIX}/share/pixmaps/${PORTNAME}.png|' \ X -e 's|Main Menu Editor|${COMMENT}|g' \ X ${WRKSRC}/content/${PORTNAME}.desktop X @(cd ${WRKSRC}/content/ && ${CP} -a ${PORTNAME}.desktop ${PORTNAME}-root.desktop) X @${REINPLACE_CMD} -e 's|Exec=lxmed|Exec=${DATADIR}/pc-su ${PORTNAME}|' \ X -e 's|${COMMENT}|${COMMENT} (as root)|g' \ X ${WRKSRC}/content/${PORTNAME}-root.desktop X Xdo-install: X ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} X ${MKDIR} ${DATADIR} X ${CP} -a ${FILESDIR}/pc-su ${DATADIR}/ X ${INSTALL_DATA} ${WRKSRC}/content/LXMenuEditor.jar ${DATADIR} X ${INSTALL_DATA} ${WRKSRC}/content/${PORTNAME}.png ${PREFIX}/share/pixmaps/ X ${MKDIR} ${PREFIX}/share/applications X.for i in ${PORTNAME}.desktop ${PORTNAME}-root.desktop X ${INSTALL_DATA} ${WRKSRC}/content/${i} ${PREFIX}/share/applications/ X.endfor X X.include 8aec8225461fd6fae6c37e6155a7ec6f echo x - lxmed/pkg-descr sed 's/^X//' >lxmed/pkg-descr << 'aad25c8771ad71a89fa36e393e02c33d' XLXMenuEditor X Xlxmed is a small, simple, free, open source, easy to use application Xthat allows you to customize the LXDE menu. X Xlxmed is very useful for people that want to create their own, Xcustomized menus for LXDE. X XThis editor can also be used to customize GNOME's main menu and menus Xof other enviroments, altough it's specially designed for the LXDE environment. X XWWW: http://lxmed.sourceforge.net/ aad25c8771ad71a89fa36e393e02c33d echo x - lxmed/distinfo sed 's/^X//' >lxmed/distinfo << '408abe8db601e6fa6286ba97c03532e7' XSHA256 (java/lxmed-20120515.tar.gz) = 156318768dc4440fdf851cb7eeedfa96678382eca05ce52a8766936ab5d10cca XSIZE (java/lxmed-20120515.tar.gz) = 80181 408abe8db601e6fa6286ba97c03532e7 exit --- .shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: