diff --git a/x11-wm/Makefile b/x11-wm/Makefile index 433181701b9d..5d198adee223 100644 --- a/x11-wm/Makefile +++ b/x11-wm/Makefile @@ -1,172 +1,173 @@ # $FreeBSD$ # COMMENT = X11 window managers SUBDIR += aewm SUBDIR += afterstep SUBDIR += afterstep-i18n SUBDIR += afterstep-stable SUBDIR += amiwm SUBDIR += antiwm SUBDIR += awesome SUBDIR += awesome-vicious SUBDIR += awesome2 SUBDIR += bbkeys SUBDIR += bbpager SUBDIR += blackbox SUBDIR += ccsm SUBDIR += clementine SUBDIR += compiz SUBDIR += compiz-fusion SUBDIR += compiz-plugins-extra SUBDIR += compiz-plugins-main SUBDIR += compiz-plugins-unsupported SUBDIR += compizconfig-backend-gconf SUBDIR += compizconfig-python SUBDIR += compton SUBDIR += ctwm SUBDIR += devilspie SUBDIR += dwm SUBDIR += e16 SUBDIR += e16utils SUBDIR += e17-module-alarm SUBDIR += e17-module-comp-scale SUBDIR += e17-module-cpu SUBDIR += e17-module-deskshow SUBDIR += e17-module-diskio SUBDIR += e17-module-eektool SUBDIR += e17-module-elfe SUBDIR += e17-module-empris SUBDIR += e17-module-engage SUBDIR += e17-module-eooorg SUBDIR += e17-module-everything-aspell SUBDIR += e17-module-everything-mpris SUBDIR += e17-module-everything-pidgin SUBDIR += e17-module-everything-places SUBDIR += e17-module-everything-shotgun SUBDIR += e17-module-everything-wallpaper SUBDIR += e17-module-everything-websearch SUBDIR += e17-module-exebuf SUBDIR += e17-module-execwatch SUBDIR += e17-module-flame SUBDIR += e17-module-forecasts SUBDIR += e17-module-iiirk SUBDIR += e17-module-itask SUBDIR += e17-module-mail SUBDIR += e17-module-mem SUBDIR += e17-module-moon SUBDIR += e17-module-mpdule SUBDIR += e17-module-net SUBDIR += e17-module-news SUBDIR += e17-module-penguins SUBDIR += e17-module-photo SUBDIR += e17-module-places SUBDIR += e17-module-rain SUBDIR += e17-module-rmb SUBDIR += e17-module-screenshot SUBDIR += e17-module-slideshow SUBDIR += e17-module-snow SUBDIR += e17-module-taskbar SUBDIR += e17-module-tclock SUBDIR += e17-module-uptime SUBDIR += e17-module-weather SUBDIR += e17-module-winlist-ng SUBDIR += e17-module-winselector SUBDIR += e17-module-wlan SUBDIR += e17-modules SUBDIR += echinus SUBDIR += ede SUBDIR += emerald SUBDIR += enlightenment SUBDIR += enlightenment-docs SUBDIR += epplets SUBDIR += evilwm SUBDIR += fbcmd SUBDIR += fbpager SUBDIR += fluxbox SUBDIR += fluxconf SUBDIR += fluxter SUBDIR += flwm SUBDIR += fvwm SUBDIR += fvwm-crystal SUBDIR += fvwm2 SUBDIR += fvwm2-i18n SUBDIR += gcompmgr SUBDIR += genmenu SUBDIR += golem SUBDIR += hackedbox SUBDIR += herbstluftwm SUBDIR += hs-xmonad SUBDIR += hs-xmonad-contrib SUBDIR += i3 SUBDIR += icewm SUBDIR += ion SUBDIR += jewel SUBDIR += jwm SUBDIR += larswm SUBDIR += libcompizconfig SUBDIR += libdockapp SUBDIR += libwraster SUBDIR += lwm + SUBDIR += lxmed SUBDIR += lxsession SUBDIR += matwm2 SUBDIR += mcwm SUBDIR += metacity SUBDIR += musca SUBDIR += mutter SUBDIR += nickleby SUBDIR += obconf SUBDIR += obkey SUBDIR += obmenu SUBDIR += obpager SUBDIR += olvwm SUBDIR += openbox SUBDIR += oroborus SUBDIR += pager SUBDIR += pawm SUBDIR += peksystray SUBDIR += pekwm SUBDIR += phluid SUBDIR += piewm SUBDIR += plwm SUBDIR += pwm SUBDIR += qlwm SUBDIR += qtile SUBDIR += ratmen SUBDIR += ratmenu SUBDIR += ratpoison SUBDIR += sapphire SUBDIR += sawfish SUBDIR += selectwm SUBDIR += simple-ccsm SUBDIR += spectrwm SUBDIR += stumpwm SUBDIR += swm SUBDIR += tinywm SUBDIR += transset SUBDIR += treewm SUBDIR += tvtwm SUBDIR += twm SUBDIR += vtwm SUBDIR += w9wm SUBDIR += weewm SUBDIR += windowlab SUBDIR += windowmaker SUBDIR += wm2 SUBDIR += wmakerconf SUBDIR += wmanager SUBDIR += wmanager-addons SUBDIR += wmconfig SUBDIR += wmfs SUBDIR += wmii SUBDIR += wmii-devel SUBDIR += wmname SUBDIR += xcompmgr SUBDIR += xfce4 SUBDIR += xfce4-desktop SUBDIR += xfce4-panel SUBDIR += xfce4-session SUBDIR += xfce4-wm .include diff --git a/x11-wm/lxmed/Makefile b/x11-wm/lxmed/Makefile new file mode 100644 index 000000000000..4e31ee01ea94 --- /dev/null +++ b/x11-wm/lxmed/Makefile @@ -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 diff --git a/x11-wm/lxmed/distinfo b/x11-wm/lxmed/distinfo new file mode 100644 index 000000000000..de2e6bc39f72 --- /dev/null +++ b/x11-wm/lxmed/distinfo @@ -0,0 +1,2 @@ +SHA256 (java/lxmed-20120515.tar.gz) = 156318768dc4440fdf851cb7eeedfa96678382eca05ce52a8766936ab5d10cca +SIZE (java/lxmed-20120515.tar.gz) = 80181 diff --git a/x11-wm/lxmed/files/lxmed.sh.in b/x11-wm/lxmed/files/lxmed.sh.in new file mode 100644 index 000000000000..39c9d9933cd9 --- /dev/null +++ b/x11-wm/lxmed/files/lxmed.sh.in @@ -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" "${@}" diff --git a/x11-wm/lxmed/files/pc-su b/x11-wm/lxmed/files/pc-su new file mode 100644 index 000000000000..87c6ea74a21b --- /dev/null +++ b/x11-wm/lxmed/files/pc-su @@ -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 diff --git a/x11-wm/lxmed/pkg-descr b/x11-wm/lxmed/pkg-descr new file mode 100644 index 000000000000..32e309464969 --- /dev/null +++ b/x11-wm/lxmed/pkg-descr @@ -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/ diff --git a/x11-wm/lxmed/pkg-plist b/x11-wm/lxmed/pkg-plist new file mode 100644 index 000000000000..902e461c6568 --- /dev/null +++ b/x11-wm/lxmed/pkg-plist @@ -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