ports/59940: New port: x11/apwal, a neat Gtk app launcher

Volker Stolz stolz at i2.informatik.rwth-aachen.de
Thu Dec 4 09:00:36 UTC 2003


>Number:         59940
>Category:       ports
>Synopsis:       New port: x11/apwal, a neat Gtk app launcher
>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 Dec 04 01:00:33 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Volker Stolz
>Release:        FreeBSD 4.9-RC i386
>Organization:
Lehrstuhl für Informatik II
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-RC FreeBSD 4.9-RC #10: Tue Oct 7 12:32:25 CEST 2003 root at menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386


>Description:
Apwal is a simple and powerful application launcher.
It is composed in 2 parts: the application launcher itself and
a good looking easy to use editor.

Apwal is developed under GPL. It is written in C and is using the
GTK+ toolkit for the Editor interface and XML format to save the
configuration.

To be able to launch the editor from inside apwal you need a
mounted procfs.

WWW: http://apwal.free.fr/
>How-To-Repeat:
>Fix:
--- apwal 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:
#
#	apwal
#	apwal/Makefile
#	apwal/distinfo
#	apwal/files
#	apwal/files/patch-Makefile
#	apwal/files/patch-app.c
#	apwal/files/patch-sysstuff.c
#	apwal/files/group_member.c
#	apwal/pkg-plist
#	apwal/pkg-descr
#
echo c - apwal
mkdir -p apwal > /dev/null 2>&1
echo x - apwal/Makefile
sed 's/^X//' >apwal/Makefile << 'END-of-apwal/Makefile'
X# New ports collection makefile for:	apwal
X# Date created:			Nov 26, 2003
X# Whom:				Volker Stolz <stolz at i2.informatik.rwth-aachen.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	apwal
XPORTVERSION=	0.4.2
XCATEGORIES=	x11
XMASTER_SITES=	http://apwal.free.fr/download/
X
XMAINTAINER=	stolz at i2.informatik.rwth-aachen.de
XCOMMENT=	Apwal is a simple and powerful application launcher
X
XUSE_GNOME=	glib20 gtk20 libxml2
XUSE_X_PREFIX=	YES
XUSE_GMAKE=	YES
XUSE_REINPLACE=	YES
X
XWRKSRC=		${WRKDIR}/${PORTNAME}/src
X
Xpost-patch:
X	${CP} ${FILESDIR}/group_member.c ${WRKSRC}
X	${REINPLACE_CMD} -e 's|usr/share|usr/X11R6/share/gnome|g' ${WRKSRC}/cereimg.c ${WRKSRC}/../example/apwalrc.xml
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/apwal ${PREFIX}/bin
X	${LN} -sf ${PREFIX}/bin/apwal ${PREFIX}/bin/apwal-editor
X
X.include <bsd.port.mk>
END-of-apwal/Makefile
echo x - apwal/distinfo
sed 's/^X//' >apwal/distinfo << 'END-of-apwal/distinfo'
XMD5 (apwal-0.4.2.tar.gz) = 1252ef86fa9a0bc69ac7879c09790915
END-of-apwal/distinfo
echo c - apwal/files
mkdir -p apwal/files > /dev/null 2>&1
echo x - apwal/files/patch-Makefile
sed 's/^X//' >apwal/files/patch-Makefile << 'END-of-apwal/files/patch-Makefile'
X--- Makefile.orig	Wed Nov 26 11:46:50 2003
X+++ Makefile	Wed Nov 26 12:20:34 2003
X@@ -5,11 +5,11 @@
X CFLAGS=-g -Wall -Werror `pkg-config --cflags gtk+-2.0 gthread-2.0` -DGTK_DISABLE_DEPRECATED -DAPWAL_DEBUG
X LDFLAGS=`pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs`
X else
X-CFLAGS=-O2 `pkg-config --cflags gtk+-2.0 gthread-2.0`
X-LDFLAGS=-O2 `pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs`
X+CFLAGS+=`pkg-config --cflags gtk+-2.0 gthread-2.0`
X+LDFLAGS+=`pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs`
X endif
X 
X-OBJS=main.o app.o launcher.o editor.o property.o \
X+OBJS=group_member.o main.o app.o launcher.o editor.o property.o \
X      gtkstuff.o sysstuff.o iconsel.o cereimg.o fromgtk2src/gtkmarshalers.o \
X      apwalapp.o iconsel_interface.o filesel.o xmlrc.o iconlist.o log.o about.o \
X      apwalpref.o 
X@@ -28,7 +28,7 @@
X else
X all: apwal
X apwal: $(OBJS)
X-	gcc -o $@ $^ $(LDFLAGS)
X+	$(CC) -o $@ $^ $(LDFLAGS)
X 	strip $@
X endif
X 
X@@ -37,12 +37,12 @@
X 	ln -sf /usr/local/bin/apwal /usr/local/bin/apwal-editor
X 
X .c.o: $(INCS)
X-	gcc -c $< -o $*.o $(CFLAGS)
X+	$(CC) -c $< -o $*.o $(CFLAGS)
X 
X xmlrc.o: xmlrc.c $(INCS)
X-	gcc -c $< -o $*.o $(CFLAGS) `xml2-config --cflags`
X+	$(CC) -c $< -o $*.o $(CFLAGS) `xml2-config --cflags`
X about.o: about.c $(INCS) ../Makefile.inc
X-	gcc -c $< -o $*.o $(CFLAGS) -DAPWAL_VERSION=\"$(VERS)\"
X+	$(CC) -c $< -o $*.o $(CFLAGS) -DAPWAL_VERSION=\"$(VERS)\"
X 
X gtkstuff.o: pixbufinline.inc
X xmlrc.o: xmlrcinline.inc
END-of-apwal/files/patch-Makefile
echo x - apwal/files/patch-app.c
sed 's/^X//' >apwal/files/patch-app.c << 'END-of-apwal/files/patch-app.c'
X--- app.c.orig	Wed Nov 26 11:50:10 2003
X+++ app.c	Wed Nov 26 11:50:23 2003
X@@ -18,6 +18,7 @@
X  */
X 
X 
X+#include <sys/types.h>
X #include "common.h"
X #include <string.h>
X 
END-of-apwal/files/patch-app.c
echo x - apwal/files/patch-sysstuff.c
sed 's/^X//' >apwal/files/patch-sysstuff.c << 'END-of-apwal/files/patch-sysstuff.c'
X--- sysstuff.c.orig	Wed Dec  3 09:58:17 2003
X+++ sysstuff.c	Wed Dec  3 09:58:45 2003
X@@ -370,7 +370,7 @@
X   len = strlen(procfile);
X   pid = getpid();
X   sprintf(procfile + len, "%d", pid);
X-  strcat(procfile, "/exe");
X+  strcat(procfile, "/file");
X 
X   // read procfile to get the binary file of apwal
X   cc = readlink(procfile, execfile, FILENAME_MAX);
END-of-apwal/files/patch-sysstuff.c
echo x - apwal/files/group_member.c
sed 's/^X//' >apwal/files/group_member.c << 'END-of-apwal/files/group_member.c'
X#include <stdio.h>
X#include <stdlib.h>
X#include <unistd.h>
X
Xint group_member(gid_t gid) {
X  gid_t *grouplist = NULL;
X  int res,i;
X
X  res = getgroups(0,NULL);
X  if (res >= 0) {
X    grouplist = calloc(sizeof(gid_t),res);
X    res = getgroups(res,grouplist);
X    if (res >=0) {
X	for(i=0;i<res;i++) {
X          if (grouplist[i] == gid) break;
X	}
X    }
X  }
X  if (res == -1) {
X    perror("Can't get number of groups!");
X    return -1;
X  } else {
X    return (i<res);
X  }
X}
END-of-apwal/files/group_member.c
echo x - apwal/pkg-plist
sed 's/^X//' >apwal/pkg-plist << 'END-of-apwal/pkg-plist'
Xbin/apwal
Xbin/apwal-editor
END-of-apwal/pkg-plist
echo x - apwal/pkg-descr
sed 's/^X//' >apwal/pkg-descr << 'END-of-apwal/pkg-descr'
XApwal is a simple and powerful application launcher.
XIt is composed in 2 parts: the application launcher itself and
Xa good looking easy to use editor. 
X
XApwal is developed under GPL. It is written in C and is using the
XGTK+ toolkit for the Editor interface and XML format to save the
Xconfiguration.
X
XTo be able to launch the editor from inside apwal you need a
Xmounted procfs.
X
XWWW: http://apwal.free.fr/
END-of-apwal/pkg-descr
exit
--- apwal ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list