Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2015 17:06:10 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r392434 - in head/mail/mailest: . files
Message-ID:  <201507181706.t6IH6AqT076237@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Sat Jul 18 17:06:09 2015
New Revision: 392434
URL: https://svnweb.freebsd.org/changeset/ports/392434

Log:
  - Correct LICENSE.
  - Regenerate patch files to make portlint happy.

Modified:
  head/mail/mailest/Makefile
  head/mail/mailest/files/patch-mailestd-Makefile
  head/mail/mailest/files/patch-mailestd.c

Modified: head/mail/mailest/Makefile
==============================================================================
--- head/mail/mailest/Makefile	Sat Jul 18 16:51:10 2015	(r392433)
+++ head/mail/mailest/Makefile	Sat Jul 18 17:06:09 2015	(r392434)
@@ -2,16 +2,17 @@
 
 PORTNAME=	mailest
 PORTVERSION=	0.9.20
+PORTREVISION=	1
 CATEGORIES=	mail
 
 MAINTAINER=	hrs@FreeBSD.org
 COMMENT=	Hyper Estraier backend for Mew
 
-LICENSE=	BSD2CLAUSE ISCL LGPL21
+LICENSE=	BSD2CLAUSE BSD3CLAUSE ISCL LGPL21
 LICENSE_COMB=	multi
-LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/LICENSE.BSD2CLAUSE
-LICENSE_FILE_ISCL=	${WRKSRC}/LICENSE.ISCL
-LICENSE_FILE_LGPL21=	${WRKSRC}/LICENSE.LGPL21
+.for L in ${LICENSE}
+LICENSE_FILE_${L}=	${WRKSRC}/LICENSE.${L}
+.endfor
 
 LIB_DEPENDS=	libevent.so:${PORTSDIR}/devel/libevent2 \
 		libqdbm.so:${PORTSDIR}/databases/qdbm \
@@ -25,10 +26,26 @@ GH_ACCOUNT=	yasuoka
 GH_TAGNAME=	${PORTNAME}-${PORTVERSION}
 MAKE_ENV=	USE_BSDMAKE=true WITH_INSTALL_AS_USER=true
 
+LICENSE_BSD2CLAUSE_SRC=	bytebuf.c replace/sys/tree.h
+LICENSE_BSD3CLAUSE_SRC=	replace/sys/queue.h
+LICENSE_ISCL_SRC=	mailestctl.c parser.c parser.h \
+			replace/open_memstream.c \
+			replace/reallocarray.c \
+			replace/replace.h \
+			replace/strlcat.c \
+			replace/strtonum.c
+LICENSE_LGPL21_SRC=	estdraft.c
+LICENSE_BSD2CLAUSE_REGEX="/ \* [Cc]opyright/,/ \*\//!d;s,^ \*,,;s,^/,,"
+LICENSE_BSD3CLAUSE_REGEX=${LICENSE_BSD2CLAUSE_REGEX}
+LICENSE_ISCL_REGEX=	${LICENSE_BSD2CLAUSE_REGEX}
+LICENSE_LGPL21_REGEX=	"/^\/\*\*/,/\*\*\//!d;s,^ \*,,;s,^/,,"
+
 post-extract:
-	${SED} "/\*-/,/*\//!d" ${WRKSRC}/bytebuf.c > ${LICENSE_FILE_BSD2CLAUSE}
-	${SED} "/^\/\*/,/ *\//!d" ${WRKSRC}/mailestctl.c > ${LICENSE_FILE_ISCL}
-	${SED} "/^\/\*\*/,/\*\*\//!d" ${WRKSRC}/estdraft.c \
-	    > ${LICENSE_FILE_LGPL21}
+.for L in ${LICENSE}
+.for F in ${LICENSE_${L}_SRC}
+	cd ${WRKSRC} && ${SED} -e ${LICENSE_${L}_REGEX} ${F} \
+	    >> ${LICENSE_FILE_${L}}
+.endfor
+.endfor
 
 .include <bsd.port.mk>

