From owner-freebsd-ports Tue Apr 30 1: 0:31 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0D9A837B41E for ; Tue, 30 Apr 2002 01:00:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3U802L40978; Tue, 30 Apr 2002 01:00:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 94AE737B404 for ; Tue, 30 Apr 2002 00:57:44 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3U7viW40573; Tue, 30 Apr 2002 00:57:44 -0700 (PDT) (envelope-from nobody) Message-Id: <200204300757.g3U7viW40573@freefall.freebsd.org> Date: Tue, 30 Apr 2002 00:57:44 -0700 (PDT) From: Hendrik Scholz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/37588: new port x11/fluxconf: a configuration tool for the fluxbox window manager Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37588 >Category: ports >Synopsis: new port x11/fluxconf: a configuration tool for the fluxbox window manager >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 30 01:00:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Hendrik Scholz >Release: 5.0 -current x86 >Organization: NetUSE AG >Environment: FreeBSD deimos.raisdorf.net 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Sun Mar 17 19:26:49 EST 2002 hscholz@deimos.raisdorf.net:/usr/src/sys/i386/compile/DEIMOS5 i386 >Description: This is an initial port of a gtk based fluxbox configuration tool. I added a patch that optionally disables the splash screen of the program and a patch that allows longer execute commands within the program. This patch could also be found on http://www.raisdorf.net/files/FreeBSD/ >How-To-Repeat: >Fix: # 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: # # fluxconf # fluxconf/pkg-plist # fluxconf/pkg-descr # fluxconf/pkg-comment # fluxconf/files # fluxconf/files/patch-aa # fluxconf/files/patch-ab # fluxconf/Makefile # fluxconf/distinfo # echo c - fluxconf mkdir -p fluxconf > /dev/null 2>&1 echo x - fluxconf/pkg-plist sed 's/^X//' >fluxconf/pkg-plist << 'END-of-fluxconf/pkg-plist' Xbin/fluxconf Xbin/fluxkeys END-of-fluxconf/pkg-plist echo x - fluxconf/pkg-descr sed 's/^X//' >fluxconf/pkg-descr << 'END-of-fluxconf/pkg-descr' Xfluxconf is a tiny GTK based configuration tool for the fluxbox window manager. XIt allows basic manipulation of the window manager behaviour: X X o Slit configuration X o Window placement X o Focus model X o Workspace configuration X XWWW: http://devaux.fabien.free.fr/flux/ X X- Hendrik Scholz X END-of-fluxconf/pkg-descr echo x - fluxconf/pkg-comment sed 's/^X//' >fluxconf/pkg-comment << 'END-of-fluxconf/pkg-comment' XFluxconf is a configuration program for the fluxbox window manager END-of-fluxconf/pkg-comment echo c - fluxconf/files mkdir -p fluxconf/files > /dev/null 2>&1 echo x - fluxconf/files/patch-aa sed 's/^X//' >fluxconf/files/patch-aa << 'END-of-fluxconf/files/patch-aa' X--- fluxconf.c.orig Tue Apr 30 12:28:32 2002 X+++ fluxconf.c Tue Apr 30 12:39:53 2002 X@@ -160,8 +160,9 @@ X #define NB 16 X #define KEYLEN 30 X #define ACTLEN 30 X-#define EXELEN 80 X+#define EXELEN 255 X #define MAXKEYCOUNT 100 X+#define MAXLINELEN 1024 X X /* STRUCTURE ABOUT WIDGETS : X X@@ -369,10 +370,10 @@ X g_print("Can't open %s\n",initpath); X exit(1); X } X- buf=(char*) malloc(100*sizeof(char)); X+ buf=(char*) malloc(MAXLINELEN*sizeof(char)+1); X checkptr(buf); X /* get all lines */ X- while(fgets(buf,100,file)) { X+ while(fgets(buf,MAXLINELEN,file)) { X config=realloc(config,1+i*sizeof(char*)); X checkptr(config); X config[i-1]=(char*)malloc(15+strlen(buf)*sizeof(char)); /* I get some unused space for bigger numbers, etc...*/ X@@ -535,8 +536,10 @@ X gtk_button_set_relief(GTK_BUTTON(but),GTK_RELIEF_NONE); X X gtk_widget_show_all(win); X+#ifdef WITH_LOGO X gtk_timeout_add(100,(GtkFunction) show,logowin); /* show the logo */ X gtk_timeout_add(3500,(GtkFunction) hide,logowin); /* hide the logo */ X+#endif X gtk_main(); X return 0; X } X@@ -692,10 +695,10 @@ X g_print("Can't open %s\n",initpath); X exit(1); X } X- buf=(char*) malloc(KEYLEN+ACTLEN+EXELEN*sizeof(char)); X+ buf=(char*) malloc(KEYLEN+ACTLEN+EXELEN*sizeof(char)+1); X checkptr(buf); X /* read the config */ X- while(fgets(buf,100,file)) { X+ while(fgets(buf,KEYLEN+ACTLEN+EXELEN,file)) { X config=realloc(config,1+i*sizeof(char*)); X checkptr(config); X config[i-1]=(char*)malloc(10+strlen(buf)*sizeof(char)); X@@ -770,8 +773,10 @@ X gtk_signal_connect(GTK_OBJECT(win), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); X X gtk_widget_show_all(win); X+#ifdef WITH_LOGO X gtk_timeout_add(100,(GtkFunction) show,logowin); /* show the logo */ X gtk_timeout_add(3500,(GtkFunction) hide,logowin); /* hide the logo */ X+#endif X gtk_main(); X X END-of-fluxconf/files/patch-aa echo x - fluxconf/files/patch-ab sed 's/^X//' >fluxconf/files/patch-ab << 'END-of-fluxconf/files/patch-ab' X--- Makefile.orig Tue Apr 30 12:46:40 2002 X+++ Makefile Tue Apr 30 12:46:43 2002 X@@ -2,7 +2,7 @@ X X EXE=fluxconf X CC=gcc X-CFLAGS=`gtk-config --cflags --libs` -Wall -s -O X+CFLAGS=`gtk-config --cflags --libs` -Wall -s -O %%WITH_LOGO%% X X all: $(EXE) actions.h X ln -sf fluxconf fluxkeys END-of-fluxconf/files/patch-ab echo x - fluxconf/Makefile sed 's/^X//' >fluxconf/Makefile << 'END-of-fluxconf/Makefile' X# Ports collection Makefile for: fluxconf X# Date created: 29/04/2002 X# Whom: hendrik@scholz.net X# X# $FreeBSD$ X# X XPORTNAME= fluxconf XPORTVERSION= 0.6 XPORTREVISION= 1 XCATEGORIES= x11 XMASTER_SITES= http://devaux.fabien.free.fr/flux/ X XMAINTAINER= hendrik@scholz.net X XUSE_X_PREFIX= yes XUSE_GTK= yes XUSE_BZIP2= yes X X.if defined(WITH_LOGO) XMAKE_ARGS= -DWITH_LOGO X.else XMAKE_ARGS= X.endif X Xpre-everything:: X @${ECHO} "" X @${ECHO} "You may use the following build options:" X @${ECHO} "" X @${ECHO} " WITH_LOGO=yes Enable the startup splash screen" X @${ECHO} "" X Xpost-patch: X @${PERL} -pi -e "s|%%WITH_LOGO%%|${MAKE_ARGS}|g" ${WRKSRC}/Makefile X @${PERL} -pi -e "s|gtk-config|${GTK_CONFIG}|g" ${WRKSRC}/Makefile X @${PERL} -pi -e "s|\/usr\/local|${X11BASE}|g" ${WRKSRC}/Makefile X @${RM} ${WRKSRC}/fluxconf X Xpost-install: X @${LN} -s ${X11BASE}/bin/fluxconf ${X11BASE}/bin/fluxkeys X X.include END-of-fluxconf/Makefile echo x - fluxconf/distinfo sed 's/^X//' >fluxconf/distinfo << 'END-of-fluxconf/distinfo' XMD5 (fluxconf-0.6.tar.bz2) = 17099e2f6cb7206aac2a9f599b4c084b END-of-fluxconf/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message