ports/155684: devel/id-utils - Update and take maintainership

Peter Jeremy peterjeremy at acm.org
Sat Mar 19 01:30:10 UTC 2011


>Number:         155684
>Category:       ports
>Synopsis:       devel/id-utils - Update and take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 19 01:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Peter Jeremy
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
n/a
>Environment:
System: FreeBSD server.vk2pj.dyndns.oraudio/polypaudio|audio/pulseaudio|2008-01-01|Project renamed
g 8.2-STABLE FreeBSD 8.2-STABLE #9: Sun Feb 27 17:46:10 EST 2011 root at server.vk2pj.dyndns.org:/var/obj/usr/src/sys/server amd64

>Description:
	devel/id-utils was recently deprecated because the distfile has
	vanished.  The project is still alive and kicking and it seems
	the distfile vanished due to age.  This PR takes maintainership
	and updates it to the currently released version (Jun 2010).
>How-To-Repeat:
	n/a
>Fix:
	1) Rename devel/id-utils to devel/idutils via repocopy and then
	   cvs rm devel/id-utils
        2) Add the following line to MOVED:
devel/id-utils|devel/idutils|20110319|Project renamed
	3) Apply the following patch.  Note that it includes a new file
	   "files/patch-configure".  Please create the files subdirectory
	   and remember to cvs add both it and the patch file.

Index: Makefile
===================================================================
RCS file: /usr/ncvs/ports/devel/id-utils/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- Makefile	16 Mar 2011 13:55:37 -0000	1.34
+++ Makefile	18 Mar 2011 22:40:53 -0000
@@ -5,29 +5,25 @@
 # $FreeBSD: ports/devel/id-utils/Makefile,v 1.34 2011/03/16 13:55:37 bapt Exp $
 #
 
-PORTNAME=	id-utils
-PORTVERSION=	4.0
-PORTREVISION=	3
+PORTNAME=	idutils
+PORTVERSION=	4.5
 CATEGORIES=	devel
-MASTER_SITES=	${MASTER_SITE_GNU_ALPHA}
-MASTER_SITE_SUBDIR=	idutils
+MASTER_SITES=	GNU
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	peterjeremy at acm.org
 COMMENT=	The classic Berkeley gid/lid tools for looking up variables in code
 
-DEPRECATED=     Upstream disapear and distfile is no more available
-EXPIRATION_DATE=        2011-05-01
-
 CONFLICTS=	coreutils-[0-9]* linux-gid-[0-9]* sh-utils-[0-9]*
 
-USE_GMAKE=	yes
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+USE_XZ=		yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-
-INFO=		id-utils
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
 
-CPPFLAGS=	-I${LOCALBASE}/include
-LDFLAGS=	-L${LOCALBASE}/lib
+INFO=		idutils
+MAN1=		aid.1 defid.1 eid.1 fid.1 fnid.1 gid.1 lid.1 mkid.1 xtokid.1
 
 .if defined(WITHOUT_NLS)
 CONFIGURE_ARGS+=	--disable-nls
@@ -37,10 +33,14 @@
 PLIST_SUB+=	NLS=""
 .endif
 
-post-extract:
-	@${RM} -f ${WRKSRC}/lib/getopt.h
+# Port configure script will auto-install the .elc file if [x]emacs is found
+.if exists(${LOCALBASE}/bin/emacs) ||  exists(${LOCALBASE}/bin/xemacs)
+PLIST_SUB+=	ELC=""
+.else
+PLIST_SUB+=	ELC="@comment "
 
 post-install:
-	${INSTALL_DATA} ${WRKSRC}/lisp/id-utils.el ${PREFIX}/share/emacs/site-lisp
+	${INSTALL_DATA} ${WRKSRC}/lisp/idutils.el ${PREFIX}/share/emacs/site-lisp
+.endif
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /usr/ncvs/ports/devel/id-utils/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	24 Nov 2005 15:39:19 -0000	1.5
+++ distinfo	18 Mar 2011 07:05:04 -0000
@@ -1,3 +1,2 @@
-MD5 (id-utils-4.0.tar.gz) = 2053522dab62f2286579eecf2d0252e9
-SHA256 (id-utils-4.0.tar.gz) = 92dbf05578c94d46f7f1b2ebb6288e78ce1c3c8dd7fcb4f66fd8f5d30156c5f5
-SIZE (id-utils-4.0.tar.gz) = 643191
+SHA256 (idutils-4.5.tar.xz) = 62e15fbd7df43a717c88f0128a5de10f1bd11164cd222327d11285a5918011bf
+SIZE (idutils-4.5.tar.xz) = 885376
Index: pkg-descr
===================================================================
RCS file: /usr/ncvs/ports/devel/id-utils/pkg-descr,v
retrieving revision 1.3
diff -u -r1.3 pkg-descr
--- pkg-descr	21 Dec 2009 02:16:15 -0000	1.3
+++ pkg-descr	18 Mar 2011 09:00:50 -0000
@@ -5,14 +5,4 @@
 queries can be issued from the command-line, or from within emacs,
 serving as an augmented tags facility.
 
-`mkid' was originally written by Greg McGary
-and posted to comp.sources.unix in September 1987.  It was then
-maintained and enhanced by a loose knit group of programmers on the
-Internet led by Tom Horsley.  Tom released
-`mkid2' on comp.sources.unix in March, 1991.  Since then, Greg McGary
-has resumed maintenance and is releasing an improved version 3 under GPL.
-
-Version 3 is an interim release.  Version 4 will follow in the coming
-months and include a cscope clone plus other improvements.  This
-version is an improved version of version 3 (which hasn't been updated
-since 1996!), it now understands C++.
+WWW: http://www.gnu.org/software/idutils/
Index: pkg-plist
===================================================================
RCS file: /usr/ncvs/ports/devel/id-utils/pkg-plist,v
retrieving revision 1.9
diff -u -r1.9 pkg-plist
--- pkg-plist	19 May 2007 20:02:53 -0000	1.9
+++ pkg-plist	18 Mar 2011 22:30:41 -0000
@@ -7,9 +7,23 @@
 bin/lid
 bin/mkid
 bin/xtokid
-share/emacs/site-lisp/id-utils.el
+share/emacs/site-lisp/idutils.el
+%%ELC%%share/emacs/site-lisp/idutils.elc
 share/id-lang.map
-%%NLS%%share/locale/de/LC_MESSAGES/id-utils.mo
-%%NLS%%share/locale/fr/LC_MESSAGES/id-utils.mo
-%%NLS%%share/locale/nl/LC_MESSAGES/id-utils.mo
-%%NLS%%share/locale/pl/LC_MESSAGES/id-utils.mo
+%%NLS%%share/locale/da/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/de/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/id/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/it/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/idutils.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/idutils.mo
--- /dev/null	2011-03-19 09:50:57.000000000 +1100
+++ files/patch-configure	2011-03-18 19:22:15.264065461 +1100
@@ -0,0 +1,20 @@
+--- configure.orig	2010-06-17 16:35:56.000000000 +1000
++++ configure	2011-03-18 19:05:56.718661721 +1100
+@@ -8239,7 +8239,7 @@
+                   || close (fd) != 0
+                   || stat (file, &st1) != 0
+                   || st0.st_atime != st1.st_atime)
+-                status |= 64;
++                status |= 0;
+             }
+             return status;
+   ;
+@@ -14722,8 +14722,6 @@
+            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
+                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
+              gl_cv_func_dup2_works=no;;
+-           freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
+-             gl_cv_func_dup2_works=no;;
+            *) gl_cv_func_dup2_works=yes;;
+          esac
+ else
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list