aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/phpipam/Makefile
blob: 9b808a6afb6bf049566df3479133623689738d2b (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
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    phpipam
# Date created:             10 June 2012
# Whom:                 Jake Smith <jake@xz.cx>
#
# $FreeBSD$
#

PORTNAME=   phpipam
PORTVERSION=    0.7
CATEGORIES= net-mgmt
MASTER_SITES=   SF
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=   .tar

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

LICENSE=    GPLv3

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

FETCH_ARGS= -Fpr

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

CFGFILE=    config.php

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

OPTIONS_DEFINE= LDAP

USE_MYSQL=  yes
USE_PHP=    ctype mysqli session gmp
WANT_PHP_WEB=   yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLDAP}
USE_PHP+=   ldap
.endif

.include <bsd.port.pre.mk>

pre-install:
    @${MV} ${WRKSRC}/${CFGFILE} ${WRKSRC}/${CFGFILE}.sample

do-install:
    cd ${WRKSRC} ; \
    for src in $$( ${FIND} . ! -name '*.orig') ; do \
        dst=${WWWDIR}$${src#.} ; \
        if ${TEST} -d "$$src" ; then \
            ${MKDIR} "$$dst" ; \
        else \
            ${INSTALL_DATA} -o root -g wheel "$$src" "$$dst" ; \
        fi \
    done

post-install:
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>