Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2016 23:05:43 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r412076 - head/mail/renattach
Message-ID:  <201603282305.u2SN5h5b054951@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Mar 28 23:05:43 2016
New Revision: 412076
URL: https://svnweb.freebsd.org/changeset/ports/412076

Log:
  - Add LICENSE
  - Switch to options helpers
  - Install more documentation
  - Switch to @sample

Modified:
  head/mail/renattach/Makefile

Modified: head/mail/renattach/Makefile
==============================================================================
--- head/mail/renattach/Makefile	Mon Mar 28 23:05:17 2016	(r412075)
+++ head/mail/renattach/Makefile	Mon Mar 28 23:05:43 2016	(r412076)
@@ -3,17 +3,22 @@
 
 PORTNAME=	renattach
 PORTVERSION=	1.2.4
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://www.pc-tools.net/files/unix/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Rename or remove certain attachments or kill entire messages
 
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 GNU_CONFIGURE=	yes
 
-PORTDOCS=	INSTALL
-PLIST_FILES=	bin/renattach etc/renattach.conf.ex man/man1/renattach.1.gz
+PORTDOCS=	AUTHORS ChangeLog INSTALL NEWS README
+PLIST_FILES=	bin/renattach \
+		"@sample etc/renattach.conf.sample" \
+		man/man1/renattach.1.gz
 
 OPTIONS_DEFINE=	DOCS
 
@@ -21,10 +26,11 @@ post-extract:
 	@${RM} -f ${WRKSRC}/src/getopt*
 
 post-install:
+	${MV} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.ex \
+		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-	@${ECHO_MSG} "===================="
-	@${ECHO_MSG} "Check with ${DOCSDIR}/INSTALL"
-	@${ECHO_MSG} "After that you may need to adjust renattach.conf to your needs"
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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