aboutsummaryrefslogtreecommitdiff
path: root/comms/conserver-com/Makefile
blob: c19ef7c103b33bbbb257d9a07d9d80ff72af6680 (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
PORTNAME=	conserver
DISTVERSION=	8.2.7
CATEGORIES=	comms
MASTER_SITES=	https://github.com/bstansell/conserver/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX=	-com

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Application that allows multiple users to watch serial consoles
WWW=		https://www.conserver.com/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		autoreconf:2.69 ssl
USE_RC_SUBR=	conserver

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

CONFLICTS_INSTALL=	conserver

OPTIONS_DEFINE=		FREEIPMI GSSAPI GSSAPIONLY STRIPREALM UDS
FREEIPMI_DESC=		Compile in FreeIPMI support
GSSAPIONLY_DESC=	Never prompt for a password when using GSSAPI
GSSAPIONLY_IMPLIES=	GSSAPI
STRIPREALM_DESC=	Strip @REALM when using GSSAPI
STRIPREALM_IMPLIES=	GSSAPI
UDS_DESC=		Use Unix domain sockets for client/server

FREEIPMI_CONFIGURE_ON=		--with-freeipmi=${LOCALBASE}
FREEIPMI_LIB_DEPENDS=		libfreeipmi.so:sysutils/freeipmi
GSSAPI_CONFIGURE_WITH=		gssapi
GSSAPIONLY_EXTRA_PATCHES=	${FILESDIR}/extra-patch-conserver__master.c
STRIPREALM_CONFIGURE_WITH=	striprealm
UDS_CONFIGURE_WITH=		uds

post-extract:
.for file in config.guess config.sub
	${CP} -f ${TEMPLATES}/${file} ${WRKSRC}
.endfor

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

DEFAULTPORT?=	782
DEFAULTHOST?=	localhost

.include <bsd.port.mk>