diff --git a/misc/findutils/Makefile b/misc/findutils/Makefile new file mode 100644 index 00000000000..a00689c6361 --- /dev/null +++ b/misc/findutils/Makefile @@ -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 + +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 diff --git a/misc/findutils/files/md5 b/misc/findutils/files/md5 new file mode 100644 index 00000000000..aa75c4f103c --- /dev/null +++ b/misc/findutils/files/md5 @@ -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 diff --git a/misc/findutils/patches/patch-find_Makefile_in b/misc/findutils/patches/patch-find_Makefile_in new file mode 100644 index 00000000000..98448253add --- /dev/null +++ b/misc/findutils/patches/patch-find_Makefile_in @@ -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; \ diff --git a/misc/findutils/patches/patch-locate_Makefile_in b/misc/findutils/patches/patch-locate_Makefile_in new file mode 100644 index 00000000000..f8a76202626 --- /dev/null +++ b/misc/findutils/patches/patch-locate_Makefile_in @@ -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; \ diff --git a/misc/findutils/patches/patch-xargs_Makefile_in b/misc/findutils/patches/patch-xargs_Makefile_in new file mode 100644 index 00000000000..c1ae50aad8b --- /dev/null +++ b/misc/findutils/patches/patch-xargs_Makefile_in @@ -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; \ diff --git a/misc/findutils/pkg/COMMENT b/misc/findutils/pkg/COMMENT new file mode 100644 index 00000000000..67c20d24664 --- /dev/null +++ b/misc/findutils/pkg/COMMENT @@ -0,0 +1 @@ +finds and then operates on files diff --git a/misc/findutils/pkg/DESCR b/misc/findutils/pkg/DESCR new file mode 100644 index 00000000000..2710cabd1f3 --- /dev/null +++ b/misc/findutils/pkg/DESCR @@ -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. diff --git a/misc/findutils/pkg/PLIST b/misc/findutils/pkg/PLIST new file mode 100644 index 00000000000..361163647a2 --- /dev/null +++ b/misc/findutils/pkg/PLIST @@ -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