b61dd415a2
Changelog at <http://tt-rss.org/redmine/versions/96>.
91 lines
2.1 KiB
Makefile
91 lines
2.1 KiB
Makefile
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tt-rss
|
|
PORTVERSION= 1.10
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Tiny Tiny RSS: web-based news feed (RSS/Atom) aggregator
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= gothfox
|
|
GH_PROJECT= Tiny-Tiny-RSS
|
|
GH_COMMIT= 02b0d14
|
|
|
|
NO_BUILD= yes
|
|
NO_STAGE= yes
|
|
|
|
USE_PHP= ctype dom hash json mbstring pcntl posix session xmlrpc
|
|
WANT_PHP_WEB= yes
|
|
WANT_PHP_CLI= yes
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
USE_RC_SUBR= ttrssd
|
|
|
|
.if defined(WITH_PGSQL)
|
|
USE_PHP+= pgsql
|
|
DB= pgsql
|
|
.else
|
|
USE_PHP+= mysql
|
|
DB= mysql
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_CURL)
|
|
USE_PHP+= curl
|
|
.endif
|
|
|
|
SUB_FILES= httpd-tt-rss.conf pkg-message
|
|
SUB_LIST= DB=${DB} WWWOWN=${WWWOWN}
|
|
PLIST_SUB= WWWOWN=${WWWOWN}:${WWWGRP}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
PHP2FIX= config.php-dist update.php update_daemon2.php
|
|
|
|
SCRIPTS= update.php update_daemon2.php
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} " By default, Tiny Tiny RSS will use MySQL as a back-end;"
|
|
@${ECHO_MSG} " define WITH_PGSQL if you prefer PostgreSQL."
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} " CURL is required for SimplePie, but if you prefer Magpie,"
|
|
@${ECHO_MSG} " you can define WITHOUT_CURL."
|
|
@${ECHO_MSG}
|
|
|
|
pre-configure:
|
|
.for script in ${PHP2FIX}
|
|
${REINPLACE_CMD} -e 's|/usr/bin/php|${LOCALBASE}/bin/php|' \
|
|
-e 's|/usr/bin/env php| ${LOCALBASE}/bin/php|' \
|
|
${WRKSRC}/${script}
|
|
.endfor
|
|
|
|
do-configure:
|
|
.if !defined(WITH_PGSQL)
|
|
${REINPLACE_CMD} -e '/DB_TYPE/s|pgsql|mysql|;s|mysql$$|pgsql|' \
|
|
${WRKSRC}/config.php-dist
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${WWWDIR} ${DATADIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "*" ${WWWDIR} "! -name LICENSE")
|
|
${RM} -rf ${WWWDIR}/debian
|
|
${MKDIR} ${WWWDIR}/icons/ # Not used for fresh installation
|
|
${TOUCH} ${WWWDIR}/icons/.empty
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
${CHMOD} ug+x ${SCRIPTS:S|^|${WWWDIR}/|}
|
|
${CHMOD} ug+x ${WWWDIR}/utils/*.sh ${WWWDIR}/utils/*.pl
|
|
${INSTALL_DATA} ${WRKDIR}/httpd-tt-rss.conf ${DATADIR}
|
|
if [ ! -f ${WWWDIR}/config.php ]; then \
|
|
${CP} -p ${WWWDIR}/config.php-dist ${WWWDIR}/config.php; \
|
|
${CHMOD} go-r ${WWWDIR}/config.php; \
|
|
fi
|
|
|
|
post-install:
|
|
@${ECHO_MSG}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_MSG}
|
|
|
|
.include <bsd.port.mk>
|