aboutsummaryrefslogtreecommitdiffstats
path: root/net/phamm/Makefile
blob: 1ec1879448e4fe5ddab7812dfa3a22d0e51b6f64 (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: Gustavo Fukao <gustavofukao@gmail.com>
# $FreeBSD$

PORTNAME=   phamm
PORTVERSION=    0.5.18
CATEGORIES= net www
MASTER_SITES=   http://open.rhx.it/phamm/

MAINTAINER= gustavofukao@gmail.com
COMMENT=    Front-end written in PHP to manage virtual service

NO_BUILD=   yes
USE_PHP=    gettext ldap openssl pcre session

USES=       gettext

PHAMMDIR?=  www/${PORTNAME}
SCHEMADIR=  ${WRKSRC}/schema

SUB_FILES=  pkg-message
SUB_LIST=   PHAMMDIR=${PHAMMDIR} PKGNAME=${PKGNAME}
PLIST_SUB=  PHAMMDIR=${PHAMMDIR}

PORTDOCS=   CHANGELOG INSTALL README LICENSE THANKS

NO_STAGE=   yes
.include <bsd.port.pre.mk>

do-install:
    @${MKDIR} ${PREFIX}/${PHAMMDIR}
    @${MKDIR} ${EXAMPLESDIR}
    @${CP} -Rv ${WRKSRC}/examples/* ${EXAMPLESDIR}
    @${CP} -Rv ${SCHEMADIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/index.php ${PREFIX}/${PHAMMDIR}
    @for d in `${FIND}  ${WRKSRC} -type d -depth 1 | ${SORT} -r | \
    ${EGREP} -v '(examples|cfg|schema|debian|server)'` ; do \
        ${CP} -Rv $$d ${PREFIX}/${PHAMMDIR}; \
    done;
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

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

.include <bsd.port.post.mk>