aboutsummaryrefslogtreecommitdiff
path: root/www/mod_gnutls/Makefile
blob: 64c05e0cd84a8bfc4cb8391fda5c7450742cdc13 (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
53
# New ports collection makefile for:	mod_gnutls
# Date created:		2011-01-19
# Whom:			Fumiyuki Shimizu <fumifumi@abacustech.jp>
#
# $FreeBSD$
#

PORTNAME=	mod_gnutls
PORTVERSION=	0.5.6
PORTREVISION=	1
CATEGORIES=	www security
MASTER_SITES=	http://www.outoforder.cc/downloads/mod_gnutls/
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}

MAINTAINER=	fumifumi@abacustech.jp
COMMENT=	mod_gnutls uses the GnuTLS library to provide SSL, and TLS encryption for Apache HTTPD

LIB_DEPENDS=	gnutls.47:${PORTSDIR}/security/gnutls

USE_BZIP2=	yes
USE_AUTOTOOLS=	libtool
USE_APACHE=	2.0+
GNU_CONFIGURE=	yes

LICENSE=	ASL
LICENSE_FILE=	${WRKSRC}/LICENSE

DOCS=	LICENSE NEWS README README.ENV

.include <bsd.port.pre.mk>

DBDIR=	${PREFIX}/var/db/${PORTNAME}

SUB_FILES=	pkg-message
PLIST_SUB+=	DBDIR=${DBDIR}

CONFIGURE_ARGS=	--with-apxs=${APXS}

# mod_gnutls does not conflict with mod_ssl.
#pre-install:
#	@if test -e '${LOCALBASE}/${APACHEMODDIR}/mod_ssl.so'; then for opt in -a -A -A; do '${APXS}' -e "$${opt}" -n ssl '${LOCALBASE}/${APACHEMODDIR}/mod_ssl.so' >/dev/null 2>&1; done; else true; fi

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} '${DOCSDIR}'
	@cd '${WRKSRC}' && ${INSTALL_DATA} ${DOCS} '${DOCSDIR}'
.endif
	@if test -d '${DBDIR}'; then true; else ${MKDIR} '${DBDIR}'; fi
	@${CHOWN} '${WWWOWN}:${WWWGRP}' '${DBDIR}'
	@${CHMOD} 'u=rwx,g=rx,o=' '${DBDIR}'
	@${CAT} '${PKGMESSAGE}'

.include <bsd.port.post.mk>