aboutsummaryrefslogtreecommitdiffstats
path: root/net/portfwd/Makefile
blob: 8392a8155136e1ba0fb9011f0a4e58fc0645c14a (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
# New ports collection makefile for:    portfwd
# Date created:         Sun May 5 16:12:30 CET 2002
# Whom:                 Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#

PORTNAME=   portfwd
PORTVERSION=    0.28
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ale@FreeBSD.org
COMMENT=    A Port Forwarding Daemon

GNU_CONFIGURE=  yes
USE_GMAKE=  yes

MAN5=   portfwd.cfg.5
MAN8=   portfwd.8

post-patch:
    @${ECHO_CMD} -n > ${WRKSRC}/config/missing
    @${REINPLACE_CMD} -e "s|-Wall -ggdb -O3|${CFLAGS}|g" \
        ${WRKSRC}/src/Makefile.in
    @${REINPLACE_CMD} -e "s|-Wall -g -O3|${CFLAGS}|g" \
        ${WRKSRC}/tools/Makefile.in

.if defined(NOPORTDOCS)
post-configure:
    @${REINPLACE_CMD} -e "s|\(^install-data-am:\) install-docDATA|\1|g" \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e \
        "s|\(^install-data-am: install-man\) install-docDATA|\1|g" \
        ${WRKSRC}/doc/Makefile
.endif

post-install:
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/cfg/*.cfg ${EXAMPLESDIR}

.include <bsd.port.mk>