blob: e85cc5a80c08ae5bce532fb680c0b9cd1e5653f4 (
plain) (
blame)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
PORTNAME= ilias
DISTVERSIONPREFIX= v
DISTVERSION= 8.6
CATEGORIES= www education
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
MAINTAINER= wen@FreeBSD.org
COMMENT= Powerful, dynamic, PHP and MySQL based e-learning platform
WWW= https://www.ilias.de
LICENSE= GPLv2
# Will switch to version 9 snapshots before the removal
DEPRECATED= Requires php80 which is set to expire on 2023-11-26
EXPIRATION_DATE= 2023-12-31
IGNORE_WITH_PHP= 81 82 83
LIB_DEPENDS= libpng.so:graphics/png
RUN_DEPENDS= ${LOCALBASE}/share/pear/Auth/Auth.php:security/pear-Auth@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/HTML/Template/IT.php:devel/pear-HTML_Template_IT@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/PEAR.php:devel/pear@${PHP_FLAVOR} \
${UNZIP_CMD}:archivers/unzip \
composer:devel/php-composer@${PHP_FLAVOR} \
sudo:security/sudo \
zip:archivers/zip
USES= cpe jpeg magick:6,run php:flavors
USE_GITHUB= yes
GH_ACCOUNT= ILIAS-eLearning
GH_PROJECT= ILIAS
USE_PHP= curl dom gd ldap fileinfo \
pdo_mysql session simplexml soap \
tokenizer xmlrpc xmlwriter xsl zlib
CONFLICTS= ilias6
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= pkg-message
SUB_LIST= ILIASFILESDIR=${ILIASFILESDIR}
PLIST= ${WRKDIR}/plist
PLIST_SUB= ILIASFILESDIR=${ILIASFILESDIR}
OPTIONS_DEFINE= CHECKER MAIL
CHECKER_RUN_DEPENDS= ${LOCALBASE}/share/pear/HTTP/Request.php:www/pear-HTTP_Request@${PHP_FLAVOR}
MAIL_RUN_DEPENDS= ${LOCALBASE}/share/pear/Mail.php:mail/pear-Mail@${PHP_FLAVOR}
ILIASDIR= www/ilias
ILIASFILESDIR= www/iliasfiles
EXTRA_FILES= %%WWWDIR%%/Modules/Chatroom/chat/node_modules/.bin/mime \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/.bin/uuid \
%%WWWDIR%%/node_modules/.bin/_mocha \
%%WWWDIR%%/node_modules/.bin/acorn \
%%WWWDIR%%/node_modules/.bin/atob \
%%WWWDIR%%/node_modules/.bin/browserslist \
%%WWWDIR%%/node_modules/.bin/browserslist-lint \
%%WWWDIR%%/node_modules/.bin/errno \
%%WWWDIR%%/node_modules/.bin/escodegen \
%%WWWDIR%%/node_modules/.bin/esgenerate \
%%WWWDIR%%/node_modules/.bin/esparse \
%%WWWDIR%%/node_modules/.bin/esvalidate \
%%WWWDIR%%/node_modules/.bin/flat \
%%WWWDIR%%/node_modules/.bin/gl-style-composite \
%%WWWDIR%%/node_modules/.bin/gl-style-format \
%%WWWDIR%%/node_modules/.bin/gl-style-migrate \
%%WWWDIR%%/node_modules/.bin/gl-style-validate \
%%WWWDIR%%/node_modules/.bin/he \
%%WWWDIR%%/node_modules/.bin/image-size \
%%WWWDIR%%/node_modules/.bin/js-yaml \
%%WWWDIR%%/node_modules/.bin/jsesc \
%%WWWDIR%%/node_modules/.bin/json5 \
%%WWWDIR%%/node_modules/.bin/lessc \
%%WWWDIR%%/node_modules/.bin/loose-envify \
%%WWWDIR%%/node_modules/.bin/mime \
%%WWWDIR%%/node_modules/.bin/mkdirp \
%%WWWDIR%%/node_modules/.bin/mocha \
%%WWWDIR%%/node_modules/.bin/nanoid \
%%WWWDIR%%/node_modules/.bin/needle \
%%WWWDIR%%/node_modules/.bin/node-gyp \
%%WWWDIR%%/node_modules/.bin/node-ninja \
%%WWWDIR%%/node_modules/.bin/nopt \
%%WWWDIR%%/node_modules/.bin/pbf \
%%WWWDIR%%/node_modules/.bin/parser \
%%WWWDIR%%/node_modules/.bin/prebuild \
%%WWWDIR%%/node_modules/.bin/regjsparser \
%%WWWDIR%%/node_modules/.bin/resolve \
%%WWWDIR%%/node_modules/.bin/rc \
%%WWWDIR%%/node_modules/.bin/rollup \
%%WWWDIR%%/node_modules/.bin/semver \
%%WWWDIR%%/node_modules/.bin/terser \
%%WWWDIR%%/node_modules/.bin/which \
%%WWWDIR%%/node_modules/@babel/core/node_modules/.bin/semver \
%%WWWDIR%%/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver \
%%WWWDIR%%/node_modules/@babel/helper-define-polyfill-provider/node_modules/.bin/semver \
%%WWWDIR%%/node_modules/@babel/preset-env/node_modules/.bin/semver \
%%WWWDIR%%/node_modules/babel-plugin-polyfill-corejs2/node_modules/.bin/semver \
%%WWWDIR%%/node_modules/acorn-globals/node_modules/.bin/acorn \
%%WWWDIR%%/node_modules/regjsparser/node_modules/.bin/jsesc
pre-install:
@${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST}
@${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST}
@${ECHO_CMD} "@mode 755" >> ${PLIST}
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${ILIASDIR}?g" >> ${PLIST}
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dir ${ILIASDIR}?g" >> ${PLIST}
.for i in ${EXTRA_FILES}
@${ECHO_CMD} ${i} >> ${PLIST}
.endfor
@${ECHO_CMD} "${ILIASFILESDIR}/config.json" >> ${PLIST}
@${ECHO_CMD} @dir ${ILIASFILESDIR} >> ${PLIST}
@${ECHO_CMD} "@mode" >> ${PLIST}
@${ECHO_CMD} "@group" >> ${PLIST}
@${ECHO_CMD} "@owner" >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${INSTALL} -d ${STAGEDIR}${PREFIX}/${ILIASFILESDIR}
@${CP} ${FILESDIR}/config.json ${STAGEDIR}${PREFIX}/${ILIASFILESDIR}
.include <bsd.port.mk>
|