--- bbrun-1.6.orig/debian/watch +++ bbrun-1.6/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.darkops.net/bbrun/bbrun-(.*)\.tar\.gz --- bbrun-1.6.orig/debian/copyright +++ bbrun-1.6/debian/copyright @@ -0,0 +1,114 @@ +This package was debianized by Stan Vasilyev on +Tue, 1 Nov 2005 17:09:27 -0800. + +It was downloaded from http://www.darkops.net/bbrun/ + +Copyright Holders: Josh King + Kresten Krab Thorup + Alfredo K. Kojima + Martijn Pieterse + +License (bbrun): + + Copyright (C) 2000-2004, Josh King + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL file. + +License (wmgeneral/list.c): + + Copyright (C) 1993-1994, Kresten Krab Thorup and Alfredo K. Kojima + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL file. + +License (wmgeneral/list.h): + + Copyright (C) 1993-1994, Kresten Krab Thorup + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL file. + +License (wmgeneral/misc.c and misc.h): + + Copyright (C) 1997, Alfredo K. Kojima. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL file. + +License (wmgeneral/wmgeneral.c and wmgeneral.h): + + Copyright (C) 1998, Martijn Pieterse . + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL file. --- bbrun-1.6.orig/debian/control +++ bbrun-1.6/debian/control @@ -0,0 +1,21 @@ +Source: bbrun +Section: x11 +Priority: optional +Maintainer: Kevin Coyner +Build-Depends: debhelper (>= 8), libxpm-dev, libgtk2.0-dev, dpatch +Standards-Version: 3.9.1 +Homepage: http://www.darkops.net/bbrun/ + +Package: bbrun +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: blackbox (>= 0.60.1) | fluxbox +Description: A tool for the blackbox/fluxbox window managers that runs commands + bbrun is a small but very useful application. It makes it convenient to quickly + execute commands from the blackbox window manager. bbrun is very similar to + KDE's Alt+F2 Run Command dialog box. When launched, it occupies a small portion + of the desktop and docks itself to the right side of the screen. The run dialog + is opened by clicking a tiny bbrun icon. + . + You don't necessarily need blackbox for this program to work. It looks just as + good in fluxbox, but it won't look the same in other window managers. --- bbrun-1.6.orig/debian/changelog +++ bbrun-1.6/debian/changelog @@ -0,0 +1,64 @@ +bbrun (1.6-6) unstable; urgency=low + + * debian/control: + + Moved homepage from text body to its own field. Closes: #615255. + + Bumped debhelper to version 8. + + Bumped Standards-Version to 3.9.1. No changes. + * Changed debian/compat to 8. + * Added debian/README.source. Package uses dpatch patch system. + * Fix FTBFS with binutils-gold with patch. Closes: #553952. Thanks to + Mahyuddin Susanto. + * Changed dh_clean -k to dh_prep in debian/rules. + * Fix manpage error. + * Fix warning: comparison with string literal results in + unspecified behavior. Closes: #614244. Thanks to Tilmann Hentze. + + -- Kevin Coyner Wed, 16 Mar 2011 00:40:37 +0000 + +bbrun (1.6-5) unstable; urgency=low + + * New e-mail address for maintainer. Changed in debian/control and man page. + * In debian/menu, changed section title from Apps/Tools to + Applications/System/Administration to conform with new menu policy. + * debian/rules: + + Cleaned up a little cruft + + Added patch, unpatch, clean-patched to PHONY + + Changed a make clean rule and patch-stamp + + -- Kevin Coyner Mon, 06 Aug 2007 21:32:57 -0400 + +bbrun (1.6-4) unstable; urgency=low + + * New maintainer. Closes: #410617. + * debian/control: + + Updated description. + + debhelper bumped to version 5. + * Updated debian/compat to version 5. + * Added debian/watch file. + * Updated man page. + * Updated debian/copyright. + + -- Kevin Coyner Mon, 12 Feb 2007 19:51:38 -0500 + +bbrun (1.6-3) unstable; urgency=low + + * Added a patch to fix main window mot being destroyed when pressing Enter + (Closes: #357104). Thanks to Milan Zazrivec + * Standards-Version 3.7.2 + + -- Stan Vasilyev Sat, 27 May 2006 14:25:25 -0700 + +bbrun (1.6-2) unstable; urgency=low + + * Added a patch to fix FTBFS on GNU/kFreeBSD (Closes: #341013) + Thanks to Petr Salinger + + -- Stan Vasilyev Sun, 27 Nov 2005 16:16:24 -0800 + +bbrun (1.6-1) unstable; urgency=low + + * Initial release. (Closes: #291801: ITP: bbrun -- Black Box/fluxbox + desktop tool to run commands - Debian Bug report logs) + * Wrote a manpage + + -- Stan Vasilyev Thu, 3 Nov 2005 10:07:16 -0800 --- bbrun-1.6.orig/debian/rules +++ bbrun-1.6/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp + +build-stamp: patch + dh_testdir + $(MAKE) -C bbrun + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) -C bbrun clean + dh_clean + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/bbrun. + dh_install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs + dh_installmenu + dh_installman debian/bbrun.1 + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean clean-patched binary-indep binary-arch binary install unpatch patch --- bbrun-1.6.orig/debian/menu +++ bbrun-1.6/debian/menu @@ -0,0 +1,5 @@ +?package(bbrun):needs="X11"\ + section="Applications/System/Administration"\ + title="bbrun"\ + icon="/usr/share/pixmaps/bbrun.xpm"\ + command="/usr/bin/bbrun" --- bbrun-1.6.orig/debian/bbrun.install +++ bbrun-1.6/debian/bbrun.install @@ -0,0 +1,2 @@ +bbrun/bbrun usr/bin +bbrun/bbrun.xpm usr/share/pixmaps --- bbrun-1.6.orig/debian/README.source +++ bbrun-1.6/debian/README.source @@ -0,0 +1,7 @@ +This package uses dpatch to manage modifications. See + + /usr/share/doc/dpatch/README.source.gz + +to get more information on how to use it. + + -- Kevin Coyner Wed, 16 Mar 2011 00:40:37 +0000 --- bbrun-1.6.orig/debian/compat +++ bbrun-1.6/debian/compat @@ -0,0 +1 @@ +8 --- bbrun-1.6.orig/debian/bbrun.1 +++ bbrun-1.6/debian/bbrun.1 @@ -0,0 +1,56 @@ +.TH "bbrun" "1" "1.6" "Josh King " "bbtools" +.SH "NAME" +.LP +bbrun \- An elegant tool for the Blackbox window manager that runs commands +.SH "SYNTAX" +.LP +bbrun [OPTIONS] [\-\- [\-display ]]... +.SH "DESCRIPTION" +.LP +bbrun is a small but very useful application. It makes it convenient to quickly +execute commands from the blackbox or fluxbox window managers. bbrun is very +similar to KDE's Alt+F2 Run Command dialog box. When launched, it occupies a +small portion of the desktop and docks itself to the right side of the screen. +The run dialog is opened by clicking on the tiny bbrun window. + +You don't necessarily need blackbox for this program to work. It looks just as +good in fluxbox, but it won't look the same in other window managers. +.SH "FILES" +.LP +\fI~/.bbrun_history\fP +.br +.SH "OPTIONS" +.LP +\-a, \-\-advanced \- advanced mode, shows more options than the normal command entry +box. The default is for it to be in normal (traditional/simple) mode. + +\-h, \-\-help \- this help screen + +\-i, \-\-history\-file= \- set the history file to use. (default: + ~/.bbrun_history) + +\-v, \-\-version \- print the version number + +\-w, \-\-withdraw \- withdrawn mode, will go straight to command entry box + +Options that must occur after '\-\-' if they are used: + +\-display \- set the display that the gearbox should show up on +.SH "GENERAL USAGE INFO" +.LP +bbrun can be run in normal mode where it creates an icon that sits in the slit. +You can then click on the gear icon to make the text entry window popup. +You can also run bbrun in withdrawn mode by specifying the \-w flag. This +is ideal for use with the key shortcut program bbkeys since it will jump +straight to the text entry screen. bbrun also supports the 'escape' and 'enter' +keys for those of you who like to use the mouse as little as possbile. + +bbrun keeps a history of your most recent commands. The history list is stored +in the '.bbrun_history' file in your home directory. If the file does not exist +it is created automatically. + +Also keep in mind that you need quotes when you specify arguments with spaces in +them. eg. mpg123 '/mp3/Creed \- Higher.mp3' + +This file was updated by Kevin Coyner on February 12, +2007. --- bbrun-1.6.orig/debian/patches/03_binutils-gold.dpatch +++ bbrun-1.6/debian/patches/03_binutils-gold.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_binutils-gold.dpatch by Kevin Coyner +## +## DP: Fix FTBFS with binutils-gold. Patch from Mahyuddin Susanto . + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' bbrun-1.6~/bbrun/Makefile bbrun-1.6/bbrun/Makefile +--- bbrun-1.6~/bbrun/Makefile 2010-01-31 03:17:09.000000000 +0000 ++++ bbrun-1.6/bbrun/Makefile 2011-03-16 01:14:30.000000000 +0000 +@@ -1,6 +1,6 @@ + CC = gcc + LIBDIR = -L/usr/lib -L/usr/X11R6/lib +-LIBS = -lXpm `pkg-config --libs gtk+-2.0` ++LIBS = -lXpm -lX11 -lXext `pkg-config --libs gtk+-2.0` + CFLAGS = `pkg-config --cflags gtk+-2.0` + + OBJS = bbrun.o \ --- bbrun-1.6.orig/debian/patches/01_ftbfs-gnu-kfreebsd.dpatch +++ bbrun-1.6/debian/patches/01_ftbfs-gnu-kfreebsd.dpatch @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_ftbfs-gnu-kfreebsd.dpatch by Petr Salinger +## +## DP: Fixes FTBFS on GNU/kFreeBSD + +@DPATCH@ + +diff -ur bbrun/bbrun.c bbrun/bbrun.c +--- bbrun-1.6/bbrun/bbrun.c 2004-02-13 01:24:59.000000000 +0100 ++++ aa/bbrun/bbrun.c 2005-11-27 19:49:40.000000000 +0100 +@@ -3,7 +3,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +@@ -20,7 +20,7 @@ + #define ADVANCED_WINDOW_ROWS 3 + #define ADVANCED_WINDOW_COLS 10 + +-#define u32 __u32 ++#define u32 u_int32_t + #define __DEBUG__ 0 + #define VERSION "1.6" --- bbrun-1.6.orig/debian/patches/02_kill_main_window.dpatch +++ bbrun-1.6/debian/patches/02_kill_main_window.dpatch @@ -0,0 +1,22 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_kill_main_window.dpatch by Stan Vasilyev +## +## DP: Fixes main window mot being destroyed when pressing Enter. +## DP: Thanks to Milan Zazrivec + +@DPATCH@ + +diff -urNad bbrun-1.6~/bbrun/bbrun.c bbrun-1.6/bbrun/bbrun.c +--- bbrun-1.6~/bbrun/bbrun.c 2004-02-12 16:24:59.000000000 -0800 ++++ bbrun-1.6/bbrun/bbrun.c 2006-03-20 21:48:43.000000000 -0800 +@@ -407,6 +407,10 @@ + gtk_signal_connect(GTK_OBJECT(GTK_COMBO(combo)->entry), "activate", GTK_SIGNAL_FUNC(callback), "ok"); + gtk_window_set_focus(GTK_WINDOW(window), GTK_COMBO(combo)->entry); // focus the entry area so we can type right away. + ++ // Fix for main window not destroyed, see Bug #357104 ++ gtk_signal_connect_object(GTK_OBJECT(GTK_COMBO(combo)->entry), "activate", ++ GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(window)); ++ + // Instead of appending the items in reverse order, we prepend each item. + // This fixes a problem with the arrow keys cycling through the list, + // You would only be able to go up the list from oldest item to newest. --- bbrun-1.6.orig/debian/patches/04_compare_string_literal.dpatch +++ bbrun-1.6/debian/patches/04_compare_string_literal.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_compare_string_literal.dpatch by Kevin Coyner +## +## DP: Fix "warning: comparison with string literal results in unspecified behavior". Patch from Tilmann Hentze . + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' bbrun-1.6~/bbrun/bbrun.c bbrun-1.6/bbrun/bbrun.c +--- bbrun-1.6~/bbrun/bbrun.c 2011-03-16 01:49:56.000000000 +0000 ++++ bbrun-1.6/bbrun/bbrun.c 2011-03-16 01:50:50.000000000 +0000 +@@ -322,7 +322,7 @@ + // Event handler for Ok and Cancel buttons + void callback (GtkWidget * widget, gpointer data) + { +- if ((char *) data == "ok") ++ if (!strncmp((char *) data, "ok", 2)) + execDialogInformation(); + + gtk_main_quit(); --- bbrun-1.6.orig/debian/patches/00list +++ bbrun-1.6/debian/patches/00list @@ -0,0 +1,4 @@ +01_ftbfs-gnu-kfreebsd +02_kill_main_window +03_binutils-gold +04_compare_string_literal