aboutsummaryrefslogtreecommitdiff
path: root/dns/dns-ui/Makefile
blob: 667802901c5ddff4c30325621436bc493177b1f0 (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
# Created by: Ryan Steinmetz <zi@FreeBSD.org>

PORTNAME=	dns-ui
DISTVERSION=	v0.2.7
CATEGORIES=	dns

MAINTAINER=	zi@FreeBSD.org
COMMENT=	LDAP-authenticated PowerDNS user interface by Opera

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		pgsql php:mod,cli
IGNORE_WITH_PHP=	80 81

SUB_FILES=	pkg-message

NO_BUILD=	yes

USE_PHP=	curl json intl ldap mbstring pdo_pgsql
USE_GITHUB=	yes
GH_ACCOUNT=	operasoftware

OPTIONS_DEFINE=		APACHE PGSQLSRV
OPTIONS_DEFAULT=	APACHE PGSQLSRV
APACHE_DESC=		Use apache as webserver
PGSQLSRV_DESC=		Use local postgres instance

APACHE_USES=		apache:run,2.2+
APACHE_RUN_DEPENDS=	mod_php74>0:www/mod_php74
PGSQLSRV_VARS=		WANT_PGSQL=server

.include <bsd.port.options.mk>

post-extract:
	${MV} ${WRKSRC}/config/config-sample.ini \
		${WRKSRC}/config/config.ini.sample

do-install:
	@${MKDIR} ${STAGEDIR}${WWWDIR}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})

.include <bsd.port.mk>