Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 10782
Collapse All | Expand All

(-)amanda-2.4.2-r2.ebuild (-5 / +16 lines)
Lines 16-26 Link Here
16
pkg_setup() {
16
pkg_setup() {
17
	echo "Adding amanda user to system."
17
	echo "Adding amanda user to system."
18
	useradd -c "Amanda backup user" -g tape -m amanda
18
	useradd -c "Amanda backup user" -g tape -m amanda
19
20
	echo "Creating /etc/amandates"
21
	touch /etc/amandates
22
	chown amanda /etc/amandates
23
	chgrp tape /etc/amandates
24
}
19
}
25
20
26
src_compile() {
21
src_compile() {
Lines 59-64 Link Here
59
		ewarn "  xinetd stub files for amanda are located in \
54
		ewarn "  xinetd stub files for amanda are located in \
60
/usr/portage/app-admin/amanda/files."
55
/usr/portage/app-admin/amanda/files."
61
	fi
56
	fi
57
58
	echo "Creating /etc/amandates"
59
	touch /etc/amandates
60
	chown amanda /etc/amandates
61
	chgrp tape /etc/amandates
62
63
	echo "Creating /etc/amanda and populating"
64
	mkdir -p /etc/amanda/DailySet1
65
	cp ${S}p2/example/*.conf /etc/amanda/DailySet1
66
	cp ${S}p2/example/disklist /etc/amanda/DailySet1
67
	chown -R amanda:tape /etc/amanda
68
69
	cd ~amanda
70
	mkdir -p DailySet1/index
71
	mkdir gnutar-lists
72
	chown -R amanda:tape *
62
}
73
}
63
74
64
pkg_postrm() {
75
pkg_postrm() {

Return to bug 10782