Monday, March 30, 2020

mail/mblaze version fix

Hello,

Leah forgot to bump VERSION in released mblaze, so fix that in order to
stop museragent reporting mblaze/0.5.1, as you can see in the
User-Agent: header for this very email.

While at that, don't include the build date in museragent, and change
MASTER_SITES to the official release page.

-Lucas


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/mail/mblaze/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile 9 Feb 2020 21:55:04 -0000 1.9
+++ Makefile 30 Mar 2020 12:05:25 -0000
@@ -3,6 +3,7 @@
COMMENT = set of Maildir utilities

DISTNAME = mblaze-0.6
+REVISION = 0
CATEGORIES = mail

HOMEPAGE = https://git.vuxu.org/mblaze/
@@ -12,13 +13,16 @@ MAINTAINER = Lucas <lucas@sexy.is>
# Public domain
PERMIT_PACKAGE = Yes

-MASTER_SITES = https://git.vuxu.org/mblaze/snapshot/
+MASTER_SITES = https://leahneukirchen.org/releases/
+

WANTLIB = c iconv pthread
LIB_DEPENDS = converters/libiconv

USE_GMAKE = Yes
MAKE_FILE = GNUmakefile
+# Don't include build date in museragent
+MAKE_ENV += SOURCE_DATE_EPOCH=no_build_date
MAKE_FLAGS = LOCALBASE="${LOCALBASE}" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include -pthread" \
LDLIBS="-L${LOCALBASE}/lib -liconv -pthread"
@@ -26,5 +30,10 @@ FAKE_FLAGS = PREFIX="${PREFIX}" \
MANDIR="${PREFIX}/man"

TEST_TARGET = check
+
+# XXX remove after next release
+# Fix version
+post-extract:
+ echo 0.6 >${WRKSRC}/VERSION

.include <bsd.port.mk>

No comments:

Post a Comment