From d862eac50a632f4bf3eaf5f1770b45dfef8c7ba4 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 20 Aug 2001 15:58:53 +0000 Subject: Add launch.app 0.6.5, an application launcher for WindowMaker dock. --- x11/Makefile | 1 + x11/launch.app/Makefile | 26 +++++++++++++++++ x11/launch.app/distinfo | 1 + x11/launch.app/files/patch-GNUmakefile | 53 ++++++++++++++++++++++++++++++++++ x11/launch.app/files/patch-execute.c | 22 ++++++++++++++ x11/launch.app/files/patch-launch.c | 27 +++++++++++++++++ x11/launch.app/pkg-comment | 1 + x11/launch.app/pkg-descr | 13 +++++++++ x11/launch.app/pkg-plist | 5 ++++ 9 files changed, 149 insertions(+) create mode 100644 x11/launch.app/Makefile create mode 100644 x11/launch.app/distinfo create mode 100644 x11/launch.app/files/patch-GNUmakefile create mode 100644 x11/launch.app/files/patch-execute.c create mode 100644 x11/launch.app/files/patch-launch.c create mode 100644 x11/launch.app/pkg-comment create mode 100644 x11/launch.app/pkg-descr create mode 100644 x11/launch.app/pkg-plist (limited to 'x11') diff --git a/x11/Makefile b/x11/Makefile index 1672cb5d87c6..714b66bc0e2a 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -50,6 +50,7 @@ SUBDIR += kdelibs2 SUBDIR += kvidtune SUBDIR += kworldwatch + SUBDIR += launch.app SUBDIR += libdnd SUBDIR += libhelp SUBDIR += libsx diff --git a/x11/launch.app/Makefile b/x11/launch.app/Makefile new file mode 100644 index 000000000000..25cf292ee5dc --- /dev/null +++ b/x11/launch.app/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: launch.app +# Date created: 20 August 2001 +# Whom: Maxim Sobolev +# +# $FreeBSD$ +# + +PORTNAME= launch.app +PORTVERSION= 0.6.5 +CATEGORIES= x11 windowmaker +MASTER_SITES= http://stepmaker.sourceforge.net/launch/ +DISTNAME= ${PORTNAME:S/l/L/}-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org + +LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker + +WRKSRC= ${WRKDIR}/${PORTNAME:S/l/L/} + +USE_X_PREFIX= yes +USE_XPM= yes +USE_GMAKE= yes +MAKEFILE= GNUmakefile +MAKE_ENV= MKDIR="${MKDIR}" + +.include diff --git a/x11/launch.app/distinfo b/x11/launch.app/distinfo new file mode 100644 index 000000000000..763ff77c5b3d --- /dev/null +++ b/x11/launch.app/distinfo @@ -0,0 +1 @@ +MD5 (Launch.app-0.6.5.tar.gz) = 7444a8d7ec3ca6f0f93840100b779509 diff --git a/x11/launch.app/files/patch-GNUmakefile b/x11/launch.app/files/patch-GNUmakefile new file mode 100644 index 000000000000..6003e6ccaac8 --- /dev/null +++ b/x11/launch.app/files/patch-GNUmakefile @@ -0,0 +1,53 @@ + +$FreeBSD$ + +--- GNUmakefile.orig Mon Jun 4 14:56:00 2001 ++++ GNUmakefile Mon Aug 20 18:56:09 2001 +@@ -1,10 +1,10 @@ +-PREFIX = /usr/local/GNUstep/Apps ++prefix = $(PREFIX)/GNUstep/Apps + # Comment out the line below if you don't use shadow passwords +-SHADOW = yes +-CFLAGS = `get-wraster-flags --cflags` -DPREFIX="\"$(PREFIX)\"" ++#SHADOW = yes ++CFLAGS += `get-wraster-flags --cflags` -DPREFIX="\"$(prefix)\"" + LDFLAGS = `get-wraster-flags --ldflags` +-LIBS = `get-wraster-flags --libs` -L/usr/X11R6/lib -L/usr/local/GNUstep/lib -lWMaker -lWINGs -lPropList -lcrypt +-CC = gcc -O2 -ggdb ++LIBS = `get-wraster-flags --libs` -L$(X11BASE)/lib -L$(X11BASE)/GNUstep/lib -lWMaker -lWINGs -lPropList -lcrypt ++CC ?= gcc + OBJS = launch.o history.o execute.o user_auth.o exec_panel.o completion.o test_file.o common_panel.o pref_panel.o info.o legal.o + + all: Launch +@@ -50,21 +50,21 @@ + $(CC) $(CFLAGS) -c legal.c -o legal.o + + install: Launch +- strip Launch +- mkdir -p $(PREFIX)/Launch.app +- install -c Launch $(PREFIX)/Launch.app/Launch +- install -m 644 Launch.tiff $(PREFIX)/Launch.app/Launch.tiff +- install -m 644 LaunchInfo.tiff $(PREFIX)/Launch.app/LaunchInfo.tiff +- install -m 755 openurl $(PREFIX)/Launch.app/openurl ++ #strip Launch ++ $(MKDIR) $(prefix)/Launch.app ++ $(BSD_INSTALL_PROGRAM) Launch $(prefix)/Launch.app/Launch ++ $(BSD_INSTALL_DATA) Launch.tiff $(prefix)/Launch.app/Launch.tiff ++ $(BSD_INSTALL_DATA) LaunchInfo.tiff $(prefix)/Launch.app/LaunchInfo.tiff ++ $(BSD_INSTALL_SCRIPT) openurl $(prefix)/Launch.app/openurl + ifeq ($(SHADOW), yes) +- chown root.shadow $(PREFIX)/Launch.app/Launch ++ chown root:wheel $(prefix)/Launch.app/Launch + else +- chown root.root $(PREFIX)/Launch.app/Launch ++ chown root:wheel $(prefix)/Launch.app/Launch + endif +- chmod 4775 $(PREFIX)/Launch.app/Launch ++ chmod 4775 $(prefix)/Launch.app/Launch + + uninstall: +- rm -r $(PREFIX)/Launch.app ++ rm -r $(prefix)/Launch.app + + clean: + rm -rf *.o Launch *~ diff --git a/x11/launch.app/files/patch-execute.c b/x11/launch.app/files/patch-execute.c new file mode 100644 index 000000000000..04ecd3a982e2 --- /dev/null +++ b/x11/launch.app/files/patch-execute.c @@ -0,0 +1,22 @@ + +$FreeBSD$ + +--- execute.c 2001/08/20 09:08:11 1.1 ++++ execute.c 2001/08/20 09:09:29 +@@ -157,13 +157,13 @@ + pid = fork (); + if (pid == 0) + { +- if (setuid (pw->pw_gid)) ++ if (setgid (pw->pw_gid)) + { + fprintf (stderr, "unable to set group id\n"); + } +- if (setgid (pw->pw_uid)) ++ if (setuid (pw->pw_uid)) + { +- fprintf (stderr, "unable to set group id\n"); ++ fprintf (stderr, "unable to set user id\n"); + } + setenv ("HOME", pw->pw_dir, 1); + setenv ("USER", pw->pw_name, 1); diff --git a/x11/launch.app/files/patch-launch.c b/x11/launch.app/files/patch-launch.c new file mode 100644 index 000000000000..aa37fa960ee1 --- /dev/null +++ b/x11/launch.app/files/patch-launch.c @@ -0,0 +1,27 @@ + +$FreeBSD$ + +--- launch.c 2001/08/20 09:01:20 1.1 ++++ launch.c 2001/08/20 09:02:33 +@@ -208,8 +208,8 @@ + WMSynchronizeUserDefaults (udb); + WMSetUDStringForKey (udb, "0.65", "Version"); + WMSynchronizeUserDefaults (udb); +- WMSetUDStringForKey (udb, "/usr/local/GNUstep/Apps/Launch.app/openurl %s", "HTTP_App"); +- WMSetUDStringForKey (udb, "/usr/local/GNUstep/Apps/Launch.app/openurl %s", "FTP_App"); ++ WMSetUDStringForKey (udb, PREFIX "/Launch.app/openurl %s", "HTTP_App"); ++ WMSetUDStringForKey (udb, PREFIX "/Launch.app/openurl %s", "FTP_App"); + WMSetUDStringForKey (udb, "xterm -e %s", "Term_Com"); + WMSetUDBoolForKey (udb, True, "Enable_Switch"); + WMSynchronizeUserDefaults (udb); +@@ -220,8 +220,8 @@ + { + WMSetUDStringForKey (udb, "0.65", "Version"); + WMSynchronizeUserDefaults (udb); +- WMSetUDStringForKey (udb, "/usr/local/GNUstep/Apps/Launch.app/openurl %s", "HTTP_App"); +- WMSetUDStringForKey (udb, "/usr/local/GNUstep/Apps/Launch.app/openurl %s", "FTP_App"); ++ WMSetUDStringForKey (udb, PREFIX "/Launch.app/openurl %s", "HTTP_App"); ++ WMSetUDStringForKey (udb, PREFIX "/Launch.app/openurl %s", "FTP_App"); + WMSynchronizeUserDefaults (udb); + WMSaveUserDefaults (udb); + } diff --git a/x11/launch.app/pkg-comment b/x11/launch.app/pkg-comment new file mode 100644 index 000000000000..429d935804a5 --- /dev/null +++ b/x11/launch.app/pkg-comment @@ -0,0 +1 @@ +An application launcher for WindowMaker dock diff --git a/x11/launch.app/pkg-descr b/x11/launch.app/pkg-descr new file mode 100644 index 000000000000..a6ef6e748d43 --- /dev/null +++ b/x11/launch.app/pkg-descr @@ -0,0 +1,13 @@ +Launch.app is a small programm for executing applications, based on WINGs +library. + +Features: + +- command history; +- executing application under different user (e.g. root); +- tab completion; +- executing console applications; +- recognition of URLs; +- configuration. + +WWW: http://stepmaker.sourceforge.net/launch.html diff --git a/x11/launch.app/pkg-plist b/x11/launch.app/pkg-plist new file mode 100644 index 000000000000..c86de94b8420 --- /dev/null +++ b/x11/launch.app/pkg-plist @@ -0,0 +1,5 @@ +GNUstep/Apps/Launch.app/Launch +GNUstep/Apps/Launch.app/Launch.tiff +GNUstep/Apps/Launch.app/LaunchInfo.tiff +GNUstep/Apps/Launch.app/openurl +@dirrm GNUstep/Apps/Launch.app -- cgit v1.2.3