pkgsrc/net/php-baikal/Makefile

86 lines
3.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 2022/03/14 13:40:28 wiz Exp $
DISTNAME= baikal-0.9.1
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=fruux/}
GITHUB_RELEASE= ${PKGVERSION_NOREV}
GITHUB_PROJECT= baikal
EXTRACT_SUFX= .zip
2016-03-13 18:27:12 +01:00
MAINTAINER= wiz@NetBSD.org
2020-06-08 19:57:29 +02:00
HOMEPAGE= https://sabre.io/baikal/
COMMENT= Lightweight CalDAV+CardDAV server
LICENSE= gnu-gpl-v3
DEPENDS+= ${PHP_PKG_PREFIX}-pdo>=5.3.1:../../databases/php-pdo
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=5.3.1:../../databases/php-pdo_sqlite
REPLACE_SH+= vendor/twig/twig/drupal_test.sh
PHP_VERSIONS_INCOMPATIBLE= 56 # as of 0.6.0
WRKSRC= ${WRKDIR}/baikal
USE_LANGUAGES= # none
NO_BUILD= yes
USE_TOOLS+= pax
BUILD_DEFS+= APACHE_GROUP APACHE_USER
BAIKALDIR= share/baikal
2016-04-02 10:23:30 +02:00
INSTALLATION_DIRS= ${BAIKALDIR}
# TODO:
# The directory "Specific" should probably be handled as configuration
CHECK_INTERPRETER_SKIP+= share/baikal/Core/Frameworks/BaikalAdmin/Resources/GlyphiconsPro/generate-sprite.php
CHECK_INTERPRETER_SKIP+= share/baikal/Core/Resources/Web/BaikalAdmin/GlyphiconsPro/generate-sprite.php
CHECK_INTERPRETER_SKIP+= share/baikal/html/res/core/BaikalAdmin/GlyphiconsPro/generate-sprite.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/bin/generate_vcards
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/bin/naturalselection
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/bin/vobject
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/bin/vobjectvalidate.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/build.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/googlecode_upload.py
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/migrateto17.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/migrateto20.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/migrateto21.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/migrateto30.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/migrateto32.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/naturalselection
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/dav/bin/naturalselection.py
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/event/examples/promise.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/event/examples/tail.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/vobject/bin/bench.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/vobject/bin/fetch_windows_zones.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/vobject/bin/generate_vcards
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/vobject/bin/generateicalendardata.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/vobject/bin/mergeduplicates.php
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/vobject/bin/vobject
CHECK_INTERPRETER_SKIP+= share/baikal/vendor/sabre/vobject/bin/vobjectvalidate.php
.include "../../mk/bsd.prefs.mk"
PKG_GROUPS= ${APACHE_GROUP}
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
PKG_USERS_VARS= APACHE_USER
PKG_GROUPS_VARS= APACHE_GROUP
FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
BAIKALDIR=${BAIKALDIR}
post-extract:
${CHMOD} -x ${WRKSRC}/vendor/sabre/dav/bin/sabredav.php
do-install:
${RM} -f ${WRKSRC}/*orig
${RM} -f ${WRKSRC}/*/*/*/*/*orig
cd ${WRKSRC} && pax -rw -pmp * \
${DESTDIR}${PREFIX}/${BAIKALDIR}
2021-03-07 14:21:56 +01:00
.include "../../lang/php/json.mk"
.include "../../mk/bsd.pkg.mk"