From takefu@airport.fm  Wed Jan  8 04:07:49 2014
Return-Path: <takefu@airport.fm>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 6D5BF435
	for <freebsd-gnats-submit@freebsd.org>; Wed,  8 Jan 2014 04:07:49 +0000 (UTC)
Received: from ae-osaka.co.jp (mx.ae-osaka.co.jp [210.196.184.82])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 2D8A4172C
	for <freebsd-gnats-submit@freebsd.org>; Wed,  8 Jan 2014 04:07:48 +0000 (UTC)
Received: from ae-osaka.co.jp (localhost.ae-osaka.co.jp [127.0.0.1])
	by ae-osaka.co.jp (Postfix) with ESMTP id 49389126081;
	Wed,  8 Jan 2014 13:07:40 +0900 (JST)
Received: from [IPv6:2001:470:824b:a011:9d34:f321:98eb:8b13] (unknown [IPv6:2001:470:824b:a011:9d34:f321:98eb:8b13])
	by ae-osaka.co.jp (Postfix) with ESMTPSA id C3FCF12607F;
	Wed,  8 Jan 2014 13:07:39 +0900 (JST)
Message-Id: <52CCCF0B.7050007@airport.fm>
Date: Wed, 08 Jan 2014 13:07:39 +0900
From: Takefu <takefu@airport.fm>
Reply-To: takefu@airport.fm
To: freebsd-gnats-submit@freebsd.org
Cc: chalpin@cs.wisc.edu
Subject: [PATCH] mail/fetchmail: fix StageDir

>Number:         185572
>Category:       ports
>Synopsis:       [PATCH] mail/fetchmail: fix StageDir
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rene
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 08 04:10:00 UTC 2014
>Closed-Date:    Tue Apr 22 16:11:07 UTC 2014
>Last-Modified:  Tue Apr 22 16:20:00 UTC 2014
>Originator:     Takefu
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
FOX Amateur Radio Club
>Environment:
System: FreeBSD RELENG84-ix86.localIPv4.airport.fm 8.4-RELEASE-p4 FreeBSD 8.4-RELEASE-p4 #0: Wed Sep 25 14:55:36 JST 2013
>Description:
fix StageDir

Port maintainer (chalpin@cs.wisc.edu) is cc'd.

Generated with FreeBSD Port Tools 0.99_11 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- fetchmail-6.3.26.patch begins here ---
diff -ruN /usr/ports/mail/fetchmail/Makefile ./Makefile
--- /usr/ports/mail/fetchmail/Makefile	2013-09-21 04:59:12.000000000 +0900
+++ ./Makefile	2014-01-08 12:55:40.000000000 +0900
@@ -10,63 +10,56 @@
 MAINTAINER=	chalpin@cs.wisc.edu
 COMMENT=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR

+LICENSE=	GPLv2 LGPL21
+LICENSE_COMB=	dual
+
 RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss

 # Note USERS can only contain a single word as parts below rely on that.
 USERS=	${PORTNAME}
 GROUPS=	${USERS}
+NULLDIR?=	# None. portlint compliance

 USE_RC_SUBR=	fetchmail
 FETCHMAILRC=	${PREFIX}/etc/fetchmailrc
 SUB_FILES=	pkg-message

-USE_XZ=	yes
+USE_XZ=		yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 USE_OPENSSL=	yes
+NLS_USES=	gettext
 CONFIGURE_ARGS=	--enable-opie --enable-RPA --enable-SDPS \
 		--without-hesiod --enable-fallback=no \
 		--with-ssl=${OPENSSLBASE}

 LDFLAGS+=	-L${LOCALBASE}/lib
-MAN1=	fetchmail.1
-MLINKS=	fetchmail.1 fetchmailconf.1

-OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI
+OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI POP2
 OPTIONS_DEFAULT=	GSSAPI
+OPTIONS_SUB=	yes
 X11_DESC=	Python/Tkinter dependencies for ``fetchmailconf''
-NTLM_DESC=	Build in support for NTLM/MSN authentication
-GSSAPI_DESC=	Build GSSAPI/Kerberos 5 support
+POP2_DESC=	POP2 Protocol support[obsolete]

 PORTDOCS=	FAQ FEATURES NEWS NOTES README README.SSL \
 		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
 		esrs-design-notes.html

-NO_STAGE=	yes
 .include <bsd.port.options.mk>

 # Pop2 is obsolete
-.if defined(WITH_POP2)
+.if ${PORT_OPTIONS:MPOP2}
 CONFIGURE_ARGS+=	--enable-POP2
 .endif

 .if ${PORT_OPTIONS:MX11}
 USE_PYTHON_RUN=	yes
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
-PLIST_SUB+=	X11="" NOX11="@comment "
+PLIST_SUB+=	NOX11="@comment "
 .else
 CONFIGURE_ARGS+=	PYTHON=:
 SUB_FILES+=	fetchmailconf
-PLIST_SUB+=	X11="@comment " NOX11=""
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+=	--enable-nls
-PLIST_SUB+=	NLS=""
-USES+=		gettext
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=	NLS="@comment "
+PLIST_SUB+=	NOX11=""
 .endif

 .if ${PORT_OPTIONS:MGSSAPI}
@@ -74,7 +68,7 @@
 .if exists(${LOCALBASE}/lib/libkrb5.a)
 KRB5_HOME=	${LOCALBASE}
 .elif exists(/usr/lib/libkrb5.a)
-KRB5_HOME=	/usr
+KRB5_HOME=	${NULLDIR}/usr
 .endif
 .endif

@@ -101,20 +95,22 @@

 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 .endif

 .if empty(PORT_OPTIONS:MX11)
-	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
+	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
 .endif
