View | Details | Raw Unified | Return to bug 172220
Collapse All | Expand All

(-)comms/ser2net/Makefile (-9 / +27 lines)
Lines 2-30 Link Here
2
# $FreeBSD: ports/comms/ser2net/Makefile,v 1.5 2012/09/22 15:38:49 tabthorpe Exp $
2
# $FreeBSD: ports/comms/ser2net/Makefile,v 1.5 2012/09/22 15:38:49 tabthorpe Exp $
3
3
4
PORTNAME=	ser2net
4
PORTNAME=	ser2net
5
PORTVERSION=	2.5
5
PORTVERSION=	2.7
6
CATEGORIES=	comms net
6
CATEGORIES=	comms net
7
MASTER_SITES=	SF
7
MASTER_SITES=	SF
8
8
9
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
10
COMMENT=	Allows to access serial ports over IP
10
COMMENT=	Allows to access serial ports over IP
11
11
12
LICENSE=	GPLv2 # (or later)
13
14
OPTIONS_DEFINE=	DOCS
15
16
USE_RC_SUBR=	${PORTNAME}
17
12
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
19
13
MAN8=		${PORTNAME}.8
20
MAN8=		${PORTNAME}.8
14
USE_RC_SUBR=	${PORTNAME}
21
PORTDOCS=	AUTHORS ChangeLog INSTALL NEWS README
22
PLIST_FILES=	sbin/${PORTNAME} etc/${PORTNAME}.conf.sample
15
23
16
DOCS=		AUTHORS COPYING ChangeLog INSTALL NEWS README
24
.include <bsd.port.options.mk>
17
25
18
post-patch:
26
post-patch:
19
	@${REINPLACE_CMD} -e's!/etc!${PREFIX}/etc!g' ${WRKSRC}/${PORTNAME}.c ${WRKSRC}/${PORTNAME}.8
27
.for i in ${PORTNAME}.c ${PORTNAME}.8
28
	@${REINPLACE_CMD} -e \
29
		's!/etc!${PREFIX}/etc!g' ${WRKSRC}/${i}
30
.endfor
31
.for i in ${PORTNAME}.conf
32
	@${REINPLACE_CMD} -e \
33
		's!ttyS!cuad!g' ${WRKSRC}/${i}
34
.endfor
20
35
21
do-install:
36
do-install:
22
.if !defined(NOPORTDOCS)
37
	(cd ${WRKSRC} \
38
		&& ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/sbin \
39
		&& ${INSTALL_MAN} ${PORTNAME}.8 ${MAN8PREFIX}/man/man8 \
40
		&& ${INSTALL_DATA} ${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample)
41
.if ${PORT_OPTIONS:MDOCS}
23
	@${MKDIR} ${DOCSDIR}
42
	@${MKDIR} ${DOCSDIR}
24
	@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
43
.for i in ${PORTDOCS}
44
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
45
.endfor
25
.endif
46
.endif
26
	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/
27
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
28
	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8/
29
47
30
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)comms/ser2net/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (ser2net-2.5.tar.gz) = fb7bf30c967b4d64f12e6d81f99df3d3e65bb31a919625ec2820e68f65dcef1c
1
SHA256 (ser2net-2.7.tar.gz) = 620265d5d4a59714dbb8645d1698a34135077c735e018ef040d57e7d3a621088
2
SIZE (ser2net-2.5.tar.gz) = 343105
2
SIZE (ser2net-2.7.tar.gz) = 355064
(-)comms/ser2net/files/patch-ser2net.conf (-37 lines)
Lines 1-37 Link Here
1
--- ser2net.conf.old	Sun Sep  3 16:41:58 2006
2
+++ ser2net.conf	Sun Sep  3 16:42:58 2006
3
@@ -69,19 +69,19 @@
4
 
5
 BANNER:banner3:this is ser2net TCP port \p device \d  serial parms \s\r\n
6
 
7
-2001:raw:600:/dev/ttyS0:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
8
-#2002:raw:600:/dev/ttyS1:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
9
-2003:raw:5:/dev/ttyS2:9600
10
-2004:raw:5:/dev/ttyS3:115200
11
-2005:raw:5:/dev/ttyS4:9600
12
-2006:raw:5:/dev/ttyS5:9600
13
-2007:raw:5:/dev/ttyS6:9600
14
-3001:telnet:0:/dev/ttyS0:19200 remctl banner1
15
-3011:telnet:3:/dev/ttyS0:19200 banner2
16
-#3002:telnet:0:/dev/ttyS1:9600
17
-3003:telnet:0:/dev/ttyS2:9600 banner3
18
-3004:telnet:0:/dev/ttyS3:115200
19
-3005:telnet:0:/dev/ttyS4:9600
20
-3006:telnet:0:/dev/ttyS5:9600
21
-3007:telnet:0:/dev/ttyS6:9600
22
+2001:raw:600:/dev/cuad0:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
23
+#2002:raw:600:/dev/cuad1:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
24
+2003:raw:5:/dev/cuad2:9600
25
+2004:raw:5:/dev/cuad3:115200
26
+2005:raw:5:/dev/cuad4:9600
27
+2006:raw:5:/dev/cuad5:9600
28
+2007:raw:5:/dev/cuad6:9600
29
+3001:telnet:0:/dev/cuad0:19200 remctl banner1
30
+3011:telnet:3:/dev/cuad0:19200 banner2
31
+#3002:telnet:0:/dev/cuad1:9600
32
+3003:telnet:0:/dev/cuad2:9600 banner3
33
+3004:telnet:0:/dev/cuad3:115200
34
+3005:telnet:0:/dev/cuad4:9600
35
+3006:telnet:0:/dev/cuad5:9600
36
+3007:telnet:0:/dev/cuad6:9600
37
 5001:rawlp:10:/dev/lp0
(-)comms/ser2net/pkg-plist (-9 lines)
Lines 1-9 Link Here
1
sbin/ser2net
2
etc/ser2net.conf.sample
3
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
4
%%PORTDOCS%%%%DOCSDIR%%/COPYING
5
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
6
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
7
%%PORTDOCS%%%%DOCSDIR%%/NEWS
8
%%PORTDOCS%%%%DOCSDIR%%/README
9
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 172220