summaryrefslogtreecommitdiffstats
path: root/comms/conserver-com/Makefile
blob: 3226b7259446d75761eb1f516a436d5e9fa20d9f (plain)
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
# $FreeBSD$

PORTNAME=	conserver
PORTVERSION=	8.2.1
CATEGORIES=	comms
MASTER_SITES=	http://www.conserver.com/ \
		ftp://ftp.conserver.com/conserver/
PKGNAMESUFFIX=	-com

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	Application that allows multiple users to watch serial consoles

CONFLICTS_INSTALL=	conserver-[0-9]*

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-master=${DEFAULTHOST} --with-port=${DEFAULTPORT} \
		--with-pam --with-libwrap --with-openssl
USE_OPENSSL=	yes
USE_RC_SUBR=	conserver

OPTIONS_DEFINE=	UDS GSSAPI GSSAPIONLY STRIPREALM
UDS_DESC=	Use Unix domain sockets for client/server
STRIPREALM_DESC=Strip @REALM when using GSSAPI
GSSAPIONLY_DESC=Never prompt for a password when using GSSAPI

.include <bsd.port.options.mk>

DEFAULTPORT?=	782
DEFAULTHOST?=	localhost

.if ${PORT_OPTIONS:MUDS}
CONFIGURE_ARGS+=	--with-uds
.endif

.if ${PORT_OPTIONS:MGSSAPI}
CONFIGURE_ARGS+=	--with-gssapi
.if ${PORT_OPTIONS:MSTRIPREALM}
CONFIGURE_ARGS+=	--with-striprealm
.endif
.if ${PORT_OPTIONS:MGSSAPIONLY}
EXTRA_PATCHES=		${FILESDIR}/extra-patch-conserver__master.c
.endif
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/conserver-convert

.include <bsd.port.mk>
OpenPOWER on IntegriCloud