aboutsummaryrefslogtreecommitdiffstats
path: root/net/rinetd/Makefile
blob: e46f8d107a67752562be9180d6b9a98aa555a1bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: 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=    Simple TCP port redirector

LICENSE=    GPLv2

OPTIONS_DEFINE= DOCS

WRKSRC=     ${WRKDIR}/rinetd-${PORTVERSION}

USES=       dos2unix

PORTDOCS=   index.html
PLIST_FILES=    sbin/rinetd \
        man/man8/rinetd.8.gz

USE_RC_SUBR=    rinetd

post-extract:
    @${MV} ${WRKDIR}/rinetd ${WRKSRC}

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:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>