blob: 7e753810e10be67efe1e389723c7f5e41dcfa223 (
plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# $NetBSD: Makefile,v 1.9 2012/06/16 05:27:43 taca Exp $
#
DISTNAME= gallery-2.3.2-full
PKGNAME= gallery-2.3.2
CATEGORIES= www graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gallery/}
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= http://gallery.sourceforge.net/
COMMENT= Web-based photo gallery written in PHP
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
PHP_VERSIONS_ACCEPTED= 53 54
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.0.4:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=5.0.4:../../devel/php-gettext
DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,pgsql}-[0-9]*:../../databases/php-mysql
USE_TOOLS= pax
USE_LANGUAGES= # none
NO_BUILD= yes
WRKSRC= ${WRKDIR}/gallery2
REPLACE_PERL= lib/tools/po/*.pl
REPLACE_INTERPRETER+= php
REPLACE.php.old= .*/bin/php
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= lib/tools/po/extract.php
PKG_SYSCONFSUBDIR= gallery2
PKG_GROUPS_VARS+= APACHE_GROUP
PKG_USERS_VARS+= APACHE_USER
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/gallery2
G2DIR= ${PREFIX}/share/gallery2
DATADIR= ${VARBASE}/gallery2
G2DATA= ${DATADIR}/g2data
CONF_FILES= ${EGDIR}/gallery2.conf \
${PKG_SYSCONFDIR}/gallery2.conf
CONF_FILES_PERMS+= ${EGDIR}/config.php \
${G2DIR}/config.php \
${APACHE_USER} ${APACHE_GROUP} 0640
MESSAGE_SUBST+= G2DIR=${G2DIR:Q}
MESSAGE_SUBST+= G2DATA=${G2DATA:Q}
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
FILES_SUBST+= G2DIR=${G2DIR:Q}
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKDIR}/gallery2.conf
SUBST_FILES.paths+= ${WRKDIR}/config.php
SUBST_VARS.paths+= G2DIR G2DATA
SUBST_STAGE.paths= post-patch
OWN_DIRS_PERMS+= ${G2DATA} ${APACHE_USER} ${APACHE_GROUP} 755
INSTALLATION_DIRS= share/examples/gallery2
INSTALLATION_DIRS+= share/gallery2
INSTALLATION_DIRS+= ${G2DATA}
post-extract:
${CP} ${FILESDIR}/gallery2.conf ${WRKDIR}/
${CP} ${FILESDIR}/config.php ${WRKDIR}/
do-install:
${INSTALL_DATA} ${WRKDIR}/gallery2.conf ${DESTDIR}${EGDIR}/gallery2.conf
${INSTALL_DATA} ${WRKDIR}/config.php ${DESTDIR}${EGDIR}/config.php
${INSTALL_DATA} ${FILESDIR}/.htaccess ${DESTDIR}${G2DIR}/.htaccess
cd ${WRKSRC} && ${PAX} -rwppm . ${DESTDIR}${G2DIR}/
.include "../../lang/php/phpversion.mk"
.include "${PHPPKGSRCDIR}/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|