aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-06 21:07:52 +0800
committerpav <pav@FreeBSD.org>2003-12-06 21:07:52 +0800
commit26999b18c966984ffe6c9cb29184e568c1b80d02 (patch)
treec91e57ac30b194dffc35fffc63600266121ac2e3 /x11
parent130d50ee3083beb6cf6ce9c94387a1ee026ca41b (diff)
downloadfreebsd-ports-gnome-26999b18c966984ffe6c9cb29184e568c1b80d02.tar.gz
freebsd-ports-gnome-26999b18c966984ffe6c9cb29184e568c1b80d02.tar.zst
freebsd-ports-gnome-26999b18c966984ffe6c9cb29184e568c1b80d02.zip
Add apwal, a simple and powerful application launcher.
It is composed in 2 parts: the application launcher itself and a good looking easy to use editor. PR: ports/59940 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/apwal/Makefile31
-rw-r--r--x11/apwal/distinfo1
-rw-r--r--x11/apwal/files/group_member.c25
-rw-r--r--x11/apwal/files/patch-Makefile42
-rw-r--r--x11/apwal/files/patch-app.c10
-rw-r--r--x11/apwal/files/patch-sysstuff.c11
-rw-r--r--x11/apwal/pkg-descr12
-rw-r--r--x11/apwal/pkg-plist2
9 files changed, 135 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 663c4c820a64..37d3b48b8efd 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -14,6 +14,7 @@
SUBDIR += XFree86-aoutlibs
SUBDIR += XFree86-contrib
SUBDIR += accessx
+ SUBDIR += apwal
SUBDIR += aterm
SUBDIR += bbrun
SUBDIR += bgrot
diff --git a/x11/apwal/Makefile b/x11/apwal/Makefile
new file mode 100644
index 000000000000..a6f63fce781a
--- /dev/null
+++ b/x11/apwal/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: apwal
+# Date created: Nov 26, 2003
+# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= apwal
+PORTVERSION= 0.4.2
+CATEGORIES= x11
+MASTER_SITES= http://apwal.free.fr/download/
+
+MAINTAINER= stolz@i2.informatik.rwth-aachen.de
+COMMENT= Simple and powerful application launcher
+
+USE_GNOME= gtk20 libxml2
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}/src
+
+post-patch:
+ @${CP} ${FILESDIR}/group_member.c ${WRKSRC}
+ @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share/gnome|g' ${WRKSRC}/cereimg.c ${WRKSRC}/../example/apwalrc.xml
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/apwal ${PREFIX}/bin
+ ${LN} -sf ${PREFIX}/bin/apwal ${PREFIX}/bin/apwal-editor
+
+.include <bsd.port.mk>
diff --git a/x11/apwal/distinfo b/x11/apwal/distinfo
new file mode 100644
index 000000000000..6db7b3229307
--- /dev/null
+++ b/x11/apwal/distinfo
@@ -0,0 +1 @@
+MD5 (apwal-0.4.2.tar.gz) = 1252ef86fa9a0bc69ac7879c09790915
diff --git a/x11/apwal/files/group_member.c b/x11/apwal/files/group_member.c
new file mode 100644
index 000000000000..3197feb15935
--- /dev/null
+++ b/x11/apwal/files/group_member.c
@@ -0,0 +1,25 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+int group_member(gid_t gid) {
+ gid_t *grouplist = NULL;
+ int res,i;
+
+ res = getgroups(0,NULL);
+ if (res >= 0) {
+ grouplist = calloc(sizeof(gid_t),res);
+ res = getgroups(res,grouplist);
+ if (res >=0) {
+ for(i=0;i<res;i++) {
+ if (grouplist[i] == gid) break;
+ }
+ }
+ }
+ if (res == -1) {
+ perror("Can't get number of groups!");
+ return -1;
+ } else {
+ return (i<res);
+ }
+}
diff --git a/x11/apwal/files/patch-Makefile b/x11/apwal/files/patch-Makefile
new file mode 100644
index 000000000000..4a9219aaba19
--- /dev/null
+++ b/x11/apwal/files/patch-Makefile
@@ -0,0 +1,42 @@
+--- Makefile.orig Wed Nov 26 11:46:50 2003
++++ Makefile Wed Nov 26 12:20:34 2003
+@@ -5,11 +5,11 @@
+ CFLAGS=-g -Wall -Werror `pkg-config --cflags gtk+-2.0 gthread-2.0` -DGTK_DISABLE_DEPRECATED -DAPWAL_DEBUG
+ LDFLAGS=`pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs`
+ else
+-CFLAGS=-O2 `pkg-config --cflags gtk+-2.0 gthread-2.0`
+-LDFLAGS=-O2 `pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs`
++CFLAGS+=`pkg-config --cflags gtk+-2.0 gthread-2.0`
++LDFLAGS+=`pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs`
+ endif
+
+-OBJS=main.o app.o launcher.o editor.o property.o \
++OBJS=group_member.o main.o app.o launcher.o editor.o property.o \
+ gtkstuff.o sysstuff.o iconsel.o cereimg.o fromgtk2src/gtkmarshalers.o \
+ apwalapp.o iconsel_interface.o filesel.o xmlrc.o iconlist.o log.o about.o \
+ apwalpref.o
+@@ -28,7 +28,7 @@
+ else
+ all: apwal
+ apwal: $(OBJS)
+- gcc -o $@ $^ $(LDFLAGS)
++ $(CC) -o $@ $^ $(LDFLAGS)
+ strip $@
+ endif
+
+@@ -37,12 +37,12 @@
+ ln -sf /usr/local/bin/apwal /usr/local/bin/apwal-editor
+
+ .c.o: $(INCS)
+- gcc -c $< -o $*.o $(CFLAGS)
++ $(CC) -c $< -o $*.o $(CFLAGS)
+
+ xmlrc.o: xmlrc.c $(INCS)
+- gcc -c $< -o $*.o $(CFLAGS) `xml2-config --cflags`
++ $(CC) -c $< -o $*.o $(CFLAGS) `xml2-config --cflags`
+ about.o: about.c $(INCS) ../Makefile.inc
+- gcc -c $< -o $*.o $(CFLAGS) -DAPWAL_VERSION=\"$(VERS)\"
++ $(CC) -c $< -o $*.o $(CFLAGS) -DAPWAL_VERSION=\"$(VERS)\"
+
+ gtkstuff.o: pixbufinline.inc
+ xmlrc.o: xmlrcinline.inc
diff --git a/x11/apwal/files/patch-app.c b/x11/apwal/files/patch-app.c
new file mode 100644
index 000000000000..e17a316552e3
--- /dev/null
+++ b/x11/apwal/files/patch-app.c
@@ -0,0 +1,10 @@
+--- app.c.orig Wed Nov 26 11:50:10 2003
++++ app.c Wed Nov 26 11:50:23 2003
+@@ -18,6 +18,7 @@
+ */
+
+
++#include <sys/types.h>
+ #include "common.h"
+ #include <string.h>
+
diff --git a/x11/apwal/files/patch-sysstuff.c b/x11/apwal/files/patch-sysstuff.c
new file mode 100644
index 000000000000..a32889b579e0
--- /dev/null
+++ b/x11/apwal/files/patch-sysstuff.c
@@ -0,0 +1,11 @@
+--- sysstuff.c.orig Wed Dec 3 09:58:17 2003
++++ sysstuff.c Wed Dec 3 09:58:45 2003
+@@ -370,7 +370,7 @@
+ len = strlen(procfile);
+ pid = getpid();
+ sprintf(procfile + len, "%d", pid);
+- strcat(procfile, "/exe");
++ strcat(procfile, "/file");
+
+ // read procfile to get the binary file of apwal
+ cc = readlink(procfile, execfile, FILENAME_MAX);
diff --git a/x11/apwal/pkg-descr b/x11/apwal/pkg-descr
new file mode 100644
index 000000000000..b8f06305efcf
--- /dev/null
+++ b/x11/apwal/pkg-descr
@@ -0,0 +1,12 @@
+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/
diff --git a/x11/apwal/pkg-plist b/x11/apwal/pkg-plist
new file mode 100644
index 000000000000..1d1f9d19eef1
--- /dev/null
+++ b/x11/apwal/pkg-plist
@@ -0,0 +1,2 @@
+bin/apwal
+bin/apwal-editor