diff options
author | ale <ale@FreeBSD.org> | 2018-12-10 22:13:53 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2018-12-10 22:13:53 +0800 |
commit | a8df716a56679b54e3d2e166238ece90d2c5e859 (patch) | |
tree | bc24849165bb7c061ac797009a594241c6e29a32 /mail | |
parent | 4131d4479f63de876e0cea455a7c1b0ba0b17c72 (diff) | |
download | freebsd-ports-gnome-a8df716a56679b54e3d2e166238ece90d2c5e859.tar.gz freebsd-ports-gnome-a8df716a56679b54e3d2e166238ece90d2c5e859.tar.zst freebsd-ports-gnome-a8df716a56679b54e3d2e166238ece90d2c5e859.zip |
Add newsyslog script for log rotate [1].
Don't set DB backends as mutually exclusive [2].
PR: 210195 [1], 221764 [2]
Submitted by: ler, crees
Diffstat (limited to 'mail')
-rw-r--r-- | mail/roundcube/Makefile | 17 | ||||
-rw-r--r-- | mail/roundcube/files/newsyslog.conf.in | 3 |
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 |