aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/send/Makefile
blob: 754d3feabb8d9f50cd2f87f378612598b3eadebd (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
# New ports collection makefile for:    send
# Date created:         19.09.2007
# Whom: Janos Mohacsi <mohacsi@niif.hu>
#
# $FreeBSD$

PORTNAME=   send
PORTVERSION=    0.2
PORTREVISION=   1
CATEGORIES= net-mgmt ipv6
MASTER_SITES=   #http://www.docomolabs-usa.com/lab_osrc_guide.html
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= janos.mohacsi@bsd.hu
COMMENT=    Secure Neighbor Discovery implementation for IPv6

LIB_DEPENDS=    dnet.1:${PORTSDIR}/net/libdnet

RESTRICTED= not redistributable, license agreement required

USE_ZIP=    yes
USE_GMAKE=  yes
SUB_FILES=  pkg-message

PORTDOCS=   UserGuide.pdf

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 700000
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-include_pkixip__ext__asn.h
.endif

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE=     needs you to sign the agreement on "http://www.docomolabs-usa.com/lab_osrc_downl.html", download it manually, place in ${DISTDIR} and then restart this build
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" -e "s|%%LOCALBASE%%|${LOCALBASE}|" \
        ${WRKSRC}/Makefile.config \
        ${WRKSRC}/sendd/sendd_local.h \
        ${WRKSRC}/sendd/os-freebsd/Makefile \
        ${WRKSRC}/sendd/os-freebsd/sendd \
        ${WRKSRC}/examples/sendd.conf \
        ${WRKSRC}/examples/params.conf \
        ${WRKSRC}/examples/ipext/ipext_verify.conf

post-install:
    ${MKDIR} ${PREFIX}/etc/sendd/
    ${INSTALL_DATA} ${WRKSRC}/examples/sendd.conf ${PREFIX}/etc/sendd/sendd.conf-dist
    ${INSTALL_DATA} ${WRKSRC}/examples/params.conf ${PREFIX}/etc/sendd/params.conf-dist
    ${INSTALL_DATA} ${WRKSRC}/examples/ipext/ipext_verify.conf ${PREFIX}/etc/sendd/ipext.conf-dist
    @${CAT} ${PKGMESSAGE}
.ifndef(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
. for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/docs/${doc} ${DOCSDIR}
. endfor
.endif

.include <bsd.port.post.mk>