aboutsummaryrefslogtreecommitdiffstats
path: root/security/oidentd/Makefile
blob: f66980e923a382cbfbfe02cc3cd7b46541b65507 (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
# Created by: trevor
# $FreeBSD$

PORTNAME=   oidentd
PORTVERSION=    2.0.8
PORTREVISION=   2
CATEGORIES= security
MASTER_SITES=   SF/ojnk/${PORTNAME}/${PORTVERSION}

MAINTAINER= oliver@FreeBSD.org
COMMENT=    Ident server that supports user-defined ident strings

USE_RC_SUBR=    oidentd
GNU_CONFIGURE=  yes

MAN5=       oidentd.conf.5 oidentd_masq.conf.5
MAN8=       oidentd.8
PLIST_FILES=    sbin/oidentd etc/oidentd.conf.sample \
        etc/oidentd_masq.conf.sample
USE_CSTD=   gnu89

OPTIONS_DEFINE= IPV6 MASQ
OPTIONS_DEFAULT=    MASQ
MASQ_DESC=  Enable NAT/IP masq support

.include <bsd.port.pre.mk>

.if ! ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=--disable-ipv6
.else
CATEGORIES+=    ipv6
.endif

.if ! ${PORT_OPTIONS:MMASQ} || ${OSVERSION} >= 800000
CONFIGURE_ARGS+=--disable-masq
.endif

post-patch:
    @${REINPLACE_CMD} -e 's,/etc/,${PREFIX}&,g' ${WRKSRC}/src/oidentd.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/oidentd ${PREFIX}/sbin
    ${INSTALL_DATA} ${MAN5:S,^,${FILESDIR}/,:S,5$,sample,} ${PREFIX}/etc
.if !defined(NO_INSTALL_MANPAGES)
.for MANFILE in ${MAN5} ${MAN8}
    @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/doc/${MANFILE}
.endfor
    ${INSTALL_MAN} ${MAN5:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man5
    ${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man8
.endif

.include <bsd.port.post.mk>