-	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
-	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
-	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
+	${MKDIR} -m 0755 "${STAGEDIR}/var/run/${PORTNAME}"
+	${CHOWN} "${USERS}:${GROUPS}" "${STAGEDIR}/var/run/${PORTNAME}"
+	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample\
+		${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
 	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
-		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
-		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
+		${CP} -p ${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample\
+			${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
+		${CHMOD} 600 ${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
 	fi

 	@${ECHO_CMD} ""
diff -ruN /usr/ports/mail/fetchmail/pkg-plist ./pkg-plist
--- /usr/ports/mail/fetchmail/pkg-plist	2013-03-26 17:56:28.000000000 +0900
+++ ./pkg-plist	2014-01-07 16:22:50.000000000 +0900
@@ -1,6 +1,8 @@
 @comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z mandree $
 bin/fetchmail
 bin/fetchmailconf
+man/man1/fetchmail.1.gz
+man/man1/fetchmailconf.1.gz
 %%NOX11%%libexec/fetchmailconf.py
 %%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
 %%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
--- fetchmail-6.3.26.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Jan 8 04:54:40 UTC 2014 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185572 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: chalpin@cs.wisc.edu
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/185572: [PATCH] mail/fetchmail: fix StageDir
Date: Wed, 8 Jan 2014 04:54:39 UT

 Maintainer of mail/fetchmail,
 
 Please note that PR ports/185572 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/185572
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Corey Halpin <chalpin@cs.wisc.edu>
To: bug-followup@FreeBSD.ORG
Cc: takefu@airport.fm
Subject: Re: ports/185572: [PATCH] mail/fetchmail: fix StageDir
Date: Wed, 22 Jan 2014 05:43:07 -0600

 --ZfOjI3PrQbgiZnxM
 Content-Type: multipart/mixed; boundary="EeQfGwPcQSOJBaQU"
 Content-Disposition: inline
 
 
 --EeQfGwPcQSOJBaQU
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
   Thank you for the patch, and for your work on it.
 
   Unfortunately, it does not pass 'poudriere testport'.  This is because=20
 ${CHMOD} was still being used in the post-install.  See the fifth bullet un=
 der=20
 'Makefile ... targets' on the StageDir wiki page:=20
 https://wiki.freebsd.org/ports/StageDir .
 
   In the attached revision, I've moved the manipulation of /var/run/fetchma=
 il=20
 into the pkg-{de}install scripts.  Poudriere testport still says there is a=
 =20
 staging violation in %%ETCDIR%%rc ... but as far as I can tell, this is a=
 =20
 false positive.
 
 ~crh
 
 --EeQfGwPcQSOJBaQU
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="fm_stage_crh.patch"
 Content-Transfer-Encoding: quoted-printable
 
 diff -ruN fetchmail/Makefile fetchmail_new/Makefile
 --- fetchmail/Makefile	2013-09-20 14:59:12.000000000 -0500
 +++ fetchmail_new/Makefile	2014-01-22 05:25:33.291640508 -0600
 @@ -10,63 +10,56 @@
  MAINTAINER=3D	chalpin@cs.wisc.edu
  COMMENT=3D	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
 =20
 +LICENSE=3D	GPLv2 LGPL21
 +LICENSE_COMB=3D	dual
 +
  RUN_DEPENDS=3D	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/securi=
 ty/ca_root_nss
 =20
  # Note USERS can only contain a single word as parts below rely on that.
  USERS=3D	${PORTNAME}
  GROUPS=3D	${USERS}
 +NULLDIR?=3D	# None. portlint compliance
 =20
  USE_RC_SUBR=3D	fetchmail
  FETCHMAILRC=3D	${PREFIX}/etc/fetchmailrc
  SUB_FILES=3D	pkg-message
 =20
 -USE_XZ=3D	yes
 +USE_XZ=3D		yes
  USE_GMAKE=3D	yes
  GNU_CONFIGURE=3D	yes
  USE_OPENSSL=3D	yes
 +NLS_USES=3D	gettext
  CONFIGURE_ARGS=3D	--enable-opie --enable-RPA --enable-SDPS \
  		--without-hesiod --enable-fallback=3Dno \
  		--with-ssl=3D${OPENSSLBASE}
 =20
  LDFLAGS+=3D	-L${LOCALBASE}/lib
 -MAN1=3D	fetchmail.1
 -MLINKS=3D	fetchmail.1 fetchmailconf.1
 =20
 -OPTIONS_DEFINE=3D	X11 NLS NTLM GSSAPI
 +OPTIONS_DEFINE=3D	X11 NLS NTLM GSSAPI POP2
  OPTIONS_DEFAULT=3D	GSSAPI
 +OPTIONS_SUB=3D	yes
  X11_DESC=3D	Python/Tkinter dependencies for ``fetchmailconf''
 -NTLM_DESC=3D	Build in support for NTLM/MSN authentication
 -GSSAPI_DESC=3D	Build GSSAPI/Kerberos 5 support
 +POP2_DESC=3D	POP2 Protocol support[obsolete]
 =20
  PORTDOCS=3D	FAQ FEATURES NEWS NOTES README README.SSL \
  		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
  		esrs-design-notes.html
 =20
 -NO_STAGE=3D	yes
  .include <bsd.port.options.mk>
 =20
  # Pop2 is obsolete
 -.if defined(WITH_POP2)
 +.if ${PORT_OPTIONS:MPOP2}
  CONFIGURE_ARGS+=3D	--enable-POP2
  .endif
 =20
  .if ${PORT_OPTIONS:MX11}
  USE_PYTHON_RUN=3D	yes
  RUN_DEPENDS+=3D	${PYTHON_PKGNAMEPREFIX}tkinter>=3D0:${PORTSDIR}/x11-toolki=
 ts/py-tkinter
 -PLIST_SUB+=3D	X11=3D"" NOX11=3D"@comment "
 +PLIST_SUB+=3D	NOX11=3D"@comment "
  .else
  CONFIGURE_ARGS+=3D	PYTHON=3D:
  SUB_FILES+=3D	fetchmailconf
 -PLIST_SUB+=3D	X11=3D"@comment " NOX11=3D""
 -.endif
 -
 -.if ${PORT_OPTIONS:MNLS}
 -CONFIGURE_ARGS+=3D	--enable-nls
 -PLIST_SUB+=3D	NLS=3D""
 -USES+=3D		gettext
 -.else
 -CONFIGURE_ARGS+=3D	--disable-nls
 -PLIST_SUB+=3D	NLS=3D"@comment "
 +PLIST_SUB+=3D	NOX11=3D""
  .endif
 =20
  .if ${PORT_OPTIONS:MGSSAPI}
 @@ -74,7 +67,7 @@
  .if exists(${LOCALBASE}/lib/libkrb5.a)
  KRB5_HOME=3D	${LOCALBASE}
  .elif exists(/usr/lib/libkrb5.a)
 -KRB5_HOME=3D	/usr
 +KRB5_HOME=3D	${NULLDIR}/usr
  .endif
  .endif
 =20
 @@ -101,24 +94,19 @@
 =20
  post-install:
  .if ${PORT_OPTIONS:MDOCS}
 -	${MKDIR} ${DOCSDIR}
 -	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
  .endif
 =20
  .if empty(PORT_OPTIONS:MX11)
 -	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
 -	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
 +	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
 +	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
  .endif
 -	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
 -	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
 -	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample=
  ${PREFIX}/etc/fetchmailrc.sample
 +	${INSTALL} -m 644 ${FILESDIR}/fetchmailrc.sample\
 +		${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
  	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
 -		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
 -		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
 +		${CP} -p ${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample\
 +			${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
 +		${CHMOD} 600 ${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
  	fi
 -
 -	@${ECHO_CMD} ""
 -	@${CAT} ${PKGMESSAGE}
 -	@${ECHO_CMD} ""
 -
  .include <bsd.port.mk>
 diff -ruN fetchmail/pkg-deinstall fetchmail_new/pkg-deinstall
 --- fetchmail/pkg-deinstall	1969-12-31 18:00:00.000000000 -0600
 +++ fetchmail_new/pkg-deinstall	2014-01-22 05:34:51.600646238 -0600
 @@ -0,0 +1,11 @@
 +#!/bin/sh
 +
 +if [ x$2 !=3D xPOST-DEINSTALL ]; then
 +  exit
 +fi
 +
 +if [ -f /var/run/fetchmail/fetchmail.pid ] ; then
 +  /bin/rm -f /var/run/fetchmail/fetchmail.pid=20
 +fi
 +
 +/bin/rmdir /var/run/fetchmail 2>/dev/null
 diff -ruN fetchmail/pkg-install fetchmail_new/pkg-install
 --- fetchmail/pkg-install	1969-12-31 18:00:00.000000000 -0600
 +++ fetchmail_new/pkg-install	2014-01-22 05:25:03.706646611 -0600
 @@ -0,0 +1,8 @@
 +#!/bin/sh
 +
 +if [ x$2 !=3D xPOST-INSTALL ]; then
 +  exit
 +fi
 +
 +/bin/mkdir -m 0755 -p /var/run/fetchmail
 +/usr/sbin/chown "fetchmail:fetchmail" /var/run/fetchmail
 diff -ruN fetchmail/pkg-plist fetchmail_new/pkg-plist
 --- fetchmail/pkg-plist	2013-03-26 03:56:28.000000000 -0500
 +++ fetchmail_new/pkg-plist	2014-01-22 05:25:23.339644812 -0600
 @@ -1,6 +1,8 @@
  @comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z ma=
 ndree $
  bin/fetchmail
  bin/fetchmailconf
 +man/man1/fetchmail.1.gz
 +man/man1/fetchmailconf.1.gz
  %%NOX11%%libexec/fetchmailconf.py
  %%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
  %%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
 @@ -33,6 +35,3 @@
  @unexec if cmp -s %D/etc/fetchmailrc.sample %D/etc/fetchmailrc; then rm -f=
  %D/etc/fetchmailrc; fi
  etc/fetchmailrc.sample
  @exec if [ ! -f %D/etc/fetchmailrc ] ; then cp -p %D/%F %B/fetchmailrc; fi
 -@cwd /var/run
 -@unexec rm -f %D/fetchmail/fetchmail.pid 2>/dev/null || true
 -@dirrmtry fetchmail
 
 --EeQfGwPcQSOJBaQU--
 
 --ZfOjI3PrQbgiZnxM
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iF4EAREIAAYFAlLfrsoACgkQR8PgTIRJoTVi2AD+L4aahw0L8nJ3o0vCtbNRr8TU
 +BMsfYh9SaTcgg5HwYEBAIgfatRwpOI2VfgSwNpgVBwThV5esbitZENeikVpplhi
 =ZtII
 -----END PGP SIGNATURE-----
 
 --ZfOjI3PrQbgiZnxM--

From: Takefu <takefu@airport.fm>
To: Corey Halpin <chalpin@cs.wisc.edu>, bug-followup@FreeBSD.ORG
Cc:  
Subject: Re: ports/185572: [PATCH] mail/fetchmail: fix StageDir
Date: Fri, 24 Jan 2014 18:12:20 +0900

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 Hi.
 
 It was not possible to correct it with 8.4-RELEASE though the patch was tried.
 I want you to try because it made the patch improved a little.
 
 
 Pkg-install pkg-deinstall operates correctly.
 NLS option reform.
 shebangfix fetchmailconf.py
 
 
 - --- fetchmail-6.3.26.patch begins here ---
 diff -ruN /usr/ports/mail/fetchmail/Makefile ./Makefile
 - --- /usr/ports/mail/fetchmail/Makefile	2013-09-21 04:59:12.000000000 +0900
 +++ ./Makefile	2014-01-24 17:46:25.000000000 +0900
 @@ -10,17 +10,25 @@
  MAINTAINER=	chalpin@cs.wisc.edu
  COMMENT=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
 
 +LICENSE=	GPLv2 LGPL21
 +LICENSE_COMB=	dual
 +
  RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
 
  # Note USERS can only contain a single word as parts below rely on that.
 - -USERS=	${PORTNAME}
 - -GROUPS=	${USERS}
 +USERS=		${PORTNAME}
 +GROUPS=		${USERS}
 +NULLDIR?=	# None. portlint compliance
 +
 +USES=		shebangfix
 +SHEBANG_FILES=	fetchmailconf.py
 +python_OLD_CMD=	/usr/bin/env python
 
  USE_RC_SUBR=	fetchmail
 - -FETCHMAILRC=	${PREFIX}/etc/fetchmailrc
 - -SUB_FILES=	pkg-message
 +SUB_FILES=	pkg-message pkg-install pkg-deinstall
 +SUB_LIST+=	USERS=${USERS} GROUPS=${GROUPS} PORTNAME=${PORTNAME}
 
 - -USE_XZ=	yes
 +USE_XZ=		yes
  USE_GMAKE=	yes
  GNU_CONFIGURE=	yes
  USE_OPENSSL=	yes
 @@ -29,44 +37,37 @@
  		--with-ssl=${OPENSSLBASE}
 
  LDFLAGS+=	-L${LOCALBASE}/lib
 - -MAN1=	fetchmail.1
 - -MLINKS=	fetchmail.1 fetchmailconf.1
 
 - -OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI
 +OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI POP2
  OPTIONS_DEFAULT=	GSSAPI
 +OPTIONS_SUB=	yes
  X11_DESC=	Python/Tkinter dependencies for ``fetchmailconf''
 - -NTLM_DESC=	Build in support for NTLM/MSN authentication
 - -GSSAPI_DESC=	Build GSSAPI/Kerberos 5 support
 +POP2_DESC=	POP2 Protocol support[obsolete]
 +
 +NLS_USES=	gettext
 +NLS_CONFIGURE_ENABLE=	nls
 +NLS_CONFIGURE_ON=	--enable-nls
 +NLS_CONFIGURE_OFF=	--disable-nls
 
  PORTDOCS=	FAQ FEATURES NEWS NOTES README README.SSL \
  		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
  		esrs-design-notes.html
 
 - -NO_STAGE=	yes
  .include <bsd.port.options.mk>
 
  # Pop2 is obsolete
 - -.if defined(WITH_POP2)
 +.if ${PORT_OPTIONS:MPOP2}
  CONFIGURE_ARGS+=	--enable-POP2
  .endif
 
  .if ${PORT_OPTIONS:MX11}
  USE_PYTHON_RUN=	yes
  RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
 - -PLIST_SUB+=	X11="" NOX11="@comment "
 +PLIST_SUB+=	NOX11="@comment "
  .else
  CONFIGURE_ARGS+=	PYTHON=:
  SUB_FILES+=	fetchmailconf
 - -PLIST_SUB+=	X11="@comment " NOX11=""
 - -.endif
 - -
 - -.if ${PORT_OPTIONS:MNLS}
 - -CONFIGURE_ARGS+=	--enable-nls
 - -PLIST_SUB+=	NLS=""
 - -USES+=		gettext
 - -.else
 - -CONFIGURE_ARGS+=	--disable-nls
 - -PLIST_SUB+=	NLS="@comment "
 +PLIST_SUB+=	NOX11=""
  .endif
 
  .if ${PORT_OPTIONS:MGSSAPI}
 @@ -74,7 +75,7 @@
  .if exists(${LOCALBASE}/lib/libkrb5.a)
  KRB5_HOME=	${LOCALBASE}
  .elif exists(/usr/lib/libkrb5.a)
 - -KRB5_HOME=	/usr
 +KRB5_HOME=	${NULLDIR}/usr
  .endif
  .endif
 
 @@ -92,29 +93,26 @@
  PORTDOCS+=	README.NTLM
  .endif
 
 - -pre-patch:
 - -	@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \
 - -		${WRKSRC}/fetchmailconf.py
 - -
  post-build:
  	@${MAKE} -C ${WRKSRC} check
 
  post-install:
  .if ${PORT_OPTIONS:MDOCS}
 - -	${MKDIR} ${DOCSDIR}
 - -	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
  .endif
 
  .if empty(PORT_OPTIONS:MX11)
 - -	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
 - -	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
 +	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
 +	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
  .endif
 - -	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
 - -	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
 - -	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
 +	${MKDIR} -m 0755 "${STAGEDIR}/var/run/${PORTNAME}"
 +	${INSTALL} -m 644 ${FILESDIR}/fetchmailrc.sample\
 +		${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
  	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
 - -		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
 - -		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
 +		${CP} -p ${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample\
 +			${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
 +		${CHMOD} 600 ${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
  	fi
 
  	@${ECHO_CMD} ""
 diff -ruN /usr/ports/mail/fetchmail/files/pkg-deinstall.in ./files/pkg-deinstall.in
 - --- /usr/ports/mail/fetchmail/files/pkg-deinstall.in	1970-01-01 09:00:00.000000000 +0900
 +++ ./files/pkg-deinstall.in	2014-01-24 17:56:16.000000000 +0900
 @@ -0,0 +1,11 @@
 +#!/bin/sh
 +
 +if [ x$2 != xPOST-DEINSTALL ]; then
 +  exit
 +fi
 +
 +if [ -f /var/run/%%PORTNAME%%/fetchmail.pid ] ; then
 +  /bin/rm -f /var/run/%%PORTNAME%%/fetchmail.pid
 +fi
 +
 +exit
 diff -ruN /usr/ports/mail/fetchmail/files/pkg-install.in ./files/pkg-install.in
 - --- /usr/ports/mail/fetchmail/files/pkg-install.in	1970-01-01 09:00:00.000000000 +0900
 +++ ./files/pkg-install.in	2014-01-24 17:51:24.000000000 +0900
 @@ -0,0 +1,11 @@
 +#!/bin/sh
 +
 +if [ x$2 != xPOST-INSTALL ]; then
 +  exit
 +fi
 +
 +/bin/mkdir -m 0755 -p /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" %%PREFIX%%/etc/fetchmailrc*
 +
 +exit
 diff -ruN /usr/ports/mail/fetchmail/pkg-plist ./pkg-plist
 - --- /usr/ports/mail/fetchmail/pkg-plist	2014-01-22 08:40:21.000000000 +0900
 +++ ./pkg-plist	2014-01-23 10:12:37.000000000 +0900
 @@ -1,5 +1,8 @@
 +@comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z mandree $
  bin/fetchmail
  bin/fetchmailconf
 +man/man1/fetchmail.1.gz
 +man/man1/fetchmailconf.1.gz
  %%NOX11%%libexec/fetchmailconf.py
  %%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
  %%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
 - --- fetchmail-6.3.26.patch ends here ---
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (MingW32)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iEYEARECAAYFAlLiLnQACgkQxqPFoZw+j1Y1OwCfa5evAvHtxHDWqndYQdxY5cDe
 BTIAnijEWF2kDWN++OgLYjPjidX5zX8c
 =w6Ye
 -----END PGP SIGNATURE-----

From: Corey Halpin <chalpin@cs.wisc.edu>
To: Takefu <takefu@airport.fm>
Cc: bug-followup@FreeBSD.ORG
Subject: Re: ports/185572: [PATCH] mail/fetchmail: fix StageDir
Date: Mon, 10 Feb 2014 06:31:34 -0600

 --ftEhullJWpWg/VHq
 Content-Type: multipart/mixed; boundary="KsGdsel6WgEHnImy"
 Content-Disposition: inline
 
 
 --KsGdsel6WgEHnImy
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
   Thank you for these improvements.
 
   It looks like something mangled your patchfile.  It had "- -" at the=20
 beginning of the line where it should be "-".  After fixing that problem, I=
 =20
 was able to apply and test it.  It still fails poudriere testport.  This is=
 =20
 because the Makefile contained:
 
   ${MKDIR} -m 0755 "${STAGEDIR}/var/run/${PORTNAME}"
 
   but the pkg-plist tried to remove /var/run/fetchmail.
 
   In the attached revision, I've put all of the manipulation of=20
 /var/run/fetchmail into the pkg-(de)install scripts.  Poudriere testport st=
 ill=20
 complains about %%ETCDIR%%rc and $$ETCDIR%%rc.sample -- but I believe these=
  to=20
 be false positives.
 
 ~crh
 
 On 2014-01-24, Takefu wrote:
 > It was not possible to correct it with 8.4-RELEASE though the patch was t=
 ried.
 > I want you to try because it made the patch improved a little.
 >=20
 >=20
 > Pkg-install pkg-deinstall operates correctly.
 > NLS option reform.
 > shebangfix fetchmailconf.py
 
 --KsGdsel6WgEHnImy
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="fm2_crh.patch"
 Content-Transfer-Encoding: quoted-printable
 
 diff -ruN fetchmail/Makefile fetchmail_new/Makefile
 --- fetchmail/Makefile	2013-09-20 14:59:12.000000000 -0500
 +++ fetchmail_new/Makefile	2014-02-07 14:37:53.256667040 -0600
 @@ -10,17 +10,25 @@
  MAINTAINER=3D	chalpin@cs.wisc.edu
  COMMENT=3D	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
 =20
 +LICENSE=3D	GPLv2 LGPL21
 +LICENSE_COMB=3D	dual
 +
  RUN_DEPENDS=3D	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/securi=
 ty/ca_root_nss
 =20
  # Note USERS can only contain a single word as parts below rely on that.
 -USERS=3D	${PORTNAME}
 -GROUPS=3D	${USERS}
 +USERS=3D		${PORTNAME}
 +GROUPS=3D		${USERS}
 +NULLDIR?=3D	# None. portlint compliance
 +
 +USES=3D		shebangfix
 +SHEBANG_FILES=3D	fetchmailconf.py
 +python_OLD_CMD=3D	/usr/bin/env python
 =20
  USE_RC_SUBR=3D	fetchmail
 -FETCHMAILRC=3D	${PREFIX}/etc/fetchmailrc
 -SUB_FILES=3D	pkg-message
 +SUB_FILES=3D	pkg-message pkg-install pkg-deinstall
 +SUB_LIST+=3D	USERS=3D${USERS} GROUPS=3D${GROUPS} PORTNAME=3D${PORTNAME}
 =20
 -USE_XZ=3D	yes
 +USE_XZ=3D		yes
  USE_GMAKE=3D	yes
  GNU_CONFIGURE=3D	yes
  USE_OPENSSL=3D	yes
 @@ -29,44 +37,37 @@
  		--with-ssl=3D${OPENSSLBASE}
 =20
  LDFLAGS+=3D	-L${LOCALBASE}/lib
 -MAN1=3D	fetchmail.1
 -MLINKS=3D	fetchmail.1 fetchmailconf.1
 =20
 -OPTIONS_DEFINE=3D	X11 NLS NTLM GSSAPI
 +OPTIONS_DEFINE=3D	X11 NLS NTLM GSSAPI POP2
  OPTIONS_DEFAULT=3D	GSSAPI
 +OPTIONS_SUB=3D	yes
  X11_DESC=3D	Python/Tkinter dependencies for ``fetchmailconf''
 -NTLM_DESC=3D	Build in support for NTLM/MSN authentication
 -GSSAPI_DESC=3D	Build GSSAPI/Kerberos 5 support
 +POP2_DESC=3D	POP2 Protocol support[obsolete]
 +
 +NLS_USES=3D	gettext
 +NLS_CONFIGURE_ENABLE=3D	nls
 +NLS_CONFIGURE_ON=3D	--enable-nls
 +NLS_CONFIGURE_OFF=3D	--disable-nls
 =20
  PORTDOCS=3D	FAQ FEATURES NEWS NOTES README README.SSL \
  		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
  		esrs-design-notes.html
 =20
 -NO_STAGE=3D	yes
  .include <bsd.port.options.mk>
 =20
  # Pop2 is obsolete
 -.if defined(WITH_POP2)
 +.if ${PORT_OPTIONS:MPOP2}
  CONFIGURE_ARGS+=3D	--enable-POP2
  .endif
 =20
  .if ${PORT_OPTIONS:MX11}
  USE_PYTHON_RUN=3D	yes
  RUN_DEPENDS+=3D	${PYTHON_PKGNAMEPREFIX}tkinter>=3D0:${PORTSDIR}/x11-toolki=
 ts/py-tkinter
 -PLIST_SUB+=3D	X11=3D"" NOX11=3D"@comment "
 +PLIST_SUB+=3D	NOX11=3D"@comment "
  .else
  CONFIGURE_ARGS+=3D	PYTHON=3D:
  SUB_FILES+=3D	fetchmailconf
 -PLIST_SUB+=3D	X11=3D"@comment " NOX11=3D""
 -.endif
 -
 -.if ${PORT_OPTIONS:MNLS}
 -CONFIGURE_ARGS+=3D	--enable-nls
 -PLIST_SUB+=3D	NLS=3D""
 -USES+=3D		gettext
 -.else
 -CONFIGURE_ARGS+=3D	--disable-nls
 -PLIST_SUB+=3D	NLS=3D"@comment "
 +PLIST_SUB+=3D	NOX11=3D""
  .endif
 =20
  .if ${PORT_OPTIONS:MGSSAPI}
 @@ -74,7 +75,7 @@
  .if exists(${LOCALBASE}/lib/libkrb5.a)
  KRB5_HOME=3D	${LOCALBASE}
  .elif exists(/usr/lib/libkrb5.a)
 -KRB5_HOME=3D	/usr
 +KRB5_HOME=3D	${NULLDIR}/usr
  .endif
  .endif
 =20
 @@ -92,29 +93,25 @@
  PORTDOCS+=3D	README.NTLM
  .endif
 =20
 -pre-patch:
 -	@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,=
 g" \
 -		${WRKSRC}/fetchmailconf.py
 -
  post-build:
  	@${MAKE} -C ${WRKSRC} check
 =20
  post-install:
  .if ${PORT_OPTIONS:MDOCS}
 -	${MKDIR} ${DOCSDIR}
 -	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
  .endif
 =20
  .if empty(PORT_OPTIONS:MX11)
 -	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
 -	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
 +	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
 +	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
  .endif
 -	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
 -	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
 -	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample=
  ${PREFIX}/etc/fetchmailrc.sample
 +	${INSTALL} -m 644 ${FILESDIR}/fetchmailrc.sample\
 +		${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
  	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
 -		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
 -		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
 +		${CP} -p ${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample\
 +			${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
 +		${CHMOD} 600 ${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
  	fi
 =20
  	@${ECHO_CMD} ""
 diff -ruN fetchmail/files/pkg-deinstall.in fetchmail_new/files/pkg-deinstal=
 l.in
 --- fetchmail/files/pkg-deinstall.in	1969-12-31 18:00:00.000000000 -0600
 +++ fetchmail_new/files/pkg-deinstall.in	2014-02-07 14:38:25.169663806 -0600
 @@ -0,0 +1,13 @@
 +#!/bin/sh
 +
 +if [ x$2 !=3D xPOST-DEINSTALL ]; then
 +  exit
 +fi
 +
 +if [ -f /var/run/%%PORTNAME%%/fetchmail.pid ] ; then
 +  /bin/rm -f /var/run/%%PORTNAME%%/fetchmail.pid
 +fi
 +
 +/bin/rmdir /var/run/%%PORTNAME%%
 +
 +exit
 diff -ruN fetchmail/files/pkg-install.in fetchmail_new/files/pkg-install.in
 --- fetchmail/files/pkg-install.in	1969-12-31 18:00:00.000000000 -0600
 +++ fetchmail_new/files/pkg-install.in	2014-02-07 14:38:40.988660181 -0600
 @@ -0,0 +1,11 @@
 +#!/bin/sh
 +
 +if [ x$2 !=3D xPOST-INSTALL ]; then
 +  exit
 +fi
 +
 +/bin/mkdir -m 0755 -p /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" %%PREFIX%%/etc/fetchmailrc*
 +
 +exit
 diff -ruN fetchmail/pkg-plist fetchmail_new/pkg-plist
 --- fetchmail/pkg-plist	2014-01-21 17:40:21.000000000 -0600
 +++ fetchmail_new/pkg-plist	2014-02-07 14:38:10.252664469 -0600
 @@ -1,5 +1,8 @@
 +@comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z ma=
 ndree $
  bin/fetchmail
  bin/fetchmailconf
 +man/man1/fetchmail.1.gz
 +man/man1/fetchmailconf.1.gz
  %%NOX11%%libexec/fetchmailconf.py
  %%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
  %%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
 @@ -32,6 +35,3 @@
  @unexec if cmp -s %D/etc/fetchmailrc.sample %D/etc/fetchmailrc; then rm -f=
  %D/etc/fetchmailrc; fi
  etc/fetchmailrc.sample
  @exec if [ ! -f %D/etc/fetchmailrc ] ; then cp -p %D/%F %B/fetchmailrc; fi
 -@cwd /var/run
 -@unexec rm -f %D/fetchmail/fetchmail.pid 2>/dev/null || true
 -@dirrmtry fetchmail
 
 --KsGdsel6WgEHnImy--
 
 --ftEhullJWpWg/VHq
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iF4EAREIAAYFAlL4xqUACgkQR8PgTIRJoTVzRgD+Pkowov0IKMSCmXZmTgBEhXOQ
 q9b7d8TWcsr6ZtxLl5EA/2Mp8bqhOfzaIhJ1EohBEmGfkebCX/3YFtYhewCLzhZm
 =3ETY
 -----END PGP SIGNATURE-----
 
 --ftEhullJWpWg/VHq--

From: Takefu <takefu@airport.fm>
To: Corey Halpin <chalpin@cs.wisc.edu>
Cc: bug-followup@FreeBSD.ORG
Subject: Re: ports/185572: [PATCH] mail/fetchmail: fix StageDir
Date: Tue, 11 Feb 2014 10:42:23 +0900

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 > It looks like something mangled your patchfile.  It had "- -" at the beginning of the line where it should be "-".  After fixing that problem, I was able to apply and test it.  It still fails poudriere testport.  This is because the Makefile contained:
 I'm sorry.
 My mail user agent's plug-in seems to have influenced.
 
 > In the attached revision, I've put all of the manipulation of /var/run/fetchmail into the pkg-(de)install scripts.  Poudriere testport still complains about %%ETCDIR%%rc and $$ETCDIR%%rc.sample -- but I believe these to be false positives.
 In my PC, the problem did not occur.
 
 :-)
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (MingW32)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iEYEARECAAYFAlL5f/8ACgkQxqPFoZw+j1ZgdACguSvc1eESfSDaUIoZxzTQoSO/
 oZUAn1kqX7pZqUllcIkhXzdSl06/0qyk
 =EJp4
 -----END PGP SIGNATURE-----
Responsible-Changed-From-To: freebsd-ports-bugs->rene 
Responsible-Changed-By: rene 
Responsible-Changed-When: Sun Apr 6 11:53:59 UTC 2014 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185572 

From: =?ISO-8859-1?Q?Ren=E9_Ladan?= <rene@freebsd.org>
To: bug-followup@FreeBSD.org, takefu@airport.fm
Cc:  
Subject: Re: ports/185572: [PATCH] mail/fetchmail: fix StageDir
Date: Sun, 06 Apr 2014 13:52:09 +0200

 This is a multi-part message in MIME format.
 --------------050203020203070405000905
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 8bit
 
 The patch looks mostly OK to me, I made some changes (attached):
 - USE_GMAKE and USE_XZ replaced by their USES equivalents
 - removed NULLDIR, portlint is just whining here and this would add
 unneeded complexity
 - simplified post-install target and pkg-plist
 - removed displaying pkg-message from post-install, this is handled
 automatically by the staging framework
 - removed creation of /var/run/fetchmail from pkg-plist, this is already
 done in pkg-install.in
 
 Both a 'poudriere testport' on a 8.4-i386 jail and a 'make check-orphans
 ; make package' as user succeeded without any warnings about leftover or
 missing files.
 
 Ren
 
 --------------050203020203070405000905
 Content-Type: text/x-patch;
  name="mail__fetchmail.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="mail__fetchmail.diff"
 
 Index: Makefile
 ===================================================================
 --- Makefile	(revision 350348)
 +++ Makefile	(working copy)
 @@ -10,18 +10,23 @@
  MAINTAINER=	chalpin@cs.wisc.edu
  COMMENT=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
  
 +LICENSE=	GPLv2 LGPL21
 +LICENSE_COMB=	dual
 +
  RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
  
  # Note USERS can only contain a single word as parts below rely on that.
 -USERS=	${PORTNAME}
 -GROUPS=	${USERS}
 +USERS=		${PORTNAME}
 +GROUPS=		${USERS}
  
 +USES=		gmake shebangfix tar:xz
 +SHEBANG_FILES=	fetchmailconf.py
 +python_OLD_CMD=	/usr/bin/env python
 +
  USE_RC_SUBR=	fetchmail
 -FETCHMAILRC=	${PREFIX}/etc/fetchmailrc
 -SUB_FILES=	pkg-message
 +SUB_FILES=	pkg-message pkg-install pkg-deinstall
 +SUB_LIST+=	USERS=${USERS} GROUPS=${GROUPS} PORTNAME=${PORTNAME}
  
 -USE_XZ=	yes
 -USE_GMAKE=	yes
  GNU_CONFIGURE=	yes
  USE_OPENSSL=	yes
  CONFIGURE_ARGS=	--enable-opie --enable-RPA --enable-SDPS \
 @@ -29,24 +34,26 @@
  		--with-ssl=${OPENSSLBASE}
  
  LDFLAGS+=	-L${LOCALBASE}/lib
 -MAN1=	fetchmail.1
 -MLINKS=	fetchmail.1 fetchmailconf.1
  
 -OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI
 +OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI POP2
  OPTIONS_DEFAULT=	GSSAPI
 +OPTIONS_SUB=	yes
  X11_DESC=	Python/Tkinter dependencies for ``fetchmailconf''
 -NTLM_DESC=	Build in support for NTLM/MSN authentication
 -GSSAPI_DESC=	Build GSSAPI/Kerberos 5 support
 +POP2_DESC=	POP2 Protocol support[obsolete]
  
 +NLS_USES=	gettext
 +NLS_CONFIGURE_ENABLE=	nls
 +NLS_CONFIGURE_ON=	--enable-nls
 +NLS_CONFIGURE_OFF=	--disable-nls
 +
  PORTDOCS=	FAQ FEATURES NEWS NOTES README README.SSL \
  		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
  		esrs-design-notes.html
  
 -NO_STAGE=	yes
  .include <bsd.port.options.mk>
  
  # Pop2 is obsolete
 -.if defined(WITH_POP2)
 +.if ${PORT_OPTIONS:MPOP2}
  CONFIGURE_ARGS+=	--enable-POP2
  .endif
  
 @@ -53,22 +60,13 @@
  .if ${PORT_OPTIONS:MX11}
  USE_PYTHON_RUN=	yes
  RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
 -PLIST_SUB+=	X11="" NOX11="@comment "
 +PLIST_SUB+=	NOX11="@comment "
  .else
  CONFIGURE_ARGS+=	PYTHON=:
  SUB_FILES+=	fetchmailconf
 -PLIST_SUB+=	X11="@comment " NOX11=""
 +PLIST_SUB+=	NOX11=""
  .endif
  
 -.if ${PORT_OPTIONS:MNLS}
 -CONFIGURE_ARGS+=	--enable-nls
 -PLIST_SUB+=	NLS=""
 -USES+=		gettext
 -.else
 -CONFIGURE_ARGS+=	--disable-nls
 -PLIST_SUB+=	NLS="@comment "
 -.endif
 -
  .if ${PORT_OPTIONS:MGSSAPI}
  .if !defined(KRB5_HOME)
  .if exists(${LOCALBASE}/lib/libkrb5.a)
 @@ -92,33 +90,20 @@
  PORTDOCS+=	README.NTLM
  .endif
  
 -pre-patch:
 -	@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \
 -		${WRKSRC}/fetchmailconf.py
 -
  post-build:
  	@${MAKE} -C ${WRKSRC} check
  
  post-install:
  .if ${PORT_OPTIONS:MDOCS}
 -	${MKDIR} ${DOCSDIR}
 -	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
  .endif
  
  .if empty(PORT_OPTIONS:MX11)
 -	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
 -	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
 +	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
 +	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
  .endif
 -	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
 -	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
 -	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
 -	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
 -		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
 -		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
 -	fi
 +	${INSTALL} ${FILESDIR}/fetchmailrc.sample \
 +		${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
  
 -	@${ECHO_CMD} ""
 -	@${CAT} ${PKGMESSAGE}
 -	@${ECHO_CMD} ""
 -
  .include <bsd.port.mk>
 Index: files/pkg-deinstall.in
 ===================================================================
 --- files/pkg-deinstall.in	(revision 0)
 +++ files/pkg-deinstall.in	(working copy)
 @@ -0,0 +1,13 @@
 +#!/bin/sh
 +
 +if [ x$2 != xPOST-DEINSTALL ]; then
 +  exit
 +fi
 +
 +if [ -f /var/run/%%PORTNAME%%/fetchmail.pid ] ; then
 +  /bin/rm -f /var/run/%%PORTNAME%%/fetchmail.pid
 +fi
 +
 +/bin/rmdir /var/run/%%PORTNAME%%
 +
 +exit
 
 Property changes on: files/pkg-deinstall.in
 ___________________________________________________________________
 Added: svn:mime-type
 ## -0,0 +1 ##
 +text/plain
 \ No newline at end of property
 Added: fbsd:nokeywords
 ## -0,0 +1 ##
 +yes
 \ No newline at end of property
 Added: svn:eol-style
 ## -0,0 +1 ##
 +native
 \ No newline at end of property
 Index: files/pkg-install.in
 ===================================================================
 --- files/pkg-install.in	(revision 0)
 +++ files/pkg-install.in	(working copy)
 @@ -0,0 +1,13 @@
 +#!/bin/sh
 +
 +if [ x$2 != xPOST-INSTALL ]; then
 +  exit
 +fi
 +
 +/bin/mkdir -m 0755 -p /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" %%PREFIX%%/etc/fetchmailrc*
 +/usr/sbin/chmod 0600 %%PREFXI%%/etc/fetchmailrc
 +/usr/sbin/chmod 0644 %%PREFXI%%/etc/fetchmailrc.sample
 +
 +exit
 
 Property changes on: files/pkg-install.in
 ___________________________________________________________________
 Added: fbsd:nokeywords
 ## -0,0 +1 ##
 +yes
 \ No newline at end of property
 Added: svn:eol-style
 ## -0,0 +1 ##
 +native
 \ No newline at end of property
 Added: svn:mime-type
 ## -0,0 +1 ##
 +text/plain
 \ No newline at end of property
 Index: pkg-plist
 ===================================================================
 --- pkg-plist	(revision 350348)
 +++ pkg-plist	(working copy)
 @@ -1,5 +1,8 @@
 +@comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z mandree $
  bin/fetchmail
  bin/fetchmailconf
 +man/man1/fetchmail.1.gz
 +man/man1/fetchmailconf.1.gz
  %%NOX11%%libexec/fetchmailconf.py
  %%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
  %%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
 @@ -28,10 +31,6 @@
  %%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.py
  %%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.pyc
  %%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.pyo
 -@exec /usr/bin/install -d -m 755 -o fetchmail -g fetchmail /var/run/fetchmail
  @unexec if cmp -s %D/etc/fetchmailrc.sample %D/etc/fetchmailrc; then rm -f %D/etc/fetchmailrc; fi
  etc/fetchmailrc.sample
  @exec if [ ! -f %D/etc/fetchmailrc ] ; then cp -p %D/%F %B/fetchmailrc; fi
 -@cwd /var/run
 -@unexec rm -f %D/fetchmail/fetchmail.pid 2>/dev/null || true
 -@dirrmtry fetchmail
 
 --------------050203020203070405000905--

From: Takefu <takefu@airport.fm>
To: bug-followup@FreeBSD.org
Cc: =?UTF-8?B?UmVuw6kgTGFkYW4=?= <rene@freebsd.org>
Subject: Re: ports/185572: [PATCH] mail/fetchmail: fix StageDir
Date: Mon, 14 Apr 2014 10:08:46 +0900

 I tried the patch.
 It seems doesn't work pkg-install.
 
 > =3D=3D=3D> Staging rc.d startup script(s)
 > =3D=3D=3D=3D> Items missing from pkg-plist (check-orphans)
 > =3D=3D=3D>  Building package for fetchmail-6.3.26
 > =3D=3D=3D>  Installing for fetchmail-6.3.26
 > =3D=3D=3D>  Checking if mail/fetchmail already installed
 > =3D=3D=3D>   Registering installation for fetchmail-6.3.26
 > =3D=3D=3D> Creating users and/or groups.
 > Using existing group 'fetchmail'.
 > Using existing user 'fetchmail'.
 > /usr/sbin/chmod: not found
 > /usr/sbin/chmod: not found
 > pkg-static: POST-INSTALL script failed
 
 The fix, and then try again.
 
 --- /dev/null	2014-04-14 10:00:04.000000000 +0900
 +++ mail/fetchmail/files/pkg-install.in	2014-04-14 09:59:52.000000000 +09=
 00
 @@ -0,0 +1,13 @@
 +#!/bin/sh
 +
 +if [ x$2 !=3D xPOST-INSTALL ]; then
 +  exit
 +fi
 +
 +/bin/mkdir -m 0755 -p /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" %%PREFIX%%/etc/fetchmailrc*
 +/bin/chmod 0600 %%PREFIX%%/etc/fetchmailrc
 +/bin/chmod 0644 %%PREFIX%%/etc/fetchmailrc.sample
 +
 +exit
 
 
 
 Ren=C3=A9 Ladan =E3=81=95=E3=82=93=E3=81=AF=E6=9B=B8=E3=81=8D=E3=81=BE=E3=
 =81=97=E3=81=9F (2014/04/06 20:52):
 > The patch looks mostly OK to me, I made some changes (attached):
 > - USE_GMAKE and USE_XZ replaced by their USES equivalents
 > - removed NULLDIR, portlint is just whining here and this would add
 > unneeded complexity
 > - simplified post-install target and pkg-plist
 > - removed displaying pkg-message from post-install, this is handled
 > automatically by the staging framework
 > - removed creation of /var/run/fetchmail from pkg-plist, this is alread=
 y
 > done in pkg-install.in
 >=20
 > Both a 'poudriere testport' on a 8.4-i386 jail and a 'make check-orphan=
 s
 > ; make package' as user succeeded without any warnings about leftover o=
 r
 > missing files.
 >=20
 > Ren=C3=A9
 >=20
 
 
 --=20
 
State-Changed-From-To: feedback->closed 
State-Changed-By: rene 
State-Changed-When: Tue Apr 22 16:10:55 UTC 2014 
State-Changed-Why:  
Committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185572 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185572: commit references a PR
Date: Tue, 22 Apr 2014 16:10:55 +0000 (UTC)

 Author: rene
 Date: Tue Apr 22 16:10:50 2014
 New Revision: 351860
 URL: http://svnweb.freebsd.org/changeset/ports/351860
 QAT: https://qat.redports.org/buildarchive/r351860/
 
 Log:
   - Add license information [1]
   - Fix shebang for fetchmailconf.py [1]
   - Convert POP2 knob into an option [1]
   - Use option helpers [1]
   - Fix staging of documentation and X11 files [1]
   - Simplify post-install target and pkg-plist
   - Replace USE_GMAKE and USE_XZ by their USES equivalents
   - Do not display pkg-message in post-install
   - Do not create /var/run/fetchmail in pkg-plist
   
   PR:		ports/185572 [1]
   Submitted by:	Takefu <takefu@airport.fm>
   Approved by:	maintainer timeout (<chalpin@cs.wisc.edu>)
 
 Added:
   head/mail/fetchmail/files/pkg-deinstall.in   (contents, props changed)
   head/mail/fetchmail/files/pkg-install.in   (contents, props changed)
 Modified:
   head/mail/fetchmail/Makefile
   head/mail/fetchmail/pkg-plist
 
 Modified: head/mail/fetchmail/Makefile
 ==============================================================================
 --- head/mail/fetchmail/Makefile	Tue Apr 22 16:03:28 2014	(r351859)
 +++ head/mail/fetchmail/Makefile	Tue Apr 22 16:10:50 2014	(r351860)
 @@ -10,18 +10,23 @@ MASTER_SITES=	SF/${PORTNAME}/branch_6.3/
  MAINTAINER=	chalpin@cs.wisc.edu
  COMMENT=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
  
 +LICENSE=	GPLv2 LGPL21
 +LICENSE_COMB=	dual
 +
  RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
  
  # Note USERS can only contain a single word as parts below rely on that.
 -USERS=	${PORTNAME}
 -GROUPS=	${USERS}
 +USERS=		${PORTNAME}
 +GROUPS=		${USERS}
 +
 +USES=		gmake shebangfix tar:xz
 +SHEBANG_FILES=	fetchmailconf.py
 +python_OLD_CMD=	/usr/bin/env python
  
  USE_RC_SUBR=	fetchmail
 -FETCHMAILRC=	${PREFIX}/etc/fetchmailrc
 -SUB_FILES=	pkg-message
 +SUB_FILES=	pkg-message pkg-install pkg-deinstall
 +SUB_LIST+=	USERS=${USERS} GROUPS=${GROUPS} PORTNAME=${PORTNAME}
  
 -USE_XZ=	yes
 -USE_GMAKE=	yes
  GNU_CONFIGURE=	yes
  USE_OPENSSL=	yes
  CONFIGURE_ARGS=	--enable-opie --enable-RPA --enable-SDPS \
 @@ -29,44 +34,37 @@ CONFIGURE_ARGS=	--enable-opie --enable-R
  		--with-ssl=${OPENSSLBASE}
  
  LDFLAGS+=	-L${LOCALBASE}/lib
 -MAN1=	fetchmail.1
 -MLINKS=	fetchmail.1 fetchmailconf.1
  
 -OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI
 +OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI POP2
  OPTIONS_DEFAULT=	GSSAPI
 +OPTIONS_SUB=	yes
  X11_DESC=	Python/Tkinter dependencies for ``fetchmailconf''
 -NTLM_DESC=	Build in support for NTLM/MSN authentication
 -GSSAPI_DESC=	Build GSSAPI/Kerberos 5 support
 +POP2_DESC=	POP2 Protocol support[obsolete]
 +
 +NLS_USES=	gettext
 +NLS_CONFIGURE_ENABLE=	nls
 +NLS_CONFIGURE_ON=	--enable-nls
 +NLS_CONFIGURE_OFF=	--disable-nls
  
  PORTDOCS=	FAQ FEATURES NEWS NOTES README README.SSL \
  		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
  		esrs-design-notes.html
  
 -NO_STAGE=	yes
  .include <bsd.port.options.mk>
  
  # Pop2 is obsolete
 -.if defined(WITH_POP2)
 +.if ${PORT_OPTIONS:MPOP2}
  CONFIGURE_ARGS+=	--enable-POP2
  .endif
  
  .if ${PORT_OPTIONS:MX11}
  USE_PYTHON_RUN=	yes
  RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
 -PLIST_SUB+=	X11="" NOX11="@comment "
 +PLIST_SUB+=	NOX11="@comment "
  .else
  CONFIGURE_ARGS+=	PYTHON=:
  SUB_FILES+=	fetchmailconf
 -PLIST_SUB+=	X11="@comment " NOX11=""
 -.endif
 -
 -.if ${PORT_OPTIONS:MNLS}
 -CONFIGURE_ARGS+=	--enable-nls
 -PLIST_SUB+=	NLS=""
 -USES+=		gettext
 -.else
 -CONFIGURE_ARGS+=	--disable-nls
 -PLIST_SUB+=	NLS="@comment "
 +PLIST_SUB+=	NOX11=""
  .endif
  
  .if ${PORT_OPTIONS:MGSSAPI}
 @@ -92,33 +90,20 @@ CONFIGURE_ARGS+=	--enable-NTLM
  PORTDOCS+=	README.NTLM
  .endif
  
 -pre-patch:
 -	@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \
 -		${WRKSRC}/fetchmailconf.py
 -
  post-build:
  	@${MAKE} -C ${WRKSRC} check
  
  post-install:
  .if ${PORT_OPTIONS:MDOCS}
 -	${MKDIR} ${DOCSDIR}
 -	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
  .endif
  
  .if empty(PORT_OPTIONS:MX11)
 -	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
 -	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
 +	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
 +	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
  .endif
 -	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
 -	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
 -	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
 -	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
 -		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
 -		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
 -	fi
 -
 -	@${ECHO_CMD} ""
 -	@${CAT} ${PKGMESSAGE}
 -	@${ECHO_CMD} ""
 +	${INSTALL} ${FILESDIR}/fetchmailrc.sample \
 +		${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
  
  .include <bsd.port.mk>
 
 Added: head/mail/fetchmail/files/pkg-deinstall.in
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/mail/fetchmail/files/pkg-deinstall.in	Tue Apr 22 16:10:50 2014	(r351860)
 @@ -0,0 +1,13 @@
 +#!/bin/sh
 +
 +if [ x$2 != xPOST-DEINSTALL ]; then
 +  exit
 +fi
 +
 +if [ -f /var/run/%%PORTNAME%%/fetchmail.pid ] ; then
 +  /bin/rm -f /var/run/%%PORTNAME%%/fetchmail.pid
 +fi
 +
 +/bin/rmdir /var/run/%%PORTNAME%%
 +
 +exit
 
 Added: head/mail/fetchmail/files/pkg-install.in
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/mail/fetchmail/files/pkg-install.in	Tue Apr 22 16:10:50 2014	(r351860)
 @@ -0,0 +1,13 @@
 +#!/bin/sh
 +
 +if [ x$2 != xPOST-INSTALL ]; then
 +  exit
 +fi
 +
 +/bin/mkdir -m 0755 -p /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" /var/run/%%PORTNAME%%
 +/usr/sbin/chown "%%USERS%%:%%GROUPS%%" %%PREFIX%%/etc/fetchmailrc*
 +/bin/chmod 0600 %%PREFXI%%/etc/fetchmailrc
 +/bin/chmod 0644 %%PREFXI%%/etc/fetchmailrc.sample
 +
 +exit
 
 Modified: head/mail/fetchmail/pkg-plist
 ==============================================================================
 --- head/mail/fetchmail/pkg-plist	Tue Apr 22 16:03:28 2014	(r351859)
 +++ head/mail/fetchmail/pkg-plist	Tue Apr 22 16:10:50 2014	(r351860)
 @@ -1,5 +1,8 @@
 +@comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z mandree $
  bin/fetchmail
  bin/fetchmailconf
 +man/man1/fetchmail.1.gz
 +man/man1/fetchmailconf.1.gz
  %%NOX11%%libexec/fetchmailconf.py
  %%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
  %%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
 @@ -28,10 +31,6 @@ bin/fetchmailconf
  %%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.py
  %%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.pyc
  %%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.pyo
 -@exec /usr/bin/install -d -m 755 -o fetchmail -g fetchmail /var/run/fetchmail
  @unexec if cmp -s %D/etc/fetchmailrc.sample %D/etc/fetchmailrc; then rm -f %D/etc/fetchmailrc; fi
  etc/fetchmailrc.sample
  @exec if [ ! -f %D/etc/fetchmailrc ] ; then cp -p %D/%F %B/fetchmailrc; fi
 -@cwd /var/run
 -@unexec rm -f %D/fetchmail/fetchmail.pid 2>/dev/null || true
 -@dirrmtry fetchmail
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
