[Midnightbsd-cvs] mports [16318] trunk/misc/findutils: findutils 4.5.12

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Apr 13 20:42:56 EDT 2014


Revision: 16318
          http://svnweb.midnightbsd.org/mports/?rev=16318
Author:   laffer1
Date:     2014-04-13 20:42:55 -0400 (Sun, 13 Apr 2014)
Log Message:
-----------
findutils 4.5.12

Modified Paths:
--------------
    trunk/misc/findutils/Makefile
    trunk/misc/findutils/distinfo
    trunk/misc/findutils/pkg-plist

Removed Paths:
-------------
    trunk/misc/findutils/files/patch-locate__locate.c

Modified: trunk/misc/findutils/Makefile
===================================================================
--- trunk/misc/findutils/Makefile	2014-04-14 00:39:40 UTC (rev 16317)
+++ trunk/misc/findutils/Makefile	2014-04-14 00:42:55 UTC (rev 16318)
@@ -1,8 +1,7 @@
 # $MidnightBSD$
 
 PORTNAME=	findutils
-PORTVERSION=	4.5.11
-PORTREVISION=	1
+PORTVERSION=	4.5.12
 CATEGORIES=	misc
 MASTER_SITES=	${MASTER_SITE_GNU_ALPHA}
 MASTER_SITE_SUBDIR=	findutils
@@ -14,14 +13,12 @@
 
 LICENSE=	gpl3
 
-USES+=		charsetfix
+USES+=		charsetfix gmake
 SIG_FILES=	${DISTNAME}${EXTRACT_SUFX}.sig
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-USE_GMAKE=	yes
-
 .include <bsd.mport.options.mk>
 
 .if ${PORT_OPTIONS:MNLS}
@@ -36,10 +33,6 @@
 			--mandir=${PREFIX}/man --infodir=${PREFIX}/info
 MAKE_ARGS=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
 
-INFO=		find find-maint
-MAN1=		gfind.1 gxargs.1 glocate.1 gupdatedb.1 goldfind.1
-MAN5=		glocatedb.5
-
 LOCALSTATEDIR?=	/var/db
 
 .include <bsd.port.mk>

Modified: trunk/misc/findutils/distinfo
===================================================================
--- trunk/misc/findutils/distinfo	2014-04-14 00:39:40 UTC (rev 16317)
+++ trunk/misc/findutils/distinfo	2014-04-14 00:42:55 UTC (rev 16318)
@@ -1,4 +1,4 @@
-SHA256 (findutils-4.5.11.tar.gz) = 75e823592d917f1ac853a35cf46d6deeeb3b984240331ad1723f60da1a725d22
-SIZE (findutils-4.5.11.tar.gz) = 3116431
-SHA256 (findutils-4.5.11.tar.gz.sig) = 4fd79ba6ab6acd7e340ad8878ae82112a503ef1f708fd5ba02cb94fe4a66d27f
-SIZE (findutils-4.5.11.tar.gz.sig) = 152
+SHA256 (findutils-4.5.12.tar.gz) = df859eebad68c216204363f163c0e4200208ce7348f3658564a120e32e4f63de
+SIZE (findutils-4.5.12.tar.gz) = 3236073
+SHA256 (findutils-4.5.12.tar.gz.sig) = 987a5a35dc97ac8141319b4306f20d483f346ceb7e25c92fd0a244e727a764d3
+SIZE (findutils-4.5.12.tar.gz.sig) = 152

