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

(-)/usr/portage/net-proxy/dansguardian/dansguardian-2.10.0.3.ebuild (-1 / +15 lines)
Lines 36-41 Link Here
36
			die "Obsolete config files detected"
36
			die "Obsolete config files detected"
37
		fi
37
		fi
38
	fi
38
	fi
39
40
	if ! use clamav; then
41
		enewgroup dansguardian
42
		enewuser dansguardian -1 -1 /dev/null dansguardian
43
	fi
39
}
44
}
40
45
41
src_unpack() {
46
src_unpack() {
Lines 58-63 Link Here
58
		myconf="${myconf} --enable-clamd
63
		myconf="${myconf} --enable-clamd
59
			--with-proxyuser=clamav
64
			--with-proxyuser=clamav
60
			--with-proxygroup=clamav"
65
			--with-proxygroup=clamav"
66
	else
67
		myconf="${myconf}
68
			--with-proxyuser=dansguardian
69
			--with-proxygroup=dansguardian"
61
	fi
70
	fi
62
	if use kaspersky; then
71
	if use kaspersky; then
63
		myconf="${myconf} --enable-kavd"
72
		myconf="${myconf} --enable-kavd"
Lines 99-107 Link Here
99
}
108
}
100
109
101
pkg_postinst() {
110
pkg_postinst() {
102
	local runas="nobody:nobody"
111
	local runas="dansguardian:dansguardian"
103
	if use clamav ; then
112
	if use clamav ; then
104
		runas="clamav:clamav"
113
		runas="clamav:clamav"
114
	else
115
		einfo "dansguardian runs as a dedicated user now"
116
		einfo "You may need to remove old ipc files or adjust their ownerhsip."
117
		einfo "By default, those files are /tmp/.dguardianipc"
118
		einfo "and /tmp/.dguardianurlipc"
105
	fi
119
	fi
106
	einfo "The dansguardian daemon will run by default as ${runas}"
120
	einfo "The dansguardian daemon will run by default as ${runas}"
107
121

Return to bug 360177