99a058f5e8
0.9.1 Fix php 7.2+ support 0.9.0 Support for php 8.1 No longer supports php 7.1 Ships with sabre/dav 4.3.0
85 lines
3.3 KiB
Makefile
85 lines
3.3 KiB
Makefile
# $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
|
|
|
|
MAINTAINER= wiz@NetBSD.org
|
|
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
|
|
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}
|
|
|
|
.include "../../lang/php/json.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|