Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2012 17:10:39 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306871 - in head/sysutils/linrename: . files
Message-ID:  <201211021710.qA2HAdMT065663@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Nov  2 17:10:39 2012
New Revision: 306871
URL: http://svn.freebsd.org/changeset/ports/306871

Log:
  - Remove DEPRECATED and update to 2.22
  - Update MASTER_SITES
  
  PR:		ports/172252 (based on)
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Deleted:
  head/sysutils/linrename/files/patch-lib__nls.h
  head/sysutils/linrename/files/patch-misc-utils__rename.c
Modified:
  head/sysutils/linrename/Makefile
  head/sysutils/linrename/distinfo
  head/sysutils/linrename/files/patch-misc-utils__rename.1
  head/sysutils/linrename/pkg-descr

Modified: head/sysutils/linrename/Makefile
==============================================================================
--- head/sysutils/linrename/Makefile	Fri Nov  2 16:48:08 2012	(r306870)
+++ head/sysutils/linrename/Makefile	Fri Nov  2 17:10:39 2012	(r306871)
@@ -2,41 +2,40 @@
 # $FreeBSD$
 
 PORTNAME=	linrename
-PORTVERSION=	2.12r
-PORTREVISION=	2
+PORTVERSION=	2.22
 CATEGORIES=	sysutils
-MASTER_SITES=	http://mirror.linux.org.au/pub/linux/utils/util-linux/ \
-		http://debian.csail.mit.edu/pub/linux/utils/util-linux/ \
-		http://www.club.cc.cmu.edu/pub/linux.out-of-date/utils/util-linux/ \
-		${MASTER_SITE_KERNEL_ORG}
-MASTER_SITE_SUBDIR=	linux/utils/util-linux
+#MASTER_SITES=	KERNEL_ORG/linux/utils/util-linux/v${PORTVERSION}
+MASTER_SITES=	http://ftp.ntu.edu.tw/ftp/linux/%SUBDIR%/ \
+		http://ftp.sunet.se/pub/Linux/kernel.org/linux/%SUBDIR%/ \
+		http://kernel.org/pub/linux/%SUBDIR%/ \
+		${MASTER_SITE_RINGSERVER:S,%SUBDIR%,linux/kernel.org/&,}
+MASTER_SITE_SUBDIR=	utils/util-linux/v${PORTVERSION}
 DISTNAME=	util-linux-${PORTVERSION}
 
-DEPRECATED=	No more public distfile
-EXPIRATION_DATE=	2012-11-26
-
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Rename multiple files using substitution
 
-PLIST_FILES=	bin/linrename
-MAN1=		linrename.1
+BUILD_WRKSRC=	${WRKSRC}/misc-utils
+INSTALL_WRKSRC=	${WRKSRC}/misc-utils
+
+USE_XZ=		yes
 
-USE_BZIP2=	yes
-USE_GETTEXT=	yes
+CPPFLAGS+=	-I../include -DHAVE_LOCALE_H -DHAVE_LANGINFO_H \
+		-DPACKAGE_STRING=\"util-linux\ ${PORTVERSION}\"
 
-CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib -lintl -I${WRKSRC}/lib
-EXTRACT_AFTER_ARGS=	| tar -xf - \
-			${DISTNAME}/lib/nls.h \
-			${DISTNAME}/misc-utils/rename.1 \
-			${DISTNAME}/misc-utils/rename.c
+MAN1=		${PORTNAME}.1
+PLIST_FILES=	bin/${PORTNAME}
 
-.include <bsd.port.pre.mk>
+post-patch:
+	${LN} -sf rename.1 ${BUILD_WRKSRC}/${PORTNAME}.1
 
 do-build:
