1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/net/rinetd/Makefile
Renato Botelho 22a440235e rinetd fails to close the configuration file (fopen twice, fclose only once)
when reading its configuration. Therefore on every configuration reload
(through SIGHUP) one file descriptor is lost. In an environment where this is
done frequently (e.g. to re-lookup DNS names) the system will run out of file
descriptors soon (kern.maxfiles) until rinetd crashes.

PR:		ports/162673
Submitted by:	Michael Gmelin <freebsd@grem.de>
Feature safe:	yes
2011-11-19 14:31:23 +00:00

45 lines
911 B
Makefile

# New ports collection makefile for: rinetd
# Date created: 23 Dec 1997
# Whom: alexp
#
# $FreeBSD$
#
PORTNAME= rinetd
PORTVERSION= 0.62
PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= http://www.boutell.com/rinetd/http/ \
${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
DISTNAME= rinetd
MAINTAINER= garga@FreeBSD.org
COMMENT= A simple TCP port redirector
WRKSRC= ${WRKDIR}/rinetd/
MAKE_JOBS_SAFE= yes
MAN8= rinetd.8
PORTDOCS= index.html
PLIST_FILES= sbin/rinetd
USE_RC_SUBR= rinetd.sh
post-patch:
@${REINPLACE_CMD} -E "s,(/etc/rinetd.conf),${PREFIX}\1," \
${WRKSRC}/rinetd.[8c]
@${REINPLACE_CMD} -E "s,/usr(/sbin/rinetd),${PREFIX}\1," \
${WRKSRC}/rinetd.8
@${REINPLACE_CMD} -e "s/cc /${CC} /g" ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>