aboutsummaryrefslogtreecommitdiffstats
path: root/www/zenphoto/Makefile
blob: 7a1306c2c294c6ee41a3fc11af9250cd5593bf80 (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
# New ports collection makefile for:   zenphoto
# Date created:                27 December 2007
# Whom:                        Philippe Audeoud <jadawin@tuxaco.net>
# $FreeBSD$

PORTNAME=   zenphoto
PORTVERSION=    1.1.7
CATEGORIES= www
MASTER_SITES=   http://www.zenphoto.org/files/

MAINTAINER= jadawin@FreeBSD.org
COMMENT=    A simpler web photo gallery

USE_PHP=    mysql gd session mbstring
WANT_PHP_WEB=   yes

NO_BUILD=   yes

WRKSRC= ${WRKDIR}/${PORTNAME}

PKGDEINSTALL=   ${WRKDIR}/pkg-deinstall
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES=  pkg-message pkg-deinstall
SUB_LIST=   PORTNAME=${PORTNAME} \
        WWWDIR=${WWWDIR}

do-install:
    ${MKDIR} ${WWWDIR}
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR} \
        "! -name README.html ! -name License.txt")
    ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
.for i in multimediaDefault.png videoDefault.png zen-logo.jpg
.if exists(${WWWDIR}/albums/${i})
    ${CHMOD} 644 ${WWWDIR}/albums/${i}
.endif
.endfor
post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>