Modified: head/mail/mailest/files/patch-mailestd-Makefile
==============================================================================
--- head/mail/mailest/files/patch-mailestd-Makefile	Sat Jul 18 16:51:10 2015	(r392433)
+++ head/mail/mailest/files/patch-mailestd-Makefile	Sat Jul 18 17:06:09 2015	(r392434)
@@ -1,6 +1,6 @@
---- mailestd/Makefile.orig	2015-05-27 12:18:27.000000000 +0900
-+++ mailestd/Makefile	2015-06-05 16:09:10.228594000 +0900
-@@ -2,9 +2,9 @@
+--- mailestd/Makefile.orig	2015-06-06 10:45:32 UTC
++++ mailestd/Makefile
+@@ -2,9 +2,9 @@ MAILESTD_MT=	#
  
  PROG=		mailestd
  SRCS=		bytebuf.c mailestd.c mailestctl.c parse.y parser.c
@@ -12,7 +12,7 @@
  LDFLAGS=	-L${LOCALBASE}/lib
  LDADD=		-lestraier -levent -lqdbm
  DPADD=		${LIBESTRAIER} ${LIBEVENT} ${LIBQDBM}
-@@ -21,13 +21,7 @@
+@@ -21,13 +21,7 @@ LDADD+=		-lpthread
  DPADD+=		${LIBPTHREAD}
  .endif
  

Modified: head/mail/mailest/files/patch-mailestd.c
==============================================================================
--- head/mail/mailest/files/patch-mailestd.c	Sat Jul 18 16:51:10 2015	(r392433)
+++ head/mail/mailest/files/patch-mailestd.c	Sat Jul 18 17:06:09 2015	(r392434)
@@ -1,6 +1,6 @@
---- mailestd.c.orig	2015-05-27 12:18:27.000000000 +0900
-+++ mailestd.c	2015-06-05 16:21:58.350309000 +0900
-@@ -809,8 +809,6 @@
+--- mailestd.c.orig	2015-06-06 10:45:32 UTC
++++ mailestd.c
+@@ -809,8 +809,6 @@ mailestd_gather(struct mailestd *_this, 
  
  	RB_INIT(&folders);
  	ctx = mailestd_get_gather(_this, task->gather_id);
@@ -9,7 +9,7 @@
  	if (folder[0] == '/')
  		strlcpy(rdir, folder, sizeof(rdir));
  	else {
-@@ -818,6 +816,8 @@
+@@ -818,6 +816,8 @@ mailestd_gather(struct mailestd *_this, 
  		strlcat(rdir, "/", sizeof(rdir));
  		strlcat(rdir, folder, sizeof(rdir));
  	}
@@ -18,7 +18,7 @@
  	paths[0] = rdir;
  	paths[1] = NULL;
  	lrdir = strlen(rdir);
-@@ -853,7 +853,7 @@
+@@ -853,7 +853,7 @@ mailestd_gather(struct mailestd *_this, 
  	}
  
  	mailestd_log(LOG_DEBUG, "Gathered %s (Total: %d Remove: %d Update: %d)",
@@ -27,7 +27,7 @@
  	    total, delete, update);
  out:
  	if (ctx != NULL) {
-@@ -2638,6 +2638,7 @@
+@@ -2647,6 +2647,7 @@ static void
  mailestd_monitor_folder(struct mailestd *_this, const char *dirpath)
  {
  	int		 fd = -1;
@@ -35,7 +35,7 @@
  	struct folder	*fld, fld0;
  
  	MAILESTD_ASSERT(_thread_self() == _this->monitorworker.thread);
-@@ -2659,7 +2660,8 @@
+@@ -2668,7 +2669,8 @@ mailestd_monitor_folder(struct mailestd 
  	fld->fd = fd;
  	fld->path = xstrdup(dirpath);
  	RB_INSERT(folder_tree, &_this->monitors, fld);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507181706.t6IH6AqT076237>