diff options
author | garga <garga@FreeBSD.org> | 2005-09-30 12:05:40 +0000 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-09-30 12:05:40 +0000 |
commit | 751b4feb7e17402bdbaf7688fb394b563a8913d1 (patch) | |
tree | 5c5a356189e2cdc51871c72df0ee6f5eaa8240a4 /net/rinetd | |
parent | 3d29ed5d4e9d0eb987980ca9408100edb82ef729 (diff) | |
download | FreeBSD-ports-751b4feb7e17402bdbaf7688fb394b563a8913d1.zip FreeBSD-ports-751b4feb7e17402bdbaf7688fb394b563a8913d1.tar.gz |
- Make portlint happy
- Use USE_RC_SUBR facility
- Rename patch-a* files
- Remove one uneeded patch and use REINPLACE_CMD instead
- Take maintainership
Diffstat (limited to 'net/rinetd')
-rw-r--r-- | net/rinetd/Makefile | 14 | ||||
-rw-r--r-- | net/rinetd/files/patch-Makefile (renamed from net/rinetd/files/patch-aa) | 0 | ||||
-rw-r--r-- | net/rinetd/files/patch-ab | 12 | ||||
-rw-r--r-- | net/rinetd/files/patch-rinetd.c (renamed from net/rinetd/files/patch-ac) | 0 | ||||
-rw-r--r-- | net/rinetd/files/rinetd.sh.in (renamed from net/rinetd/files/rinetd.sh) | 0 | ||||
-rw-r--r-- | net/rinetd/pkg-message | 10 |
6 files changed, 10 insertions, 26 deletions
diff --git a/net/rinetd/Makefile b/net/rinetd/Makefile index 3029ccf..f4aaccb 100644 --- a/net/rinetd/Makefile +++ b/net/rinetd/Makefile @@ -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} diff --git a/net/rinetd/files/patch-aa b/net/rinetd/files/patch-Makefile index 1e285ad..1e285ad 100644 --- a/net/rinetd/files/patch-aa +++ b/net/rinetd/files/patch-Makefile diff --git a/net/rinetd/files/patch-ab b/net/rinetd/files/patch-ab deleted file mode 100644 index 084433f..0000000 --- a/net/rinetd/files/patch-ab +++ /dev/null @@ -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, diff --git a/net/rinetd/files/patch-ac b/net/rinetd/files/patch-rinetd.c index c7797d5..c7797d5 100644 --- a/net/rinetd/files/patch-ac +++ b/net/rinetd/files/patch-rinetd.c diff --git a/net/rinetd/files/rinetd.sh b/net/rinetd/files/rinetd.sh.in index dc86c53..dc86c53 100644 --- a/net/rinetd/files/rinetd.sh +++ b/net/rinetd/files/rinetd.sh.in diff --git a/net/rinetd/pkg-message b/net/rinetd/pkg-message index 81a5e47..eec1339 100644 --- a/net/rinetd/pkg-message +++ b/net/rinetd/pkg-message @@ -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 +# |