git: 282f35dbc252 - 2025Q3 - sysutils/linrename: clean up and deprecate

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sun, 06 Jul 2025 13:24:53 UTC
The branch 2025Q3 has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=282f35dbc252919be068321acdd108974e1b5ea6

commit 282f35dbc252919be068321acdd108974e1b5ea6
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-07-06 12:24:36 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-07-06 13:23:09 +0000

    sysutils/linrename: clean up and deprecate
    
    This was split out and renamed from util-linux, but has fallen behind
    the upstream version, and the port isn't clean, for instance, the
    patching of the manual page to track the rename is incomplete.
    
    (cherry picked from commit a50090879796b9a2fad431bcbb51e5f8d0091889)
---
 sysutils/linrename/Makefile                         | 18 ++++++++++--------
 sysutils/linrename/files/patch-misc-utils__rename.1 | 12 ++++++------
 2 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/sysutils/linrename/Makefile b/sysutils/linrename/Makefile
index 931e4cc6c858..0a050b8e66d6 100644
--- a/sysutils/linrename/Makefile
+++ b/sysutils/linrename/Makefile
@@ -1,20 +1,19 @@
 PORTNAME=	linrename
 PORTVERSION=	2.25.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
-#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_SUBDIR=	utils/util-linux/v${PORTVERSION:R}
+MASTER_SITES=	KERNEL_ORG/linux/utils/util-linux/v${PORTVERSION:R}
 DISTNAME=	util-linux-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Rename multiple files using substitution
 WWW=		http://freecode.com/projects/util-linux/
 
-BUILD_WRKSRC=	${WRKSRC}/misc-utils
-INSTALL_WRKSRC=	${WRKSRC}/misc-utils
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+DEPRECATED=	FreeBSD port unmaintained, use misc/mmv instead
+EXPIRATION_DATE=2025-09-30
 
 USES=		tar:xz
 
@@ -25,6 +24,9 @@ CPPFLAGS+=	-I../include \
 		-Dprogram_invocation_short_name=\"${PROGNAME}\" \
 		-DPACKAGE_STRING=\"util-linux\ ${PORTVERSION}\"
 
+BUILD_WRKSRC=	${WRKSRC}/misc-utils
+INSTALL_WRKSRC=	${WRKSRC}/misc-utils
+
 PLIST_FILES=	bin/${PORTNAME} share/man/man1/${PORTNAME}.1.gz
 
 post-patch:
diff --git a/sysutils/linrename/files/patch-misc-utils__rename.1 b/sysutils/linrename/files/patch-misc-utils__rename.1
index e5cf9be39591..8103a5ad475c 100644
--- a/sysutils/linrename/files/patch-misc-utils__rename.1
+++ b/sysutils/linrename/files/patch-misc-utils__rename.1
@@ -1,5 +1,5 @@
---- 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
+--- misc-utils/rename.1.orig	2014-10-24 09:21:20 UTC
++++ misc-utils/rename.1
 @@ -3,12 +3,12 @@
  .\"
  .TH RENAME 1 "June 2011" "util-linux" "User Commands"
@@ -16,7 +16,7 @@
  will rename the specified files by replacing the first occurrence of
  .I expression
  in their name by
-@@ -30,8 +30,8 @@
+@@ -33,8 +33,8 @@ the commands
  .RS
  .PP
  .nf
@@ -27,7 +27,7 @@
  .fi
  .PP
  .RE
-@@ -41,7 +41,7 @@
+@@ -44,7 +44,7 @@ And
  .RS
  .PP
  .nf
@@ -36,8 +36,8 @@
  .fi
  .PP
  .RE
-@@ -56,5 +56,5 @@
- .BR mmv (1),
+@@ -58,5 +58,5 @@ know what you are doing.
+ .SH "SEE ALSO"
  .BR mv (1)
  .SH AVAILABILITY
 -The rename command is part of the util-linux package and is available from