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

(-)tinyproxy-1.8.1.ebuild (-6 / +18 lines)
Lines 19-30 Link Here
19
DEPEND="app-text/asciidoc"
19
DEPEND="app-text/asciidoc"
20
RDEPEND=""
20
RDEPEND=""
21
21
22
pkg_setup() {
23
	enewgroup tinyproxy
24
	enewuser tinyproxy -1 -1 -1 tinyproxy
25
}
26
22
src_prepare() {
27
src_prepare() {
23
	epatch "${FILESDIR}"/${P}-ldflags.patch
28
	epatch "${FILESDIR}"/${P}-ldflags.patch
24
	eautoreconf
29
	eautoreconf
25
}
30
}
31
26
src_configure() {
32
src_configure() {
27
	econf \
33
	econf \
34
		--sysconfdir=/etc/tinyproxy \
35
		--localstatedir=/var \
28
		$(use_enable filter-proxy filter) \
36
		$(use_enable filter-proxy filter) \
29
		$(use_enable reverse-proxy reverse) \
37
		$(use_enable reverse-proxy reverse) \
30
		$(use_enable transparent-proxy transparent) \
38
		$(use_enable transparent-proxy transparent) \
Lines 35-52 Link Here
35
}
43
}
36
44
37
src_install() {
45
src_install() {
38
	sed -i \
39
		-e 's:mkdir $(datadir)/tinyproxy:mkdir -p $(DESTDIR)$(datadir)/tinyproxy:' \
40
		Makefile
41
	make DESTDIR="${D}" install || die "install failed"
46
	make DESTDIR="${D}" install || die "install failed"
42
47
43
	dodoc AUTHORS ChangeLog NEWS README TODO
48
	dodoc AUTHORS ChangeLog NEWS README TODO
44
	mv "${D}/usr/share/tinyproxy" "${D}/usr/share/doc/${PF}/html"
45
49
46
	newinitd "${FILESDIR}/tinyproxy.initd" tinyproxy
50
	newinitd "${FILESDIR}/tinyproxy.initd" tinyproxy
51
52
	diropts -m0755 -o tinyproxy -g tinyproxy
53
	keepdir /var/log/tinyproxy /var/run/tinyproxy
54
55
	dosed 's:nobody:tinyproxy:g' /etc/tinyproxy/tinyproxy.conf
47
}
56
}
48
57
49
pkg_postinst() {
58
pkg_postinst() {
50
	einfo "For filtering domains and URLs, enable filter option in the configuration file"
59
	if use filter-proxy; then
51
	einfo "and add them to the filter file (one domain or URL per line)."
60
		echo
61
		einfo "For filtering domains and URLs, enable filter option in the configuration file"
62
		einfo "and add them to the filter file (one domain or URL per line)."
63
	fi
52
}
64
}

Return to bug 321747