aboutsummaryrefslogtreecommitdiffstats
path: root/security/pidentd/Makefile
blob: f4feaa3d4ae9281ba15967c1b47fd9e6da85e1db (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
# New ports collection makefile for:    pidentd
# Date created:     19 Oct 1994
# Whom:         torstenb
#
# $FreeBSD$
#

PORTNAME=   pidentd
PORTVERSION=    3.0.19
PORTREVISION=   2
CATEGORIES= security ipv6
MASTER_SITES=   ftp://ftp.lysator.liu.se/pub/unix/ident/servers/ \
        ftp://ftp.stack.nl/pub/users/johans/pidentd/

PATCH_SITES=    ftp://ftp.stack.nl/pub/users/johans/pidentd/ \
        ftp://mud.stack.nl/pub/pidentd/
PATCHFILES= pidentd-${PORTVERSION}-ipv6-20080101.diff.gz
PATCH_DIST_STRIP=   -p0

MAINTAINER= johans@FreeBSD.org
COMMENT=    An RFC1413 identification server

CONFLICTS_INSTALL=  fakeident-[0-9]*

GNU_CONFIGURE=  yes
USE_OPENSSL=    yes

MAN8=       identd.8 idecrypt.8
PLIST_FILES=    sbin/ibench sbin/identd sbin/idecrypt sbin/ikeygen

CFLAGS+=    -DINCLUDE_CRYPT -DOPENSSL_DES_LIBDES_COMPATIBILITY
LDFLAGS+=   -L${OPENSSLLIB} -lcrypto

post-extract:
    ${CP} ${FILESDIR}/idecrypt.8 ${WRKSRC}/doc/idecrypt.8

post-patch:
    @${REINPLACE_CMD} \
        -e "s| /etc/identd.conf| ${PREFIX}/etc/identd.conf|" \
        -e "s| /etc/identd.key| ${PREFIX}/etc/identd.key|" \
        ${WRKSRC}/doc/identd.8 ${WRKSRC}/doc/idecrypt.8
    @${REINPLACE_CMD} -e "s|freebsd.4.7.|freebsd|" ${WRKSRC}/configure

post-install:
    ${INSTALL_MAN} -m 644 ${WRKSRC}/doc/idecrypt.8 ${MANPREFIX}/man/man8

.include <bsd.port.mk>