aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_md-devel/Makefile
blob: 4544c86895bb8dd2c0be49ba1873fdec763b75fe (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
# Created by: Bernard Spil <brnrd@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mod_md
PORTVERSION=    1.1.7
DISTVERSIONPREFIX=  v
CATEGORIES= www
PKGNAMEPREFIX=  ${APACHE_PKGNAMEPREFIX}
PKGNAMESUFFIX=  -devel

MAINTAINER= brnrd@FreeBSD.org
COMMENT=    Early experience LetsEncrypt module for Apache httpd

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libaprutil-1.so:devel/apr1 \
        libcurl.so:ftp/curl \
        libjansson.so:devel/jansson

USES=       autoreconf libtool ssl
USE_GITHUB= yes
USE_APACHE= 24+

INSTALL_TARGET= install-strip

GH_ACCOUNT= icing
GH_PROJECT= mod_md

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} \
        --with-jansson=${LOCALBASE}

DOCSDIR=    share/doc/mod_md
PORTDOCS=   README README.md
PLIST_FILES=    ${APACHEMODDIR}/mod_md.so.0.0.0 \
        ${APACHEMODDIR}/mod_md.so \
        bin/a2md

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100085 && ${SSL_DEFAULT} == base
IGNORE=     port requires OpenSSL 1.0.2 or later, set DEFAULT_VERSIONS+= ssl=openssl
.endif

post-install:
    ${RM} ${STAGEDIR}${PREFIX}/share/doc/mod_md/LICENSE

.include <bsd.port.post.mk>