aboutsummaryrefslogtreecommitdiffstats
path: root/www/freshrss/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/freshrss/Makefile')
-rw-r--r--www/freshrss/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/www/freshrss/Makefile b/www/freshrss/Makefile
new file mode 100644
index 0000000..ec3f756
--- /dev/null
+++ b/www/freshrss/Makefile
@@ -0,0 +1,51 @@
+PORTNAME= freshrss
+DISTVERSION= 1.29.1
+CATEGORIES= www
+PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
+
+MAINTAINER= jan@jantuomi.fi
+COMMENT= Self-hosted RSS feed aggregator
+WWW= https://freshrss.org/
+
+LICENSE= AGPLv3
+
+USES= cpe php:web,flavors
+USE_GITHUB= yes
+GH_ACCOUNT= FreshRSS
+GH_PROJECT= FreshRSS
+
+USE_PHP= ctype curl dom filter gd iconv mbstring pdo pdo_sqlite \
+ phar posix session simplexml sqlite3 tokenizer xml \
+ xmlreader xmlwriter zip
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+PLIST_SUB= WWWGRP=${WWWGRP} \
+ WWWOWN=${WWWOWN}
+
+SUB_FILES= pkg-message nginx.conf.sample
+SUB_LIST= WWWDIR=${WWWDIR}
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${WWWDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} \
+ "! -name .git* ! -name Docker* ! -name docker-compose* \
+ ! -path ./.github* ! -name CHANGELOG.md ! -name README.md \
+ ! -name CONTRIBUTING.md ! -name LICENSE")
+ @${MKDIR} ${STAGEDIR}/var/db/freshrss
+ @${LN} -sf /var/db/freshrss ${STAGEDIR}${WWWDIR}/data
+ ${INSTALL_DATA} ${WRKDIR}/nginx.conf.sample \
+ ${STAGEDIR}${PREFIX}/etc/nginx-freshrss.conf.sample
+ ${INSTALL_DATA} ${FILESDIR}/php-fpm.conf.sample \
+ ${STAGEDIR}${PREFIX}/etc/php-fpm-freshrss.conf.sample
+
+post-install:
+ @(cd ${STAGEDIR}${WWWDIR} && \
+ ${FIND} . -type f -o -type l | ${SED} 's|^\./|%%WWWDIR%%/|' | \
+ ${SORT}) >> ${TMPPLIST}
+ @${ECHO_CMD} "@sample etc/nginx-freshrss.conf.sample" >> ${TMPPLIST}
+ @${ECHO_CMD} "@sample etc/php-fpm-freshrss.conf.sample" >> ${TMPPLIST}
+ @${ECHO_CMD} "@dir(%%WWWOWN%%,%%WWWGRP%%,0750) /var/db/freshrss" >> ${TMPPLIST}
+
+.include <bsd.port.mk>