git: 70a3ea5e4880 - main - mail/mls: update to 1.4b1

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 23 May 2024 14:57:26 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=70a3ea5e4880a69f7ade8b47cebf90bdeddbf478

commit 70a3ea5e4880a69f7ade8b47cebf90bdeddbf478
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-05-18 17:46:52 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-05-23 14:56:48 +0000

    mail/mls: update to 1.4b1
    
     - chase to new home
---
 mail/mls/Makefile               |  8 +++++---
 mail/mls/distinfo               |  6 +++---
 mail/mls/files/patch-Makefile   | 17 +++++++----------
 mail/mls/files/patch-mls_text.h | 11 -----------
 4 files changed, 15 insertions(+), 27 deletions(-)

diff --git a/mail/mls/Makefile b/mail/mls/Makefile
index ccaf23672c54..cfcc3e7d2290 100644
--- a/mail/mls/Makefile
+++ b/mail/mls/Makefile
@@ -1,8 +1,7 @@
 PORTNAME=	mls
-PORTVERSION=	1.3
-PORTREVISION=	3
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.4b1
 CATEGORIES=	mail
-MASTER_SITES=	https://www.marki-online.net/MLS/
 
 MAINTAINER=	fuz@FreeBSD.org
 COMMENT=	Program for generating various statistics on emails
@@ -12,6 +11,9 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING.gz
 
 USES=		tar:tgz
+USE_GITHUB=	yes
+GH_ACCOUNT=	marki555
+GH_PROJECT=	MailListStat
 
 MAKE_ARGS+=	CC="${CC}" CFLAGS="${CFLAGS}"
 ALL_TARGET=	mls
diff --git a/mail/mls/distinfo b/mail/mls/distinfo
index 07a2f06b9986..9705d67f1f2c 100644
--- a/mail/mls/distinfo
+++ b/mail/mls/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1676377151
-SHA256 (mls-1.3.tgz) = f2aabb6010dfe61751ec138a922e7f72a9d0b23f01c955079cb56a5c1673bfea
-SIZE (mls-1.3.tgz) = 45481
+TIMESTAMP = 1716053722
+SHA256 (marki555-MailListStat-v1.4b1_GH0.tar.gz) = 3ce849892a5bf2a22210234690e8ea71409f0c739ab4022bf3cb97cdcd9a98da
+SIZE (marki555-MailListStat-v1.4b1_GH0.tar.gz) = 47534
diff --git a/mail/mls/files/patch-Makefile b/mail/mls/files/patch-Makefile
index 124d6f9f04ab..306fb4bca321 100644
--- a/mail/mls/files/patch-Makefile
+++ b/mail/mls/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig	2003-06-10 20:26:51 UTC
+--- Makefile.orig	2023-10-04 18:23:40 UTC
 +++ Makefile
-@@ -5,13 +5,13 @@
+@@ -5,7 +5,7 @@
  
  # -m386 (486,pentium,pentiumpro)
  #OPTIMIZE=-O7 -mpentiumpro
@@ -9,15 +9,12 @@
  
  # debug symbols will be stripped anyway during 'make install'
  DEBUG=-g
+@@ -24,12 +24,11 @@ mls: $(OBJS)
+ 	$(CC) -c -o $@ $< $(CFLAGS)
  
- #### DON'T CHANGE ANYTHING BELOW ####
--DESTDIR=/usr/local
-+DESTDIR?=/usr/local
- CFLAGS=-Wall $(OPTIMIZE) $(DEBUG)
- LIBS=-lm
- CC=gcc
-@@ -37,9 +37,8 @@ install: mls
- 	$(CC) $(CFLAGS) -c mls_text.c -o mls_text.o
+ mls: $(OBJS)
+-	$(CC) -o $@ $^ $(CFLAGS)
++	$(CC) -o $@ $(OBJS) $(CFLAGS)
  
  install: mls
 -	install -m 755 -g root -o root -s mls $(DESTDIR)/bin
diff --git a/mail/mls/files/patch-mls_text.h b/mail/mls/files/patch-mls_text.h
deleted file mode 100644
index 9e70e1eaeace..000000000000
--- a/mail/mls/files/patch-mls_text.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- mls_text.h.orig	2003-02-15 10:16:07 UTC
-+++ mls_text.h
-@@ -30,7 +30,7 @@ void PrintTop(nTptr, int);
- void PrintTopQ(nTptr, int);
- void PrintTopHtml(nTptr, int);
- void PrintGraph(long[], int, int);
--void PrintGraphHtml(long[], long[][], int, char *);
-+void PrintGraphHtml(long[], long[][SNUMB_LEN], int, char *);
- 
- void PrintStatText(int, char *);
- void PrintStatHtml(int, char *, short);