Chase base r352518:

Reduce calls to close(2) at startup through the use of closefrom(2).

Submitted by:		pawel.biernacki@gmail.com (based on)
Obtained from:		base r352518
This commit is contained in:
Cy Schubert
2019-09-19 20:15:58 +00:00
parent be67ffd1eb
commit 5425c19fe6
2 changed files with 8 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
PORTNAME= ntp
PORTVERSION= 4.3.99
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net ipv6
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ \
http://archive.ntp.org/ntp4/ntp-dev/
@@ -78,6 +78,9 @@ post-extract:
@${TOUCH} ${WRKSRC}/scripts/build/checkHtmlFileDates
@${CHMOD} +x ${WRKSRC}/scripts/build/checkHtmlFileDates
post-configure:
@${ECHO_CMD} '#define HAVE_CLOSEFROM 1' >> ${WRKSRC}/config.h
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${EXAMPLESDIR}

View File

@@ -3,7 +3,7 @@
PORTNAME= ntp
PORTVERSION= 4.2.8p13
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net ipv6
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
http://archive.ntp.org/ntp4/ntp-4.2/ \
@@ -79,6 +79,9 @@ post-extract:
@${TOUCH} ${WRKSRC}/scripts/build/checkHtmlFileDates
@${CHMOD} +x ${WRKSRC}/scripts/build/checkHtmlFileDates
post-configure:
@${ECHO_CMD} '#define HAVE_CLOSEFROM 1' >> ${WRKSRC}/config.h
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${EXAMPLESDIR}