blob: 90f2e16e73ce1843466e2cb88914aa251eccf3e4 (
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
|
PORTNAME= tt-rss
DISTVERSION= g20250427
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= LOCAL/meta
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= dereks@lifeofadishwasher.com
COMMENT= Tiny Tiny RSS: web-based news feed (RSS/Atom) aggregator
WWW= https://tt-rss.org/
LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/bin/git:devel/git
USES= gettext-tools php:cli,web,flavors shebangfix
USE_GITLAB= yes
GL_SITE= https://gitlab.tt-rss.org
GL_TAGNAME= f097c5ed97671f66be71e52c13917c23528ba308
# phe json/openssl extension is required but it's statically linked in default php
USE_PHP= ctype dom exif fileinfo filter iconv intl mbstring pcntl pdo \
phar posix session simplexml sockets sodium tokenizer xml \
xmlwriter zip
USE_RC_SUBR= ttrssd
SHEBANG_FILES= update.php update_daemon2.php
REINPLACE_ARGS= -i ""
NO_ARCH= yes
NO_BUILD= yes
# Instead of depending on the extact database driver list php packages that tt-rss
# depends on during install pkg-message as a post install setup.
# mysql: php-mysqli php-pdo_mysql
# pgsql: php-pgsql php-pdo_pgsql
#
# from Mk/Uses/php.mk create sub vars for mysqli/pdo_mysql pgsql/pdo_pgsql values
SUB_FILES= config.php httpd-tt-rss.conf pkg-message
SUB_LIST= MYSQL_DEPS="${mysqli_DEPENDS:T} ${pdo_mysql_DEPENDS:T}" \
PGSQL_DEPS="${pgsql_DEPENDS:T} ${pdo_pgsql_DEPENDS:T}" \
WWWOWN=${WWWOWN}
PLIST_SUB= WWWGRP=${WWWGRP} \
WWWOWN=${WWWOWN}
OPTIONS_DEFINE= CURL GD
OPTIONS_DEFAULT= CURL GD
CURL_DESC= Use SimplePie instead of Magpie
GD_DESC= Use OTP QR code generation
CURL_USE= PHP=curl
GD_USE= PHP=gd
do-install:
${MKDIR} \
${STAGEDIR}${WWWDIR} \
${STAGEDIR}${DATADIR} \
${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} \
"! -name LICENSE ! -name .empty ! -name Jenkinsfile")
${RM} -r ${STAGEDIR}${WWWDIR}/debian
${INSTALL_DATA} ${WRKDIR}/httpd-tt-rss.conf ${STAGEDIR}${DATADIR}
${ECHO} "${OPSYS}:${PORTVERSION}:${GL_TAGNAME:C/^(.{11}).*$/\1/W}}" > \
"${STAGEDIR}${WWWDIR}/version_static.txt"
${RM} ${STAGEDIR}${WWWDIR}/config.php-dist
${INSTALL_DATA} ${WRKDIR}/config.php \
${STAGEDIR}${WWWDIR}/config.php.sample
${INSTALL_DATA} ${FILESDIR}/newsyslog.sample \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|