Initial import of findutils-4.1

finds and then operates on files

Submitted by: David Lebel <lebel@lebel.org>
This commit is contained in:
wilfried 2001-03-14 21:52:15 +00:00
parent d2ea769467
commit b455f34e94
8 changed files with 166 additions and 0 deletions

27
misc/findutils/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/03/14 21:52:15 wilfried Exp $
DISTNAME= findutils-4.1
CATEGORIES= misc
NEED_VERSION= 1.340
MAINTAINER= David Lebel <lebel@lebel.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= findutils
LIB_DEPENDS= intl.1::devel/gettext
SEPARATE_BUILD= concurrent
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu old
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS= --program-prefix=g
.include <bsd.port.mk>

3
misc/findutils/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (findutils-4.1.tar.gz) = 3ea8fe58ef5386da75f6c707713aa059
RMD160 (findutils-4.1.tar.gz) = b66c0aa2e72d378e8c3cb9968ceb68d9138af874
SHA1 (findutils-4.1.tar.gz) = b91cd03ca4c9659b3e5d40e841c64bfd2e7f25d8

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-find_Makefile_in,v 1.1.1.1 2001/03/14 21:52:15 wilfried Exp $
--- find/Makefile.in.orig Sat Nov 5 09:43:52 1994
+++ find/Makefile.in Wed Mar 14 09:12:34 2001
@@ -77,9 +77,9 @@ $(find_OBJECTS): ../config.h
install:: install-programs
install-programs: $(PROGRAMS) $(SCRIPTS)
- $(top_srcdir)/mkinstalldirs $(bindir)
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
for p in $(PROGRAMS) $(SCRIPTS); do \
- $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
+ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
done
uninstall:: uninstall-programs
@@ -98,11 +98,11 @@ install-man:
for man in $(MANS); do \
sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
- mdir=$(mandir)/man$$sect; \
+ mdir=$(DESTDIR)$(mandir)/man$$sect; \
$(top_srcdir)/mkinstalldirs $$mdir; \
echo installing $$man as $$mdir/$$inst; \
$(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
- cdir=$(mandir)/cat$$sect; \
+ cdir=$(DESTDIR)$(mandir)/cat$$sect; \
if test -d $$cdir; then \
echo formatting $$man as $$cdir/$$inst; \
$(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \

View File

@ -0,0 +1,50 @@
$OpenBSD: patch-locate_Makefile_in,v 1.1.1.1 2001/03/14 21:52:15 wilfried Exp $
--- locate/Makefile.in.orig Sat Nov 5 09:44:08 1994
+++ locate/Makefile.in Wed Mar 14 09:12:34 2001
@@ -68,7 +68,7 @@ DIST_CONF = Makefile.am Makefile.in
DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
# The default database to build and search.
-LOCATE_DB = $(localstatedir)/locatedb
+LOCATE_DB = /var/db/glocate.database
PROGRAMS = locate
LIBPROGRAMS = frcode code bigram
@@ -95,9 +95,9 @@ $(bigram_OBJECTS): ../config.h
install:: install-programs
install-programs: $(PROGRAMS) $(SCRIPTS)
- $(top_srcdir)/mkinstalldirs $(bindir)
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
for p in $(PROGRAMS) $(SCRIPTS); do \
- $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
+ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
done
uninstall:: uninstall-programs
@@ -110,9 +110,9 @@ uninstall-programs:
install:: install-libprograms
install-libprograms: $(LIBPROGRAMS) $(LIBSCRIPTS)
- $(top_srcdir)/mkinstalldirs $(libexecdir)
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir)
for p in $(LIBPROGRAMS) $(LIBSCRIPTS); do \
- $(INSTALL_PROGRAM) $$p $(libexecdir)/`echo $$p|sed '$(transform)'`; \
+ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
done
uninstall:: uninstall-libprograms
@@ -140,11 +140,11 @@ install-man:
for man in $(MANS); do \
sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
- mdir=$(mandir)/man$$sect; \
+ mdir=$(DESTDIR)$(mandir)/man$$sect; \
$(top_srcdir)/mkinstalldirs $$mdir; \
echo installing $$man as $$mdir/$$inst; \
$(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
- cdir=$(mandir)/cat$$sect; \
+ cdir=$(DESTDIR)$(mandir)/cat$$sect; \
if test -d $$cdir; then \
echo formatting $$man as $$cdir/$$inst; \
$(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-xargs_Makefile_in,v 1.1.1.1 2001/03/14 21:52:15 wilfried Exp $
--- xargs/Makefile.in.orig Sat Nov 5 09:44:18 1994
+++ xargs/Makefile.in Wed Mar 14 09:12:34 2001
@@ -76,9 +76,9 @@ $(xargs_OBJECTS): ../config.h
install:: install-programs
install-programs: $(PROGRAMS) $(SCRIPTS)
- $(top_srcdir)/mkinstalldirs $(bindir)
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
for p in $(PROGRAMS) $(SCRIPTS); do \
- $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
+ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
done
uninstall:: uninstall-programs
@@ -97,11 +97,11 @@ install-man:
for man in $(MANS); do \
sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
- mdir=$(mandir)/man$$sect; \
+ mdir=$(DESTDIR)$(mandir)/man$$sect; \
$(top_srcdir)/mkinstalldirs $$mdir; \
echo installing $$man as $$mdir/$$inst; \
$(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
- cdir=$(mandir)/cat$$sect; \
+ cdir=$(DESTDIR)$(mandir)/cat$$sect; \
if test -d $$cdir; then \
echo formatting $$man as $$cdir/$$inst; \
$(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \

View File

@ -0,0 +1 @@
finds and then operates on files

9
misc/findutils/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
The findutils package contains programs which will help you locate
files on your system. The find utility searches through a hierarchy
of directories looking for files which match a certain set of criteria
(such as a filename pattern). The xargs utility builds and executes
command lines from standard input arguments (usually lists of file
names generated by the find command).
All the binaries are prefixed by the letter g to differentiate them
with the standard applications with the same name.

18
misc/findutils/pkg/PLIST Normal file
View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/03/14 21:52:15 wilfried Exp $
bin/gfind
bin/glocate
bin/gupdatedb
bin/gxargs
libexec/gbigram
libexec/gcode
libexec/gfrcode
man/cat1/gfind.1
man/cat1/glocate.1
man/cat1/gupdatedb.1
man/cat1/gxargs.1
man/cat5/glocatedb.5
man/man1/gfind.1
man/man1/glocate.1
man/man1/gupdatedb.1
man/man1/gxargs.1
man/man5/glocatedb.5