Deleted: trunk/misc/findutils/files/patch-locate__locate.c
===================================================================
--- trunk/misc/findutils/files/patch-locate__locate.c	2014-04-14 00:39:40 UTC (rev 16317)
+++ trunk/misc/findutils/files/patch-locate__locate.c	2014-04-14 00:42:55 UTC (rev 16318)
@@ -1,154 +0,0 @@
-diff locate/locate.c.orig locate/locate.c
---- locate/locate.c.orig
-+++ locate/locate.c
-@@ -1546,12 +1546,19 @@ opendb (const char *name)
-   return fd;
- }
- 
-+static void
-+cleanup_quote_opts (void)
-+{
-+  free (quote_opts);
-+}
-+
-+
- int
- dolocate (int argc, char **argv, int secure_db_fd)
- {
--  char *path_element;
-+  char *path_element = NULL;
-   size_t path_element_pos, path_element_len;
--  const char *locate_path;
-+  const char *user_selected_locate_path;
-   const char *db_name;
-   const char *path_separators = ":";
-   unsigned long int found = 0uL;
-@@ -1565,7 +1572,6 @@ dolocate (int argc, char **argv, int secure_db_fd)
-   int stats = 0;
-   int op_and = 0;
-   FILE *fp;
--  int they_chose_db = 0;
-   bool did_stdin = false;       /* Set to prevent rereading stdin. */
- 
-   if (argv[0])
-@@ -1580,19 +1586,19 @@ dolocate (int argc, char **argv, int secure_db_fd)
-   textdomain (PACKAGE);
-   atexit (close_stdout);
- 
-+  quote_opts = clone_quoting_options (NULL);
-+  atexit (cleanup_quote_opts);
-+
-   limits.limit = 0;
-   limits.items_accepted = 0;
- 
--  quote_opts = clone_quoting_options (NULL);
-   print_quoted_filename = true;
- 
-   /* We cannot simultaneously trust $LOCATE_PATH and use the
-    * setuid-access-controlled database,, since that could cause a leak
-    * of private data.
-    */
--  locate_path = getenv ("LOCATE_PATH");
--  if (locate_path)
--    they_chose_db = 1;
-+  user_selected_locate_path = getenv ("LOCATE_PATH");
- 
-   check_existence = ACCEPT_EITHER;
- 
-@@ -1624,8 +1630,8 @@ dolocate (int argc, char **argv, int secure_db_fd)
-           break;
- 
-         case 'd':
--          locate_path = optarg;
--          they_chose_db = 1;
-+          user_selected_locate_path = optarg;
-+	  assert (optarg != NULL);
-           break;
- 
-         case 'e':
-@@ -1715,7 +1721,7 @@ dolocate (int argc, char **argv, int secure_db_fd)
-   /* If the user gave the -d option or set LOCATE_PATH,
-    * relinquish access to the secure database.
-    */
--  if (they_chose_db)
-+  if (user_selected_locate_path)
-     {
-       if (secure_db_fd >= 0)
-         {
-@@ -1741,15 +1747,16 @@ dolocate (int argc, char **argv, int secure_db_fd)
-         }
-     }
- 
--
-   if (1 == isatty (STDOUT_FILENO))
-     stdout_is_a_tty = true;
-   else
-     stdout_is_a_tty = false;
- 
--  if (they_chose_db)
--    splitstring (locate_path, path_separators, true,
--                 &path_element_pos, &path_element_len);
-+  if (user_selected_locate_path)
-+    {
-+      splitstring (user_selected_locate_path, path_separators, true,
-+		   &path_element_pos, &path_element_len);
-+    }
- 
-   /* Bail out early if limit already reached. */
-   while (!use_limit || limits.limit > limits.items_accepted)
-@@ -1765,10 +1772,11 @@ dolocate (int argc, char **argv, int secure_db_fd)
-       statistics.newline_count =
-       statistics.highbit_filename_count = 0u;
- 
--      if (they_chose_db)
-+      if (user_selected_locate_path)
-         {
-           /* Take the next element from the list of databases */
--          if (1 == path_element_len && '-' == locate_path[path_element_pos])
-+          if (1 == path_element_len
-+	      && '-' == user_selected_locate_path[path_element_pos])
-             {
-               if (did_stdin)
-                 {
-@@ -1787,13 +1795,13 @@ dolocate (int argc, char **argv, int secure_db_fd)
-             {
-               if (0 == path_element_len
-                   || (1 == path_element_len
--                      && '.' == locate_path[path_element_pos]))
-+                      && '.' == user_selected_locate_path[path_element_pos]))
-                 {
-                   db_name = LOCATE_DB;
-                 }
-               else
-                 {
--                  path_element = strndup (&locate_path[path_element_pos],
-+                  path_element = strndup (&user_selected_locate_path[path_element_pos],
-                                           path_element_len);
-                   db_name = path_element;
-                 }
-@@ -1889,11 +1897,20 @@ dolocate (int argc, char **argv, int secure_db_fd)
-           free (path_element);
-           path_element = NULL;
-         }
--      if (!splitstring (locate_path, path_separators, false,
--                        &path_element_pos, &path_element_len))
--        {
--          break;
--        }
-+
-+       if (!user_selected_locate_path)
-+	 {
-+	   /* We're not actually iterating through the values in
-+	      $LOCATE_PATH so we don't want to check for the next
-+	      element in user_selected_locate_path (since we manually set db_name =
-+	      LOCATE_DB without using user_selected_locate_path). */
-+	   break;
-+	 }
-+       else if (!splitstring (user_selected_locate_path, path_separators, false,
-+			      &path_element_pos, &path_element_len))
-+	 {
-+	   break;
-+	 }
-     }
- 
-   if (just_count)

Modified: trunk/misc/findutils/pkg-plist
===================================================================
--- trunk/misc/findutils/pkg-plist	2014-04-14 00:39:40 UTC (rev 16317)
+++ trunk/misc/findutils/pkg-plist	2014-04-14 00:42:55 UTC (rev 16318)
@@ -3,9 +3,19 @@
 bin/glocate
 bin/gupdatedb
 bin/gxargs
+info/find-maint.info
+info/find.info
+info/find.info-1
+info/find.info-2
 libexec/gbigram
 libexec/gcode
 libexec/gfrcode
+man/man1/gfind.1.gz
+man/man1/glocate.1.gz
+man/man1/goldfind.1.gz
+man/man1/gupdatedb.1.gz
+man/man1/gxargs.1.gz
+man/man5/glocatedb.5.gz
 %%NLS%%share/locale/be/LC_MESSAGES/findutils.mo
 %%NLS%%share/locale/bg/LC_MESSAGES/findutils.mo
 %%NLS%%share/locale/ca/LC_MESSAGES/findutils.mo



More information about the Midnightbsd-cvs mailing list