git: 9f87b8a6f4fa - main - mail/mbar: new port had been added (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Dec 2025 17:34:39 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9f87b8a6f4fa8ac0986015ccaf4d9b6811d4964f
commit 9f87b8a6f4fa8ac0986015ccaf4d9b6811d4964f
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-12-27 17:32:56 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-12-27 17:32:56 +0000
mail/mbar: new port had been added (+)
Flexible mailbox archiver based on GNU mailutils.
Requested by: maintainer
---
mail/Makefile | 1 +
mail/mbar/Makefile | 26 ++++++++++++++++++++++++++
mail/mbar/distinfo | 3 +++
mail/mbar/files/patch-GNUmakefile | 35 +++++++++++++++++++++++++++++++++++
mail/mbar/pkg-descr | 5 +++++
5 files changed, 70 insertions(+)
diff --git a/mail/Makefile b/mail/Makefile
index 45a9bb313a34..b59bf2fc83c9 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -217,6 +217,7 @@
SUBDIR += mairix
SUBDIR += masqmail
SUBDIR += mb2md
+ SUBDIR += mbar
SUBDIR += mblaze
SUBDIR += mbox2imap
SUBDIR += mbox2mdir
diff --git a/mail/mbar/Makefile b/mail/mbar/Makefile
new file mode 100644
index 000000000000..7fb17e8879d8
--- /dev/null
+++ b/mail/mbar/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= mbar
+PORTVERSION= 2.0
+CATEGORIES= mail
+MASTER_SITES= https://download.gnu.org.ua/release/mbar/
+
+MAINTAINER= zeus@gnu.org.ua
+COMMENT= Flexible mailbox archiver based on GNU mailutils
+WWW= https://puszcza.gnu.org.ua/projects/mbar
+
+LICENSE= GPLv3+
+
+LIB_DEPENDS= libmailutils.so:mail/mailutils
+
+USES= gmake
+MAKEFILE= GNUmakefile
+
+PLIST_FILES= bin/mbar share/man/man1/mbar.1.gz
+PORTDOCS= NEWS README
+
+OPTIONS_DEFINE= DOCS
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/mail/mbar/distinfo b/mail/mbar/distinfo
new file mode 100644
index 000000000000..3efd26cf6280
--- /dev/null
+++ b/mail/mbar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760967406
+SHA256 (mbar-2.0.tar.gz) = 6e350e20048b98837439228c4a74c5a10c097438a8e73235693f797dc0cbdf96
+SIZE (mbar-2.0.tar.gz) = 27268
diff --git a/mail/mbar/files/patch-GNUmakefile b/mail/mbar/files/patch-GNUmakefile
new file mode 100644
index 000000000000..9dddf5fb4968
--- /dev/null
+++ b/mail/mbar/files/patch-GNUmakefile
@@ -0,0 +1,35 @@
+--- GNUmakefile.orig 2025-10-20 13:35:06 UTC
++++ GNUmakefile
+@@ -17,8 +17,7 @@
+ # Required version of Mailutils: major and minor numbers. If patchlevel is
+ # needed, set the VPAT variable.
+ VMAJ = 3
+-VMIN = 20
+-VPAT = 92
++VMIN = 21
+
+ # Installation prefix
+ PREFIX = /usr/local
+@@ -49,7 +48,7 @@ ifneq (,$(wildcard config.mk))
+ endif
+
+ ifeq ($(DEVMAILUTILS),)
+- CFLAGS = $(O) $(shell mailutils cflags)
++ CFLAGS += $(O) $(shell mailutils cflags)
+ LDFLAGS = $(shell mailutils ldflags all sieve)
+ MU_INFO = mailutils info
+ else
+@@ -125,11 +124,11 @@ install: install-bin install-man
+
+ install-bin: mbar
+ $(MKHIER) $(DESTDIR)$(BINDIR)
+- $(INSTALL) mbar $(DESTDIR)$(BINDIR)
++ $(BSD_INSTALL_PROGRAM) mbar $(DESTDIR)$(BINDIR)
+
+ install-man:
+ $(MKHIER) $(DESTDIR)$(MAN1DIR)
+- $(INSTALL) mbar.1 $(DESTDIR)$(MAN1DIR)
++ $(BSD_INSTALL_MAN) mbar.1 $(DESTDIR)$(MAN1DIR)
+
+ # ###################
+ # Distribution rules
diff --git a/mail/mbar/pkg-descr b/mail/mbar/pkg-descr
new file mode 100644
index 000000000000..aad25d865d5c
--- /dev/null
+++ b/mail/mbar/pkg-descr
@@ -0,0 +1,5 @@
+Mbar scans the given mailbox folder mailboxes matching a supplied pattern.
+For each mailbox found, a set of criteria is applied to its messages. All
+messages that matched the criteria are then picked and moved to the mailbox
+of the same name, located in the backup folder. If the destination mailbox
+does not exist, it is created with the necessary intermediate directories.