FreeBSD Bugzilla – Attachment 192910 Details for
Bug 227853
[PATCH] archivers/urbackup-server: add default config file and log rotation (via newsyslog)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add default config file and log rotation (via newsyslog)
urbackup-server-2.2.11_1.diff (text/plain), 4.80 KB, created by
freebsd
on 2018-04-29 14:49:02 UTC
(
hide
)
Description:
add default config file and log rotation (via newsyslog)
Filename:
MIME Type:
Creator:
freebsd
Created:
2018-04-29 14:49:02 UTC
Size:
4.80 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 468629) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= urbackup-server > DISTVERSION= 2.2.11 >+PORTREVISION= 1 > CATEGORIES= archivers > MASTER_SITES= https://hndl.urbackup.org/Server/${DISTVERSION}/ > >@@ -24,9 +25,16 @@ > > USE_RC_SUBR= urbackup_server > >-SUB_FILES= pkg-message >+SUB_FILES= pkg-message urbackupsrv.conf.sample-daemon > > post-install: >+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/urbackup >+ ${INSTALL_DATA} ${WRKDIR}/urbackupsrv.conf.sample-daemon \ >+ ${STAGEDIR}${PREFIX}/etc/urbackup/urbackupsrv.conf.sample >+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d >+ ${INSTALL_DATA} ${FILESDIR}/urbackupsrv.conf.sample-newsyslog \ >+ ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/urbackupsrv.conf.sample >+ > ${INSTALL_MAN} ${WRKSRC}/docs/urbackupsrv.1 ${STAGEDIR}${MANPREFIX}/man/man1 > > .include <bsd.port.mk> >Index: files/pkg-message.in >=================================================================== >--- files/pkg-message.in (revision 468629) >+++ files/pkg-message.in (working copy) >@@ -6,10 +6,16 @@ > TO START URBACKUP SERVER ON BOOT: > sysrc urbackup_server_enable=YES > >-START MANUALLY: >+TO START MANUALLY: > service urbackup_server start > >-Once started, visit the following to configure: >+The server daemon's configuration file is located at: >+%%PREFIX%%/etc/urbackup/urbackupsrv.conf >+ >+Log rotation can be configured at: >+%%PREFIX%%/etc/newsyslog.conf.d/urbackupsrv.conf >+ >+Once started, configure backup settings and manage backups at: > http://localhost:55414 > > SECURITY WARNING: >Index: files/urbackup_server.in >=================================================================== >--- files/urbackup_server.in (revision 468629) >+++ files/urbackup_server.in (working copy) >@@ -25,6 +25,6 @@ > command=%%PREFIX%%/bin/urbackupsrv > pidfile=/var/run/urbackupsrv.pid > >-command_args="run -d -w $pidfile" >+command_args="run -d -w $pidfile -c %%PREFIX%%/etc/urbackup/urbackupsrv.conf" > > run_rc_command "$1" >Index: files/urbackupsrv.conf.sample-daemon.in >=================================================================== >--- files/urbackupsrv.conf.sample-daemon.in (nonexistent) >+++ files/urbackupsrv.conf.sample-daemon.in (working copy) >@@ -0,0 +1,37 @@ >+# >+# This is parsed as a key=value file >+# >+ >+#Port for FastCGI requests >+FASTCGI_PORT=55413 >+ >+#Enable internal HTTP server >+HTTP_SERVER="true" >+ >+#Port for the web interface >+#(if internal HTTP server is enabled) >+HTTP_PORT=55414 >+ >+#Log file name >+#If you change the LOGFILE, you should also change the "logfilename" in %%PREFIX%%/etc/newsyslog.conf.d/urbackupsrv.conf >+LOGFILE="/var/log/urbackup.log" >+ >+#Either debug,warn,info or error >+LOGLEVEL="warn" >+ >+#Temporary file directory >+# -- this may get very large depending on the advanced settings >+DAEMON_TMPDIR="/tmp" >+ >+#Tmp file directory for sqlite temporary tables. >+#You might want to put the databases on another filesystem than the other temporary files. >+#Default is the same as DAEMON_TMPDIR >+SQLITE_TMPDIR="" >+ >+#Interfaces from which to send broadcasts. (Default: all). >+#Comma separated -- e.g. "eth0,eth1" >+BROADCAST_INTERFACES="" >+ >+#User the urbackupsrv process runs as >+#If you change the USER, you should also change the "[owner:group]" in %%PREFIX%%/etc/newsyslog.conf.d/urbackupsrv.conf >+USER="urbackup" > >Property changes on: files/urbackupsrv.conf.sample-daemon.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/urbackupsrv.conf.sample-newsyslog >=================================================================== >--- files/urbackupsrv.conf.sample-newsyslog (nonexistent) >+++ files/urbackupsrv.conf.sample-newsyslog (working copy) >@@ -0,0 +1,2 @@ >+# logfilename [owner:group] mode count size(kb) when flags [/pid_file] [sig_num] >+/var/log/urbackup.log urbackup:urbackup 644 10 5120 * JC > >Property changes on: files/urbackupsrv.conf.sample-newsyslog >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 468629) >+++ pkg-plist (working copy) >@@ -4,6 +4,8 @@ > @mode 0444 > man/man1/urbackupsrv.1.gz > @mode 0644 >+@sample etc/urbackup/urbackupsrv.conf.sample >+@sample etc/newsyslog.conf.d/urbackupsrv.conf.sample > share/urbackup/server-license.txt > share/urbackup/urbackup_ecdsa409k1.pub > share/urbackup/www/css/bootstrap-flat-extras.chash-958e73e0ffd138319a4c6be29fa24392.min.css >@@ -140,3 +142,6 @@ > @owner urbackup > @group urbackup > @dir /var/urbackup >+@mode 0555 >+@owner root >+@group wheel
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 227853
: 192910 |
195902
|
195903