aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2018-12-10 14:13:53 +0000
committerAlex Dupre <ale@FreeBSD.org>2018-12-10 14:13:53 +0000
commit311c59e65a123c7d7d132c25d5d18e32dc9404ac (patch)
treebc24849165bb7c061ac797009a594241c6e29a32 /mail
parentaf85a3ec4d6194b0a886fcfc2f9237f725557376 (diff)
downloadports-311c59e65a123c7d7d132c25d5d18e32dc9404ac.tar.gz
ports-311c59e65a123c7d7d132c25d5d18e32dc9404ac.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/roundcube/Makefile17
-rw-r--r--mail/roundcube/files/newsyslog.conf.in3
2 files changed, 17 insertions, 3 deletions
diff --git a/mail/roundcube/Makefile b/mail/roundcube/Makefile
index 033025da10ff..f029312717fc 100644
--- a/mail/roundcube/Makefile
+++ b/mail/roundcube/Makefile
@@ -2,6 +2,7 @@
PORTNAME= roundcube
DISTVERSION= 1.3.8
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES?= mail www
MASTER_SITES= https://github.com/roundcube/roundcubemail/releases/download/${DISTVERSION}/
@@ -28,9 +29,9 @@ CPE_VENDOR= roundcube
USE_PHP= pcre mbstring session iconv dom xml json intl zip filter openssl fileinfo exif
-OPTIONS_DEFINE= LDAP GD PSPELL NSC DOCS
-OPTIONS_SINGLE= DB
-OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE
+OPTIONS_DEFINE= LDAP GD PSPELL NSC DOCS EXAMPLES
+OPTIONS_MULTI= DB
+OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT=MYSQL
DB_DESC= Database backend
@@ -51,6 +52,8 @@ PGSQL_VARS= use_php+=pdo_pgsql
PSPELL_VARS= use_php+=pspell
SQLITE_VARS= use_php+=pdo_sqlite
+SUB_FILES= newsyslog.conf
+
post-extract-NSC:
@${CP} ${FILESDIR}/spellchecker.php ${WRKSRC}
@@ -76,4 +79,12 @@ do-install-DOCS-on:
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
+do-install-EXAMPLES-on:
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKDIR}/newsyslog.conf ${STAGEDIR}${EXAMPLESDIR}
+ @${ECHO_CMD} '@dir etc/newsyslog.conf.d' \
+ >> ${TMPPLIST}
+ @${ECHO_CMD} '@sample ${EXAMPLESDIR}/newsyslog.conf etc/newsyslog.conf.d/roundcube.conf' \
+ >> ${TMPPLIST}
+
.include <bsd.port.mk>
diff --git a/mail/roundcube/files/newsyslog.conf.in b/mail/roundcube/files/newsyslog.conf.in
new file mode 100644
index 000000000000..d8206d1021fb
--- /dev/null
+++ b/mail/roundcube/files/newsyslog.conf.in
@@ -0,0 +1,3 @@
+# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
+%%WWWDIR%%/roundcube/logs/errors www:www 644 10 1000 * XCBN
+%%WWWDIR%%/roundcube/logs/sendmail www:www 644 10 1000 * XCBN