1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

- Make portlint happy

- Use USE_RC_SUBR facility
- Rename patch-a* files
- Remove one uneeded patch and use REINPLACE_CMD instead
- Take maintainership
This commit is contained in:
Renato Botelho 2005-09-30 12:05:40 +00:00
parent a23c31e2ad
commit 29cce7361b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143833
6 changed files with 10 additions and 26 deletions

View File

@ -11,25 +11,23 @@ CATEGORIES= net
MASTER_SITES= http://www.boutell.com/rinetd/http/
DISTNAME= rinetd
MAINTAINER= ports@FreeBSD.org
MAINTAINER= garga@FreeBSD.org
COMMENT= A simple TCP port redirector
WRKSRC= ${WRKDIR}/rinetd/
MAN8= rinetd.8
PORTDOCS= index.html
PLIST_FILES= etc/rc.d/rinetd.sh sbin/rinetd
PLIST_FILES= sbin/rinetd
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
USE_RC_SUBR= rinetd.sh
USE_REINPLACE= yes
post-patch:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/rinetd.sh > ${WRKDIR}/rinetd.sh
@${REINPLACE_CMD} -E "s,(/etc/rinetd.conf),${PREFIX}\1," \
${WRKSRC}/rinetd.c
post-install:
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/rinetd.sh ${PREFIX}/etc/rc.d/rinetd.sh
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}

View File

@ -1,12 +0,0 @@
diff -u ../rinetd.orig/rinetd.c ./rinetd.c
--- ../rinetd.orig/rinetd.c Mon Mar 1 13:43:35 1999
+++ rinetd.c Fri Jun 11 19:40:05 1999
@@ -214,7 +214,7 @@
};
RinetdOptions options = {
- "/etc/rinetd.conf"
+ "/usr/local/etc/rinetd.conf"
};
int readArgs (int argc,

View File

@ -1,10 +1,8 @@
***********************************
* !!!!!!!!!!! WARNING !!!!!!!!!!! *
***********************************
Since 0.62_1, rinetd startup script is now enabled/disabled via
rc.subr.
Available variables:
#
# You can use the following parameters on /etc/rc.conf:
#
# rinetd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable rinetd
# rinetd_flags (str): Set to "" by default.
# Extra flags passed to start command
#