aboutsummaryrefslogtreecommitdiffstats
path: root/net/pbnc/Makefile
blob: 6db78f2b98ec05821277b2aec691d431cc070218 (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
# Ports collection makefile for:  pbnc
# Date created:   03 Apr 2004
# Whom:       hrs
#
# $FreeBSD$

PORTNAME=   pbnc
PORTVERSION=    1.0
CATEGORIES= net
MASTER_SITES=   http://duncanthrax.net/pbnc/
DISTNAME=   pbnc

MAINTAINER= hrs@FreeBSD.org
COMMENT=    Simple userspace TCP port bouncer

RUN_DEPENDS=    ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask

NO_BUILD=   yes
PLIST=      ${WRKSRC}/pkg-plist

CONFIGDIR=  etc
CONFIG_FILES=   pbnc.cfg
SCRIPTDIR=  bin
SCRIPT_FILES=   pbnc.pl
DOC_FILES=  pbnc.readme

pre-install:
    (${ECHO_CMD} "${CONFIGDIR}/${CONFIG_FILES}"; \
    ${ECHO_CMD} "${SCRIPTDIR}/${SCRIPT_FILES}"; ) > ${PLIST}
.if !defined(NOPORTDOCS)
    (for F in ${DOC_FILES}; do \
            ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
        done;\
    ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST}
.endif

do-install:
    ${INSTALL_SCRIPT} ${SCRIPT_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${SCRIPTDIR}
    ${INSTALL_DATA} ${CONFIG_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${CONFIGDIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${DOC_FILES:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

.include <bsd.port.mk>