Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 2015 20:35:54 +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: r403161 - head/comms/ser2net
Message-ID:  <201512062035.tB6KZsWJ046945@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Dec  6 20:35:54 2015
New Revision: 403161
URL: https://svnweb.freebsd.org/changeset/ports/403161

Log:
  - Add LICENSE_FILE
  - Don't install install instructions
  - Simplify installation
  - Switch to options helpers

Modified:
  head/comms/ser2net/Makefile

Modified: head/comms/ser2net/Makefile
==============================================================================
--- head/comms/ser2net/Makefile	Sun Dec  6 20:35:45 2015	(r403160)
+++ head/comms/ser2net/Makefile	Sun Dec  6 20:35:54 2015	(r403161)
@@ -10,18 +10,19 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Allows to access serial ports over IP
 
 LICENSE=	GPLv2 # (or later)
-
-OPTIONS_DEFINE=	DOCS
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 USE_RC_SUBR=	${PORTNAME}
 
 USES=		autoreconf libtool
 GNU_CONFIGURE=	yes
 
-PORTDOCS=	AUTHORS ChangeLog INSTALL NEWS README
+PORTDOCS=	AUTHORS ChangeLog NEWS README
 PLIST_FILES=	sbin/${PORTNAME} etc/${PORTNAME}.conf.sample \
 		man/man8/${PORTNAME}.8.gz
 
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 .for i in ${PORTNAME}.c ${PORTNAME}.8
 	@${REINPLACE_CMD} -e \
@@ -33,12 +34,14 @@ post-patch:
 .endfor
 
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
-		${STAGEDIR}${PREFIX}/sbin)
-	(cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.8 \
-		${STAGEDIR}${MAN8PREFIX}/man/man8)
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTNAME}.conf \
-		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample)
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 \
+		${STAGEDIR}${MAN8PREFIX}/man/man8
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
+		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
 	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})



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