aboutsummaryrefslogtreecommitdiffstats
path: root/net/pfinger/Makefile
blob: 853d21f2273f0399452a5c4c6085bfff8492672e (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
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pfinger
PORTVERSION=    0.7.10
PORTREVISION=   4
CATEGORIES= net
MASTER_SITES=   http://www.xelia.ch/unix/pfinger/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Highly configurable, secure, and portable finger daemon

CONFLICTS=  gnu-finger-1.*

OPTIONS_DEFINE= X11

GNU_CONFIGURE=  yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MX11}
USE_GNOME=  gtk12
PLIST_SUB+= WITHOUT_X11=""
.else
CONFIGURE_ARGS+=--without-client
PLIST_SUB+= WITHOUT_X11="@comment "
.endif

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/src/configfile.c
.if ${OSVERSION} >= 900007
    @${REINPLACE_CMD} -e 's|<utmp.h>|<utmpx.h>|' ${WRKSRC}/configure
.endif

.include <bsd.port.post.mk>