blob: 9c1f9606806ae97002ed74e7a07d4b1c29ba6e8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Devon H. O'Dell <devon.odell@coyotepoint.com>
# $FreeBSD$
PORTNAME= ser2net
PORTVERSION= 2.10.0
CATEGORIES= comms net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Allows to access serial ports over IP
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USE_RC_SUBR= ${PORTNAME}
USES= autoreconf libtool
GNU_CONFIGURE= yes
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 \
'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:
${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})
.endfor
.include <bsd.port.mk>
|