View | Details | Raw Unified | Return to bug 227853 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +9 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	urbackup-server
3
PORTNAME=	urbackup-server
4
DISTVERSION=	2.2.11
4
DISTVERSION=	2.2.11
5
PORTREVISION=	1
5
CATEGORIES=	archivers
6
CATEGORIES=	archivers
6
MASTER_SITES=	https://hndl.urbackup.org/Server/${DISTVERSION}/
7
MASTER_SITES=	https://hndl.urbackup.org/Server/${DISTVERSION}/
7
8
Lines 24-32 Link Here
24
25
25
USE_RC_SUBR=	urbackup_server
26
USE_RC_SUBR=	urbackup_server
26
27
27
SUB_FILES=	pkg-message
28
SUB_FILES=	pkg-message urbackupsrv.conf.sample-daemon
28
29
29
post-install:
30
post-install:
31
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/urbackup
32
	${INSTALL_DATA} ${WRKDIR}/urbackupsrv.conf.sample-daemon \
33
		${STAGEDIR}${PREFIX}/etc/urbackup/urbackupsrv.conf.sample
34
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
35
	${INSTALL_DATA} ${FILESDIR}/urbackupsrv.conf.sample-newsyslog \
36
		${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/urbackupsrv.conf.sample
37
30
	${INSTALL_MAN} ${WRKSRC}/docs/urbackupsrv.1 ${STAGEDIR}${MANPREFIX}/man/man1
38
	${INSTALL_MAN} ${WRKSRC}/docs/urbackupsrv.1 ${STAGEDIR}${MANPREFIX}/man/man1
31
39
32
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)files/pkg-message.in (-2 / +8 lines)
Lines 6-15 Link Here
6
TO START URBACKUP SERVER ON BOOT:
6
TO START URBACKUP SERVER ON BOOT:
7
sysrc urbackup_server_enable=YES
7
sysrc urbackup_server_enable=YES
8
8
9
START MANUALLY:
9
TO START MANUALLY:
10
service urbackup_server start
10
service urbackup_server start
11
11
12
Once started, visit the following to configure:
12
The server daemon's configuration file is located at:
13
%%PREFIX%%/etc/urbackup/urbackupsrv.conf
14
15
Log rotation can be configured at:
16
%%PREFIX%%/etc/newsyslog.conf.d/urbackupsrv.conf
17
18
Once started, configure backup settings and manage backups at:
13
http://localhost:55414
19
http://localhost:55414
14
20
15
SECURITY WARNING:
21
SECURITY WARNING:
(-)files/urbackup_server.in (-1 / +1 lines)
Lines 25-30 Link Here
25
command=%%PREFIX%%/bin/urbackupsrv
25
command=%%PREFIX%%/bin/urbackupsrv
26
pidfile=/var/run/urbackupsrv.pid
26
pidfile=/var/run/urbackupsrv.pid
27
27
28
command_args="run -d -w $pidfile"
28
command_args="run -d -w $pidfile -c %%PREFIX%%/etc/urbackup/urbackupsrv.conf"
29
29
30
run_rc_command "$1"
30
run_rc_command "$1"
(-)files/urbackupsrv.conf.sample-daemon.in (+37 lines)
Line 0 Link Here
1
#
2
# This is parsed as a key=value file
3
#
4
5
#Port for FastCGI requests
6
FASTCGI_PORT=55413
7
8
#Enable internal HTTP server
9
HTTP_SERVER="true"
10
11
#Port for the web interface
12
#(if internal HTTP server is enabled)
13
HTTP_PORT=55414
14
15
#Log file name
16
#If you change the LOGFILE, you should also change the "logfilename" in %%PREFIX%%/etc/newsyslog.conf.d/urbackupsrv.conf 
17
LOGFILE="/var/log/urbackup.log"
18
19
#Either debug,warn,info or error
20
LOGLEVEL="warn"
21
22
#Temporary file directory
23
# -- this may get very large depending on the advanced settings
24
DAEMON_TMPDIR="/tmp"
25
26
#Tmp file directory for sqlite temporary tables.
27
#You might want to put the databases on another filesystem than the other temporary files.
28
#Default is the same as DAEMON_TMPDIR
29
SQLITE_TMPDIR=""
30
31
#Interfaces from which to send broadcasts. (Default: all).
32
#Comma separated -- e.g. "eth0,eth1"
33
BROADCAST_INTERFACES=""
34
35
#User the urbackupsrv process runs as
36
#If you change the USER, you should also change the "[owner:group]" in %%PREFIX%%/etc/newsyslog.conf.d/urbackupsrv.conf
37
USER="urbackup"
(-)files/urbackupsrv.conf.sample-newsyslog (+2 lines)
Line 0 Link Here
1
# logfilename		[owner:group]		mode	count	size(kb)	when	flags	[/pid_file]	[sig_num]
2
/var/log/urbackup.log	urbackup:urbackup	644  	10	5120		*	JC
(-)pkg-plist (+5 lines)
Lines 4-9 Link Here
4
@mode 0444
4
@mode 0444
5
man/man1/urbackupsrv.1.gz
5
man/man1/urbackupsrv.1.gz
6
@mode 0644
6
@mode 0644
7
@sample etc/urbackup/urbackupsrv.conf.sample
8
@sample etc/newsyslog.conf.d/urbackupsrv.conf.sample
7
share/urbackup/server-license.txt
9
share/urbackup/server-license.txt
8
share/urbackup/urbackup_ecdsa409k1.pub
10
share/urbackup/urbackup_ecdsa409k1.pub
9
share/urbackup/www/css/bootstrap-flat-extras.chash-958e73e0ffd138319a4c6be29fa24392.min.css
11
share/urbackup/www/css/bootstrap-flat-extras.chash-958e73e0ffd138319a4c6be29fa24392.min.css
Lines 140-142 Link Here
140
@owner urbackup
142
@owner urbackup
141
@group urbackup
143
@group urbackup
142
@dir /var/urbackup
144
@dir /var/urbackup
145
@mode 0555
146
@owner root
147
@group wheel

Return to bug 227853