aboutsummaryrefslogtreecommitdiff
path: root/security/distcache/Makefile
blob: ab15fa1210286feaa1286a4c142d81b6886bbabe (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
# Created by: Marcel Prisi <marcel.prisi@virtua.ch>

PORTNAME=	distcache
DISTVERSION=	1.5.1
CATEGORIES=	security www
MASTER_SITES=	SF/distcache/1.%20distcache-devel/1.5.1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Distributed OpenSSL session caching tools

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		libtool ssl tar:bzip2
USE_RC_SUBR=	dc_server
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared --with-ssl=${OPENSSLBASE}
INSTALL_TARGET=	install-strip

SUB_LIST=	NAME=dc_server
PORTDOCS=	ANNOUNCE BUGS CHANGES FAQ README

OPTIONS_DEFINE=	DOCS

post-patch:
	@${GREP} -q 'define SSLeay_version' /usr/include/openssl/crypto.h \
	    && ${REINPLACE_CMD} -e 's,SSLeay_version,OpenSSL_version,' \
		${WRKSRC}/ssl/configure || :

post-install:
	# INSTALL_TARGET=install-strip isn't working!  Brute force it
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

do-test:
	@cd ${TEST_WRKSRC} && ${SH} devel/test.sh

.include <bsd.port.mk>