aboutsummaryrefslogtreecommitdiffstats
path: root/security/doorman/Makefile
blob: ee7a54814897a7baaf2145dc67b1d533d05d9548 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:    doorman
# Date created:             08 August 2004
# Whom:                 Aaron Dalton <aaron@daltons.ca>
#
# $FreeBSD$
#

PORTNAME=   doorman
PORTVERSION=    0.8
CATEGORIES= security
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= doorman
EXTRACT_SUFX=   .tgz

MAINTAINER= aaron@daltons.ca
COMMENT=    A Port Knocking implementation, both daemon and client

BUILD_DEPENDS=  lsof:${PORTSDIR}/sysutils/lsof
RUN_DEPENDS=    ${BUILD_DEPENDS}

PKGMESSAGE= ${WRKDIR}/pkg-message

# Default to db4
WITH_BDB_VER?=  4

.if ${WITH_BDB_VER} == 2
LIB_DEPENDS=    db2.0:${PORTSDIR}/databases/db2
.elif ${WITH_BDB_VER} == 3
LIB_DEPENDS=    db3.3:${PORTSDIR}/databases/db3
.elif ${WITH_BDB_VER} == 4
LIB_DEPENDS=    db4.0:${PORTSDIR}/databases/db4
.elif ${WITH_BDB_VER} == 41
LIB_DEPENDS=    db41.1:${PORTSDIR}/databases/db41
.elif ${WITH_BDB_VER} == 42
LIB_DEPENDS=    db-4.2.2:${PORTSDIR}/databases/db42
.else
.error WITH_BDB_VER must be one between 2, 3, 4, 41 and 42
.endif

MAN1=   knock.1
MAN5=   knockcf.5 doormand.cf.5 guestlist.5
MAN8=   doormand.8

GNU_CONFIGURE=  yes

pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} " This port currently requires BerkeleyDB, has only been tested with the "
    @${ECHO_MSG} " db4.x releases, and builds with db4 by default.  If you wish to use a "
    @${ECHO_MSG} " specific version please use the WITH_BDB_VER=x argument using the "
    @${ECHO_MSG} " values 2, 3, 4, 41, or 42. "
    @${ECHO_MSG}
    @${ECHO_MSG} " CURRENTLY BUILDING WITH db${WITH_BDB_VER} "
    @${ECHO_MSG}

pre-install:
    @${SED} 's#%%PREFIX%%#${PREFIX}#' ${MASTERDIR}/pkg-message >${PKGMESSAGE}

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>