mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
96998c6a22
- Support staging PR: ports/181063 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# Created by: Devon H. O'Dell <devon.odell@coyotepoint.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ser2net
|
|
PORTVERSION= 2.9.1
|
|
CATEGORIES= comms net
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Allows to access serial ports over IP
|
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
USE_AUTOTOOLS= libtoolize aclocal automake autoconf
|
|
LIBTOOLIZE_ARGS=--copy --force
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
PORTDOCS= AUTHORS ChangeLog INSTALL NEWS README
|
|
PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf.sample \
|
|
man/man8/${PORTNAME}.8.gz
|
|
|
|
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:
|
|
(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)
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${PORTDOCS}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|