Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2012 15:30:59 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306809 - in head/comms/ser2net: . files
Message-ID:  <201211011530.qA1FUxGc020895@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Nov  1 15:30:59 2012
New Revision: 306809
URL: http://svn.freebsd.org/changeset/ports/306809

Log:
  - Update to version 2.7
  - Add option DOCS
  - Switch to PLIST_FILES
  
  PR:		ports/172220
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Deleted:
  head/comms/ser2net/files/patch-ser2net.conf
  head/comms/ser2net/pkg-plist
Modified:
  head/comms/ser2net/Makefile
  head/comms/ser2net/distinfo

Modified: head/comms/ser2net/Makefile
==============================================================================
--- head/comms/ser2net/Makefile	Thu Nov  1 14:47:37 2012	(r306808)
+++ head/comms/ser2net/Makefile	Thu Nov  1 15:30:59 2012	(r306809)
@@ -2,29 +2,47 @@
 # $FreeBSD$
 
 PORTNAME=	ser2net
-PORTVERSION=	2.5
+PORTVERSION=	2.7
 CATEGORIES=	comms net
 MASTER_SITES=	SF
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Allows to access serial ports over IP
 
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	DOCS
+
+USE_RC_SUBR=	${PORTNAME}
+
 GNU_CONFIGURE=	yes
+
 MAN8=		${PORTNAME}.8
-USE_RC_SUBR=	${PORTNAME}
+PORTDOCS=	AUTHORS ChangeLog INSTALL NEWS README
+PLIST_FILES=	sbin/${PORTNAME} etc/${PORTNAME}.conf.sample
 
-DOCS=		AUTHORS COPYING ChangeLog INSTALL NEWS README
+.include <bsd.port.options.mk>
 
 post-patch:
-	@${REINPLACE_CMD} -e's!/etc!${PREFIX}/etc!g' ${WRKSRC}/${PORTNAME}.c ${WRKSRC}/${PORTNAME}.8
+.for i in ${PORTNAME}.c ${PORTNAME}.8
+	@${REINPLACE_CMD} -e \
+		's!/etc!${PREFIX}/etc!g' ${WRKSRC}/${i}
+.endfor
+.for i in ${PORTNAME}.conf
+	@${REINPLACE_CMD} -e \
+		's!ttyS!cuad!g' ${WRKSRC}/${i}
+.endfor
 
 do-install:
-.if !defined(NOPORTDOCS)
+	(cd ${WRKSRC} \
+		&& ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/sbin \
+		&& ${INSTALL_MAN} ${PORTNAME}.8 ${MAN8PREFIX}/man/man8 \
+		&& ${INSTALL_DATA} ${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+.for i in ${PORTDOCS}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+.endfor
 .endif
-	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/
-	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
-	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8/
 
 .include <bsd.port.mk>

Modified: head/comms/ser2net/distinfo
==============================================================================
--- head/comms/ser2net/distinfo	Thu Nov  1 14:47:37 2012	(r306808)
+++ head/comms/ser2net/distinfo	Thu Nov  1 15:30:59 2012	(r306809)
@@ -1,2 +1,2 @@
-SHA256 (ser2net-2.5.tar.gz) = fb7bf30c967b4d64f12e6d81f99df3d3e65bb31a919625ec2820e68f65dcef1c
-SIZE (ser2net-2.5.tar.gz) = 343105
+SHA256 (ser2net-2.7.tar.gz) = 620265d5d4a59714dbb8645d1698a34135077c735e018ef040d57e7d3a621088
+SIZE (ser2net-2.7.tar.gz) = 355064



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