blob: 272fcfd357b3de13569c98029f58693180c95115 (
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.20.2.1 2019/05/14 05:12:28 spz Exp $
DISTNAME= drupal-8.6.15
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
CATEGORIES= www
MASTER_SITES= http://ftp.drupal.org/files/projects/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://drupal.org/
COMMENT= Open source content management system
LICENSE= gnu-gpl-v2
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.4.0:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.4.0:../../textproc/php-json
NO_BUILD= YES
DRUPAL= share/drupal
PAX_DIRS= includes misc modules profiles scripts themes
PKG_GROUPS_VARS+= WWW_GROUP
PKG_USERS_VARS+= WWW_USER
BUILD_DEFS+= WWW_USER WWW_GROUP
USE_TOOLS+= pax
OWN_DIRS_PERMS+= ${DRUPAL}/sites/default \
${WWW_USER} ${WWW_GROUP} 0750
CONF_FILES= share/examples/drupal/drupal.conf \
${PKG_SYSCONFDIR}/drupal.conf \
share/examples/drupal/default.settings.php \
${DRUPAL}/sites/default/default.settings.php
CONF_FILES_PERMS+= share/examples/drupal/default.settings.php \
${DRUPAL}/sites/default/settings.php \
${WWW_USER} ${WWW_GROUP} 0640
REPLACE_INTERPRETER+= php
REPLACE.php.old= .*php[^ ]*
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= core/scripts/drupal.sh core/scripts/password-hash.sh
REPLACE_FILES.php+= core/scripts/update-countries.sh
REPLACE_FILES.php+= core/scripts/rebuild_token_calculator.sh
SUBST_CLASSES+= sh
SUBST_STAGE.sh= pre-configure
SUBST_MESSAGE.sh= Fixing path to sh
SUBST_FILES.sh+= vendor/paragonie/random_compat/build-phar.sh
SUBST_SED.sh= -e "s|/usr/bin/env bash|${SH}|"
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-install
SUBST_FILES.conf= drupal.conf
SUBST_VARS.conf= DRUPAL PREFIX
SUBST_MESSAGE.conf= Fixing configuration files.
INSTALLATION_DIRS+= ${DRUPAL}/files ${DRUPAL}/sites \
share/doc/drupal share/examples/drupal
.for i in ${PAX_DIRS}
INSTALLATION_DIRS+= ${DRUPAL}/${i}
.endfor
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
do-install:
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${PREFIX}/${DRUPAL}
${INSTALL_DATA} ${WRKSRC}/drupal.conf \
${DESTDIR}${PREFIX}/share/examples/drupal
${INSTALL_DATA} ${WRKSRC}/sites/default/default.settings.php \
${DESTDIR}${PREFIX}/share/examples/drupal
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/${DRUPAL}
post-install:
${FIND} ${DESTDIR}${PREFIX}/${DRUPAL} \
\( -name '*.jpg' -o -name '*.png' \) | ${XARGS} ${CHMOD} 0644
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
|