2022-08-16 15:52:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2022/08/16 13:52:48 hauke Exp $
|
2017-07-18 16:29:51 +02:00
|
|
|
|
|
|
|
DISTNAME= glpi-${GLPI_VERSION}
|
2022-08-16 15:52:48 +02:00
|
|
|
GLPI_VERSION= 10.0.2
|
2017-07-18 16:29:51 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2022-08-16 15:52:48 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=glpi-project/}glpi/releases/download/${GLPI_VERSION}/
|
|
|
|
#MASTER_SITES= https://github.com/glpi-project/glpi/releases/download/${GLPI_VERSION}/
|
2017-07-18 16:29:51 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= hauke@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://glpi-project.org/
|
2017-07-18 16:29:51 +02:00
|
|
|
COMMENT= IT inventory management software
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2022-08-16 15:52:48 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-bz2>=7.4:../../archivers/php-bz2
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-curl>=7.4:../../www/php-curl
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-exif>=7.4:../../graphics/php-exif
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=7.4:../../graphics/php-gd
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=7.4:../../converters/php-iconv
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-imap>=7.4:../../mail/php-imap
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-intl>=7.4:../../textproc/php-intl
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-ldap>=7.4:../../databases/php-ldap
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=7.4:../../converters/php-mbstring
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=7.4:../../databases/php-mysqli
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-opcache>=7.4:../../devel/php-opcache
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-sodium>=7.4:../../security/php-sodium
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-zip>=7.4:../../archivers/php-zip
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=7.4:../../archivers/php-zlib
|
|
|
|
|
2017-07-18 16:29:51 +02:00
|
|
|
DEPENDS+= freefont-ttf-[0-9]*:../../fonts/freefont-ttf
|
|
|
|
|
2022-08-16 15:52:48 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
|
|
|
|
.if ${PKG_PHP_VERSION} == 74
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-json>=7.4:../../textproc/php-json
|
|
|
|
.endif
|
|
|
|
|
2017-07-18 16:29:51 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
|
|
|
|
USE_TOOLS+= chmod find pax
|
|
|
|
|
2019-11-04 23:09:50 +01:00
|
|
|
BUILD_DEFS+= APACHE_USER APACHE_GROUP VARBASE
|
2017-07-18 16:29:51 +02:00
|
|
|
|
2019-07-02 14:23:41 +02:00
|
|
|
MESSAGE_SUBST+= APACHE_USER="${APACHE_USER}"
|
2017-07-18 16:29:51 +02:00
|
|
|
|
2019-07-02 14:23:41 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2017-07-18 16:29:51 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/glpi
|
|
|
|
|
|
|
|
# Config dir managed through web interface (move under {VARBASE}/glpi?)
|
|
|
|
PKG_SYSCONFSUBDIR= glpi
|
|
|
|
PKG_SYSCONFDIR_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0700
|
|
|
|
|
|
|
|
EGDIR= share/examples/glpi
|
|
|
|
GLPI_DIR= share/glpi
|
|
|
|
|
2019-03-15 17:32:13 +01:00
|
|
|
.for ddd in local_define.php
|
2017-07-18 16:29:51 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/${ddd} ${PKG_SYSCONFDIR}/${ddd}
|
|
|
|
.endfor
|
2020-05-19 16:21:13 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/var_glpi.htaccess ${VARBASE}/glpi/.htaccess
|
2017-07-18 16:29:51 +02:00
|
|
|
|
|
|
|
MAKE_DIRS_PERMS+= ${VARBASE}/glpi ${APACHE_USER} ${APACHE_GROUP} 0700
|
Update www/php-glpi to v9.2.1
Upstream says:
You'll find below the changes of this bugfixes version:
- Rework mail attachments for notifications (inline images are now handled, ...),
- Fix ticket reopening,
- Fix operating system update on sub-entities,
- Fix issues on knowledge base items removal and display,
- Unset autoclose delay on fresh install,
- Improve private saved searches (with entities),
- Fix carriage return issues on tickets,
- Fix massive actions on operating systems,
- Fix migration issues from 9.1 and 9.2,
- Add support for other cache methods than APCu,
- Fix linear amortize calculation,
- Fix mail collector attachments owner,
- And many more!
Full ChangeLog:
<https://github.com/glpi-project/glpi/milestone/21?closed=1>
2017-11-17 12:07:39 +01:00
|
|
|
.for ddd in _cache _cron _dumps _graphs _lock _log _pictures _plugins \
|
2017-07-18 16:29:51 +02:00
|
|
|
_rss _sessions _tmp _uploads
|
|
|
|
MAKE_DIRS_PERMS+= ${VARBASE}/glpi/${ddd} \
|
|
|
|
${APACHE_USER} ${APACHE_GROUP} 0750
|
|
|
|
.endfor
|
|
|
|
MAKE_DIRS_PERMS+= ${VARBASE}/log/glpi \
|
|
|
|
${APACHE_USER} ${REAL_ROOT_GROUP} 0750
|
|
|
|
|
|
|
|
SUBST_CLASSES+= path
|
|
|
|
SUBST_STAGE.path= post-configure
|
|
|
|
SUBST_MESSAGE.path= Fixing paths.
|
|
|
|
SUBST_VARS.path= PREFIX VARBASE PKG_SYSCONFDIR APACHE_USER
|
2019-03-15 17:32:13 +01:00
|
|
|
SUBST_FILES.path= config/local_define.php
|
|
|
|
SUBST_FILES.path+= inc/downstream.php
|
2017-07-18 16:29:51 +02:00
|
|
|
SUBST_FILES.path+= config/crontab.sample
|
|
|
|
SUBST_FILES.path+= config/httpd-glpi.conf
|
|
|
|
|
|
|
|
REPLACE_INTERPRETER+= php
|
|
|
|
REPLACE.php.old= .*php
|
|
|
|
REPLACE.php.new= ${PREFIX}/bin/php
|
|
|
|
REPLACE_FILES.php= vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
|
2019-03-15 17:32:13 +01:00
|
|
|
REPLACE_FILES.php+= bin/console
|
2017-07-18 16:29:51 +02:00
|
|
|
.for ddd in bench.php fetch_windows_zones.php generate_vcards \
|
|
|
|
generateicalendardata.php vobject
|
2019-11-04 23:09:50 +01:00
|
|
|
REPLACE_FILES.php+= vendor/sabre/vobject/bin/${ddd}
|
2017-07-18 16:29:51 +02:00
|
|
|
.endfor
|
|
|
|
|
2022-08-16 15:52:48 +02:00
|
|
|
OWN_DIRS_PERMS+= ${GLPI_DIR}/marketplace ${APACHE_USER} \
|
|
|
|
${APACHE_GROUP} 0750
|
2017-07-19 05:06:00 +02:00
|
|
|
|
2022-08-16 15:52:48 +02:00
|
|
|
INSTALLATION_DIRS+= ${EGDIR} ${GLPI_DIR} ${GLPI_DIR}/marketplace
|
2017-07-19 05:06:00 +02:00
|
|
|
|
2017-07-18 16:29:51 +02:00
|
|
|
post-extract:
|
2019-03-15 17:32:13 +01:00
|
|
|
for ddd in local_define.php crontab.sample httpd-glpi.conf ; do \
|
2017-07-18 16:29:51 +02:00
|
|
|
${CP} ${FILESDIR}/$${ddd} ${WRKSRC}/config ; \
|
|
|
|
done
|
2019-03-15 17:32:13 +01:00
|
|
|
${CP} ${FILESDIR}/downstream.php ${WRKSRC}/inc
|
|
|
|
for ddd in ajax css front inc lib locales pics vendor ; do \
|
2017-07-18 16:29:51 +02:00
|
|
|
find ${WRKSRC}/$${ddd} -type f -exec ${CHMOD} ugo-x \{\} \; ; \
|
|
|
|
done
|
|
|
|
cd ${WRKSRC}/install && ${MV} install.php install.php.disabled
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}/config && ${PAX} -rw * ${DESTDIR}${PREFIX}/${EGDIR}
|
2022-08-16 15:52:48 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/files/.htaccess \
|
2020-05-19 16:21:13 +02:00
|
|
|
${DESTDIR}${PREFIX}/${EGDIR}/var_glpi.htaccess
|
|
|
|
# Sub-tree will be re-created in VARBASE/glpi
|
|
|
|
cd ${WRKSRC} && rm -r files
|
2017-07-18 16:29:51 +02:00
|
|
|
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/${GLPI_DIR}
|
|
|
|
|
|
|
|
.include "../../mk/apache.mk"
|
|
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|