aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/phpipam/Makefile
blob: 04ee882090f92e5582fb338408dbc4fc41309e31 (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
# Created by: Jake Smith <jake@xz.cx>
# $FreeBSD$

PORTNAME=   phpipam
PORTVERSION=    1.3.1
CATEGORIES= net-mgmt
MASTER_SITES=   SF/${PORTNAME}

MAINTAINER= jake@xz.cx
COMMENT=    PHP IP Address Management IPv4/IPv6

LICENSE=    GPLv3

RUN_DEPENDS=    ${LOCALBASE}/share/pear/System.php:devel/pear@${PHP_FLAVOR}

NO_BUILD=   yes
NO_ARCH=    yes
WRKSRC=     ${WRKDIR}/${PORTNAME}

CFGFILE=    config.php

SUB_FILES=  pkg-message
SUB_LIST=   DISTNAME=${DISTNAME}

OPTIONS_DEFINE= LDAP

USES=       gettext php:web tar:
USE_PHP=    filter gettext gmp json mbstring openssl \
        pcntl pdo pdo_mysql session simplexml sockets
LDAP_USE=   PHP=ldap

pre-install:
    @if [ -f ${WRKSRC}/${CFGFILE} ]; then \
    ${MV} ${WRKSRC}/${CFGFILE} ${WRKSRC}/${CFGFILE}.sample ; \
    fi

do-install:
    (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} \
        "! -name *.orig")

.include <bsd.port.mk>