grep-dctrl stable port information

Package: grep-dctrl
Version: 1.10
Revision: 23
#Source: mirror:debian:pool/main/g/%n/%n_1.10.tar.gz
#SourceRename: %n-%v.tar.gz
Source: mirror:sourceforge:fink/%n-%v.tar.gz
SourceDirectory: %n-1.9
Source-MD5: 1f97dbc603d9c8bda2d706da3cdd8e56
BuildDepends: fink (>= 0.24.12), publib, help2man, libgettext8-dev, gettext-bin, gettext-tools
Depends: libgettext8-shlibs
PatchFile: %n.patch
PatchFile-MD5: cf555081d8b53fff1ad356b866e58b6a
PatchScript: <<
%{default_script}
perl -p -i -e 's:/var/lib:%p/var/lib:;' grep-dctrl.rc
<<
SetCFLAGS: -O2 -Wall
SetLIBS: -lintl
ConfigureParams: --mandir='${prefix}/share/man'
CompileScript: <<
./configure %c
make
<<
DocFiles: AUTHORS COPYING Compatibility README TODO debian/changelog NEWS debian/copyright
ConfFiles: %p/etc/grep-dctrl.rc
Description: Grep Debian package information
DescDetail: <<
The grep-dctrl program can answer such questions as
* "What is the Debian package foo?"
* "Which version of the Debian package bar is now current?"
* "Which Debian packages does John Doe maintain?"
* "Which Debian packages are somehow related to the Scheme
programming language?"
and with some help
* "Who maintain the essential packages of a Debian system?"
given a useful input file.

It is a specialised grep program that is meant for processing any file which
has the general format of a Debian package control file. These include the
dpkg available file, the dpkg status file, and the Packages files on a
distribution medium (such as a Debian CD-ROM or an FTP site carrying Debian).
<<
License: GPL
Maintainer: Chris Zubrzycki
Homepage: http://packages.debian.org/unstable/admin/menu.html

grep-dctrl stable port .patch

diff -ruN grep-dctrl-1.9/Makefile.in grep-dctrl-1.9.new/Makefile.in
--- grep-dctrl-1.9/Makefile.in 2001-07-30 13:03:08.000000000 -0400
+++ grep-dctrl-1.9.new/Makefile.in 2002-12-26 12:23:20.000000000 -0500
@@ -57,6 +57,8 @@
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+EXTRASRC = @EXTRASRC@
+EXTRAOBJ = @EXTRAOBJ@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
@@ -87,7 +89,8 @@
SUBDIRS = intl po

bin_PROGRAMS = grep-dctrl
-grep_dctrl_SOURCES = grep-dctrl.c matcher.c buffer.c strutil.c msg.c buffer.h i18n.h matcher.h msg.h strutil.h rc.c rc.h
+grep_dctrl_SOURCES = grep-dctrl.c matcher.c buffer.c strutil.c msg.c \
+buffer.h i18n.h matcher.h msg.h strutil.h rc.c rc.h $(EXTRASRC)


sysconf_DATA = grep-dctrl.rc
@@ -110,7 +113,7 @@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
grep_dctrl_OBJECTS = grep-dctrl.o matcher.o buffer.o strutil.o msg.o \
-rc.o
+rc.o $(EXTRAOBJ)
grep_dctrl_LDADD = $(LDADD)
grep_dctrl_DEPENDENCIES =
grep_dctrl_LDFLAGS =
diff -ruN grep-dctrl-1.9/configure grep-dctrl-1.9.new/configure
--- grep-dctrl-1.9/configure 2000-02-06 09:04:51.000000000 -0500
+++ grep-dctrl-1.9.new/configure 2002-12-26 12:25:44.000000000 -0500
@@ -3400,6 +3400,10 @@
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
s%@CATALOGS@%$CATALOGS%g
s%@CATOBJEXT@%$CATOBJEXT%g
+
+s%@EXTRASRC@%$EXTRASRC%g
+s%@EXTRAOBJ@%$EXTRAOBJ%g
+
s%@DATADIRNAME@%$DATADIRNAME%g
s%@GMOFILES@%$GMOFILES%g
s%@INSTOBJEXT@%$INSTOBJEXT%g
diff -ruN grep-dctrl-1.9/matcher.c grep-dctrl-1.9.new/matcher.c
--- grep-dctrl-1.9/matcher.c 2005-04-03 16:57:15.000000000 -0700
+++ grep-dctrl-1.9.new/matcher.c 2005-04-03 16:59:17.000000000 -0700
@@ -54,6 +54,7 @@
}

/* strstr ignoring case */
+#if 0
static char *
strcasestr (const char * haystack, const char * needle)
/* This implemetation is suboptimal. Ugh. */
@@ -84,6 +85,7 @@

return rv;
}
+#endif

/* Copy the body of the field "field" from "s" to "body". */
static void

grep-dctrl _unstable_ port .patch