aboutsummaryrefslogtreecommitdiffstats
path: root/security/srp/Makefile
blob: f358c0f3b117a76e9e0dda52ee3b9fd9d8c3f53b (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
# Created by: nectar@FreeBSD.org
# $FreeBSD$

PORTNAME=   srp
PORTVERSION=    2.1.2
CATEGORIES= security net
MASTER_SITES=   http://srp.stanford.edu/source/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Secure Remote Password protocol library, TELNET, and FTP

CONFLICTS=  krb4-[0-9]* krb5-[0-9]* krb5-maint-[0-9]* heimdal-[0-9]*

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  INSTALL="/usr/bin/install -C"
CONFIGURE_ARGS= --with-openssl=/usr             \
        --with-zlib                 \
        --enable-loginf

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=     fails to build with new utmpx
.endif

post-patch:
    @${GREP} -slR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
        's|malloc\.h|stdlib\.h|g'
    @${REINPLACE_CMD} -e 's/^struct.*\*sgetspent.*(const.*//' ${WRKSRC}/base/lib/shadow_.h

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/docs && ${FIND} . | \
        ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>