summaryrefslogtreecommitdiff
path: root/net/php-baikal/Makefile
blob: 075eb75abfb3b8e563496c5cb213e701df5cecd3 (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
# $NetBSD: Makefile,v 1.10 2017/04/05 12:33:48 fhajny Exp $

DISTNAME=	baikal-0.4.6
PKGNAME=	${PHP_PKG_PREFIX}-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GITHUB:=fruux/}
GITHUB_RELEASE=	${PKGVERSION_NOREV}
GITHUB_PROJECT=	baikal
EXTRACT_SUFX=	.zip

MAINTAINER=	wiz@NetBSD.org
HOMEPAGE=	http://baikal-server.com/
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

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/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"

APACHE_USER?=	www
APACHE_GROUP?=	www
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}

do-install:
	${RM} -f ${WRKSRC}/*orig
	${RM} -f ${WRKSRC}/*/*/*/*/*orig
	cd ${WRKSRC} && pax -rw -pmp * \
		${DESTDIR}${PREFIX}/${BAIKALDIR}

.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"