-	${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/misc-utils/rename.c
+	(cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o ${PORTNAME} \
+		rename.c ${LDFLAGS})
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/misc-utils/rename.1 ${PREFIX}/man/man1/${MAN1}
+	(cd ${INSTALL_WRKSRC} \
+		&& ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin \
+		&& ${INSTALL_MAN} ${PORTNAME}.1 ${MANPREFIX}/man/man1)
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/sysutils/linrename/distinfo
==============================================================================
--- head/sysutils/linrename/distinfo	Fri Nov  2 16:48:08 2012	(r306870)
+++ head/sysutils/linrename/distinfo	Fri Nov  2 17:10:39 2012	(r306871)
@@ -1,2 +1,2 @@
-SHA256 (util-linux-2.12r.tar.bz2) = b8e499b338ce9fbd1fb315194b26540ec823c0afc46c9e145ac7a3e38ad57e6b
-SIZE (util-linux-2.12r.tar.bz2) = 1370907
+SHA256 (util-linux-2.22.tar.xz) = 32b329aa72c2ea546378bf81f08e30cf30440196c2edf7777b4f509a3fdbe5a2
+SIZE (util-linux-2.22.tar.xz) = 3183868

Modified: head/sysutils/linrename/files/patch-misc-utils__rename.1
==============================================================================
--- head/sysutils/linrename/files/patch-misc-utils__rename.1	Fri Nov  2 16:48:08 2012	(r306870)
+++ head/sysutils/linrename/files/patch-misc-utils__rename.1	Fri Nov  2 17:10:39 2012	(r306871)
@@ -1,37 +1,45 @@
---- ./misc-utils/rename.1.orig	Sun Aug 22 17:14:45 2004
-+++ ./misc-utils/rename.1	Mon Dec 25 14:54:11 2006
-@@ -3,11 +3,11 @@
+--- misc-utils/rename.1.orig	2012-06-11 19:06:53.730196000 +0900
++++ misc-utils/rename.1	2012-09-28 00:43:17.000000000 +0900
+@@ -3,12 +3,12 @@
  .\"
- .TH RENAME 1 "1 January 2000" "" "Linux Programmer's Manual"
+ .TH RENAME 1 "June 2011" "util-linux" "User Commands"
  .SH NAME
--rename \- Rename files
-+linrename \- Rename files
+-rename \- rename files
++linrename \- rename files
  .SH SYNOPSIS
--.BI rename " from to file..."
-+.BI linrename " from to file..."
+-.B rename
++.B linrename
+ .RI [ options ] " expression replacement file" ...
  .SH DESCRIPTION
 -.B rename
 +.B linrename
  will rename the specified files by replacing the first occurrence of
- .I from
+ .I expression
  in their name by
-@@ -19,8 +19,8 @@
- 
+@@ -30,8 +30,8 @@
  .RS
+ .PP
  .nf
 -rename foo foo0 foo?
 -rename foo foo0 foo??
 +linrename foo foo0 foo?
 +linrename foo foo0 foo??
  .fi
+ .PP
  .RE
- 
-@@ -30,7 +30,7 @@
- And
+@@ -41,7 +41,7 @@
  .RS
+ .PP
  .nf
 -rename .htm .html *.htm
 +linrename .htm .html *.htm
  .fi
+ .PP
  .RE
- 
+@@ -56,5 +56,5 @@
+ .BR mmv (1),
+ .BR mv (1)
+ .SH AVAILABILITY
+-The rename command is part of the util-linux package and is available from
++The linrename command is part of the util-linux package and is available from
+ ftp://ftp.kernel.org/pub/linux/utils/util-linux/.

Modified: head/sysutils/linrename/pkg-descr
==============================================================================
--- head/sysutils/linrename/pkg-descr	Fri Nov  2 16:48:08 2012	(r306870)
+++ head/sysutils/linrename/pkg-descr	Fri Nov  2 17:10:39 2012	(r306871)
@@ -1,4 +1,4 @@
 linrename is a port of the Linux rename utility included with util-linux.
 It allows renaming multiple files using substitution.
 
-WWW: http://freshmeat.net/projects/util-linux/
+WWW: http://freecode.com/projects/util-linux/



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