aboutsummaryrefslogtreecommitdiffstats
path: root/security/fiked/Makefile
blob: fb6c8b874c5eb68ad4b2728a3b019bc249df367d (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
# New ports collection makefile for:    fiked
# Date created:             2005-12-07
# Whom:                 Daniel Roethlisberger <daniel@roe.ch>
#
# $FreeBSD$
#

PORTNAME=   fiked
PORTVERSION=    0.0.4
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://dragon.roe.ch/bitsnpieces/fiked/ \
        http://home.tiscalinet.ch/roe/fiked/

MAINTAINER= daniel@roe.ch
COMMENT=    A fake IKE PSK+XAUTH daemon based on VPNC

LIB_DEPENDS=    gcrypt.13:${PORTSDIR}/security/libgcrypt
.if !defined(WITHOUT_LIBNET)
BUILD_DEPENDS=  ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
.endif

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GCC=    3.2+

MAKEFILE=   GNUmakefile

PLIST_FILES=    bin/fiked
MAN1=       fiked.1
PORTDOCS=   README NEWS

LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config

post-patch:
    @${REINPLACE_CMD} -e \
        's|=-g|=|; \
         s|-lnet|`${LIBNET_CONFIG} --libs`|; \
         s|-DWITH_LIBNET|& `${LIBNET_CONFIG} --cflags`|' \
        ${WRKSRC}/${MAKEFILE}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/fiked ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/fiked.1 ${PREFIX}/man/man1/
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>