blob: bfbee30cceafc8bfafc44fd92c9c98b86cebafd6 (
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
|
# $NetBSD: Makefile,v 1.53 2019/12/09 14:20:55 taca Exp $
DISTNAME= mantisbt-2.4.1
PKGNAME= ${DISTNAME:S/mantisbt/mantis/}
PKGREVISION= 1
CATEGORIES= devel www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mantisbt/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mantisbt.org/
COMMENT= PHP/MySQL/web based bugtracking system
LICENSE= gnu-gpl-v2
#PHP_VERSIONS_ACCEPTED= 56
DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json
NO_BUILD= YES
USE_TOOLS+= bash:run pax
APACHE_USER?= www
BUILD_DEFS+= APACHE_USER
PKG_USERS_VARS+= APACHE_USER
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
MANTIS_HOME= ${PREFIX}/share/mantis
EGDIR= ${PREFIX}/share/examples/mantis
CONF_FILES+= ${EGDIR}/mantis.conf ${PKG_SYSCONFDIR}/mantis.conf
CONF_FILES_PERMS+= ${EGDIR}/config_inc.php \
${MANTIS_HOME}/config/config_inc.php \
${APACHE_USER} ${SHAREGRP} 0400
MANTIS_EG= config_inc.php mantis.conf mantis_offline.php.sample
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-install
SUBST_FILES.conf= mantis.conf
SUBST_VARS.conf= MANTIS_HOME
SUBST_MESSAGE.conf= Fixing configuration files.
REPLACE_BASH+= scripts/travis_before_script.sh
REPLACE_INTERPRETER+= php
REPLACE.php.old= /usr/bin/php
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= scripts/*.php
INSTALLATION_DIRS+= share/doc/mantis ${EGDIR} ${MANTIS_HOME}
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/mantis.conf ${WRKSRC}
do-install:
cd ${WRKSRC}/doc && \
pax -rwpppm en-US ${DESTDIR}${PREFIX}/share/doc/mantis
${MV} ${WRKSRC}/config/config_inc.php.sample \
${WRKSRC}/config_inc.php
.for f in ${MANTIS_EG}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EGDIR}
${RM} ${WRKSRC}/${f}
.endfor
cd ${WRKSRC} && ${FIND} . -name .cvsignore -print | ${XARGS} ${RM} -f
cd ${WRKSRC} && pax -rwpppm . ${DESTDIR}${MANTIS_HOME}
cd ${DESTDIR}${MANTIS_HOME} && \
${FIND} . -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
|