Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2001 00:00:06 +0100 (CET)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        ust@cert.siemens.de
Subject:   ports/24561: Updated port: misc/findutils - 4.1
Message-ID:  <200101222300.f0MN06X31749@gits.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         24561
>Category:       ports
>Synopsis:       Updated port: misc/findutils - 4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 22 15:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
ACME
>Environment:

FreeBSD gits 4.2-STABLE FreeBSD 4.2-STABLE #5: Thu Jan 18 00:14:29 CET 2001     root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM  i386

>Description:

	Makefile
		revision bumbed.
		LOCALSTATEDIR added (defaulted to /var/db).
		port-extract deletion of info files.
		post-patch added.
		since configure doesn't handle --localstatedir,
		post-configure added.
		post-install is almost the same but rewritten.

	pkg-comment
		updated accordingly to other GNU tools..

	pkg-descr
		WWW added.

	pkg-plist
		extra info-files deleted.

>How-To-Repeat:

	n/a

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/findutils/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	2000/11/23 11:56:08	1.5
+++ Makefile	2001/01/22 22:58:33
@@ -7,28 +7,73 @@
 
 PORTNAME=	findutils
 PORTVERSION=	4.1
+PORTREVISION=	1
 CATEGORIES=	misc
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR= findutils
 
 MAINTAINER=	ust@cert.siemens.de
 
+#
+# Global variables
+#
+
 GNU_CONFIGURE=	yes
 
-CONFIGURE_ARGS=	--program-prefix=g
+CONFIGURE_ARGS=	--program-prefix=g # --localstatedir=${LOCALSTATEDIR}
 MAKE_ARGS=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
 
 USE_GMAKE=	yes
 
 MAN1=		gfind.1 gxargs.1 glocate.1 gupdatedb.1
 MAN5=		glocatedb.5
+
+#
+# Local variables
+#
+
+LOCALSTATEDIR?=	/var/db
+
+INSTALL_INFO?=	install-info
+
+#
+# Post-extract
+#
+
+post-extract:
+	@${RM} -f ${WRKSRC}/doc/${PORTNAME:S/utils//}.info*
+
+#
+# Post-patch
+#
+
+post-patch:
+	@${PERL} -pi.fbsd -e 's|makeinfo|makeinfo --no-split|g' \
+		${WRKSRC}/doc/Makefile.in
+
+#
+# Post-configure
+#
+
+# --localstatedir= isn't handled right now, so, do it manually.
+post-configure:
+	@${PERL} -pi.fbsd -e 's|\$$\(prefix\)/var|${LOCALSTATEDIR}|g' \
+		${WRKSRC}/Makefile ${WRKSRC}/locate/Makefile
+
+#
+# Post-install
+#
+
+post-install: install-info remove-catman
+
+install-info:
+	@${INSTALL_INFO} ${PREFIX}/info/${PORTNAME:S/utils//}.info ${PREFIX}/info/dir
 
-post-install:
-	install-info ${PREFIX}/info/find.info ${PREFIX}/info/dir
-	${RM} -f ${PREFIX}/man/cat1/gfind.1
-	${RM} -f ${PREFIX}/man/cat1/gxargs.1
-	${RM} -f ${PREFIX}/man/cat1/glocate.1
-	${RM} -f ${PREFIX}/man/cat1/gupdatedb.1
-	${RM} -f ${PREFIX}/man/cat5/glocatedb.5
+remove-catman:
+.for mansect in 1 5
+.for man in ${MAN${mansect}}
+	@${RM} -f ${MAN1PREFIX}/man/cat${mansect}/${man}
+.endfor
+.endfor
 
 .include <bsd.port.mk>
Index: pkg-comment
===================================================================
RCS file: /home/ncvs/ports/misc/findutils/pkg-comment,v
retrieving revision 1.1
diff -u -r1.1 pkg-comment
--- pkg-comment	2000/06/02 05:35:49	1.1
+++ pkg-comment	2000/10/12 22:19:01
@@ -1 +1 @@
-The FSF's version of find(1), xargs(1), and locate(1)
+The GNU find utilities
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/misc/findutils/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr	2000/06/02 05:35:49	1.1
+++ pkg-descr	2000/10/12 22:19:28
@@ -7,3 +7,5 @@
 Note that this port will install these utilities with a `g' prefix,
 eg., glocate, gfind, gxargs, but the texinfo documentation will refer to
 these utilities without the `g' prefix.
+
+WWW: http://www.gnu.org/software/findutils/findutils.html
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/misc/findutils/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	2000/06/02 05:35:49	1.1
+++ pkg-plist	2001/01/22 22:32:55
@@ -7,6 +7,4 @@
 libexec/gbigram
 @unexec install-info --delete %D/info/find.info %D/info/dir
 info/find.info
-info/find.info-1
-info/find.info-2
 @exec install-info %D/info/find.info %D/info/dir

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101222300.f0MN06X31749>