git: 1343d6500a65 - main - mail/ifile: undeprecate, adopt, and improve this port

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 29 Apr 2025 08:29:43 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1343d6500a65be0611fd03c7a3e48da83f1b450b

commit 1343d6500a65be0611fd03c7a3e48da83f1b450b
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-04-29 08:27:20 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-04-29 08:27:20 +0000

    mail/ifile: undeprecate, adopt, and improve this port
    
    - It is not deprecated upstream, just no longer being
      actively developed
    - Chase redirection in the MASTER_SITES and WWW lines
    - Adjust LICENSE (source code says GPLv2 or later)
    - Optionally install accompanying documentation files
---
 mail/ifile/Makefile | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/mail/ifile/Makefile b/mail/ifile/Makefile
index ec49a5e412d3..33474bdc0ecb 100644
--- a/mail/ifile/Makefile
+++ b/mail/ifile/Makefile
@@ -2,26 +2,29 @@ PORTNAME=	ifile
 PORTVERSION=	1.3.8
 PORTREVISION=	1
 CATEGORIES=	mail textproc
-MASTER_SITES=	http://people.csail.mit.edu/jrennie/ifile/
+MASTER_SITES=	${WWW}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Application of machine learning to e-mail filtering
-WWW=		https://people.csail.mit.edu/jrennie/ifile/
+WWW=		http://qwone.com/~jason/ifile/
 
-LICENSE=	GPLv2
-
-DEPRECATED=	Deprecated upstream
-EXPIRATION_DATE=2025-04-30
+LICENSE=	GPLv2+
 
 USES=		gmake
 GNU_CONFIGURE=	yes
 USE_CSTD=	gnu89
 
-PLIST_FILES=	bin/ifile \
-		share/man/man1/ifile.1.gz
+PLIST_FILES=	bin/ifile share/man/man1/ifile.1.gz
+PORTDOCS=	ChangeLog NOTES README
+
+OPTIONS_DEFINE=	DOCS
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/ifile ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/ifile.1 ${STAGEDIR}${PREFIX}/share/man/man1
 
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
 .include <bsd.port.mk>