Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 111677 | Differences between
and this patch

Collapse All | Expand All

(-)bacula-1.38.3.ebuild-orig (-8 / +19 lines)
Lines 56-70 Link Here
56
56
57
	# This changes the default conf files to /etc/bacula files
57
	# This changes the default conf files to /etc/bacula files
58
	sed -i -e 's:"./gnome-console.conf":"/etc/bacula/gnome-console.conf":' \
58
	sed -i -e 's:"./gnome-console.conf":"/etc/bacula/gnome-console.conf":' \
59
		src/gnome-console/console.c src/gnome2-console/console.c
59
		src/gnome-console/console.c src/gnome2-console/console.c \
60
		|| die "sed failed"
60
	sed -i -e 's:"./tray-monitor.conf":"/etc/bacula/tray-monitor.conf":' \
61
	sed -i -e 's:"./tray-monitor.conf":"/etc/bacula/tray-monitor.conf":' \
61
		src/tray-monitor/tray-monitor.c
62
		src/tray-monitor/tray-monitor.c \
63
		|| die "sed failed"
62
	sed -i -e 's:"bacula-sd.conf":"/etc/bacula/bacula-sd.conf":' src/stored/bls.c \
64
	sed -i -e 's:"bacula-sd.conf":"/etc/bacula/bacula-sd.conf":' src/stored/bls.c \
63
		src/stored/bextract.c src/stored/bcopy.c src/stored/bscan.c src/stored/btape.c \
65
		src/stored/bextract.c src/stored/bcopy.c src/stored/bscan.c src/stored/btape.c \
64
		src/stored/stored.c
66
		src/stored/stored.c \
65
	sed -i -e 's:"./bacula-fd.conf":"/etc/bacula/bacula-fd.conf":' src/filed/filed.c
67
		|| die "sed failed"
66
	sed -i -e 's:"./bacula-dir.conf":"/etc/bacula/bacula-dir.conf":' src/dird/dird.c
68
	sed -i -e 's:"./bacula-fd.conf":"/etc/bacula/bacula-fd.conf":' \
67
	sed -i -e 's:"./bconsole.conf":"/etc/bacula/bconsole.conf":' src/console/console.c
69
		src/filed/filed.c \
70
		|| die "sed failed"
71
	sed -i -e 's:"./bacula-dir.conf":"/etc/bacula/bacula-dir.conf":' \
72
		src/dird/dird.c \
73
		|| die "sed failed"
74
	sed -i -e 's:"./bconsole.conf":"/etc/bacula/bconsole.conf":' \
75
		src/console/console.c \
76
		|| die "sed failed"
68
}
77
}
69
78
70
src_compile() {
79
src_compile() {
Lines 144-150 Link Here
144
	else
153
	else
145
		USEDB=''
154
		USEDB=''
146
	fi
155
	fi
147
	sed -i -e "s:%%USE_DB%%:${USEDB}:" ${D}/etc/init.d/bacula
156
	sed -i -e "s:%%USE_DB%%:${USEDB}:" ${D}/etc/init.d/bacula \
157
		|| die "sed failed"
148
158
149
	insinto /etc/conf.d
159
	insinto /etc/conf.d
150
	newins ${FILESDIR}/bacula-conf bacula
160
	newins ${FILESDIR}/bacula-conf bacula
Lines 153-159 Link Here
153
	else
163
	else
154
		SERVICES='sd fd dir'
164
		SERVICES='sd fd dir'
155
	fi
165
	fi
156
	sed -i -e "s:%%SERVICES%%:${SERVICES}:" ${D}/etc/conf.d/bacula
166
	sed -i -e "s:%%SERVICES%%:${SERVICES}:" ${D}/etc/conf.d/bacula \
167
		|| die "sed failed"
157
168
158
	chgrp bacula ${D}/usr/sbin/*
169
	chgrp bacula ${D}/usr/sbin/*
159
	chgrp -R bacula ${D}/etc/bacula
170
	chgrp -R bacula ${D}/etc/bacula

Return to bug 111677