summaryrefslogtreecommitdiff
path: root/x11/apwal
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-06 13:07:52 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-06 13:07:52 +0000
commit8661561f12bea6a9b46f87d7563bc4c24b684380 (patch)
tree0dbb92f7afa5a1af4a36c4703a31ba12f4a3d983 /x11/apwal
parentAdd py-bulksms, python client for BulkSMS.co.uk's HTTP API for sending (diff)
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>
Notes
Notes: svn path=/head/; revision=95184
Diffstat (limited to 'x11/apwal')
-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
8 files changed, 134 insertions, 0 deletions
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