blob: f1410e22125555c5820d3ff4552a580cbad7c519 (
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
PORTVERSION= g20220903
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= https://git-gitea.tt-rss.org/fox/tt-rss/archive/
DISTNAME= ${_GIT_TAGNAME}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= dereks@lifeofadishwasher.com
COMMENT= Tiny Tiny RSS: web-based news feed (RSS/Atom) aggregator
LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/bin/git:devel/git
USES= gettext-tools php:cli,web shebangfix
USE_PHP= ctype dom exif fileinfo filter hash iconv intl json mbstring \
openssl pcntl pdo posix session tokenizer xml zip
USE_RC_SUBR= ttrssd
SHEBANG_FILES= update.php update_daemon2.php
_GIT_TAGNAME= d47b8c849
REINPLACE_ARGS= -i ""
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= config.php httpd-tt-rss.conf pkg-message
SUB_LIST= MYSQL=${MYSQL} \
PGSQL=${PGSQL} \
WWWOWN=${WWWOWN}
WRKSRC= ${WRKDIR}/tt-rss
PLIST_SUB= WWWGRP=${WWWGRP} \
WWWOWN=${WWWOWN}
OPTIONS_DEFINE= CURL GD
OPTIONS_DEFAULT= CURL GD MYSQL
OPTIONS_SINGLE= DB
OPTIONS_SINGLE_DB= MYSQL PGSQL
CURL_DESC= Use SimplePie instead of Magpie
GD_DESC= Use OTP QR code generation
CURL_USE= PHP=curl
GD_USE= PHP=gd
MYSQL_USE= PHP=mysqli,pdo_mysql
MYSQL_VARS_OFF= MYSQL="\#"
PGSQL_USE= PHP=pdo_pgsql,pgsql
PGSQL_VARS_OFF= PGSQL="\#"
do-install:
${MKDIR} \
${STAGEDIR}${WWWDIR} \
${STAGEDIR}${DATADIR} \
${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} \
"! -name LICENSE ! -name .empty")
${RM} -r ${STAGEDIR}${WWWDIR}/debian
${INSTALL_DATA} ${WRKDIR}/httpd-tt-rss.conf ${STAGEDIR}${DATADIR}
${ECHO} "${OPSYS}:${PORTVERSION}:${_GIT_TAGNAME}" > \
"${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>
|