summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild b/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild
index ac0b0c771d7f..83adc78f2965 100644
--- a/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild
+++ b/net-proxy/tinyproxy/tinyproxy-1.8.3-r4.ebuild
@@ -21,18 +21,21 @@ REQUIRED_USE="test? ( xtinyproxy-header )"
DEPEND="!minimal? ( app-text/asciidoc )"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.1-ldflags.patch
+ "${FILESDIR}"/${P}-r2-DoS-Prevention.patch
+
+)
+
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} "" "" "" ${PN}
}
src_prepare() {
- default
+ use minimal && PATCHES+=( "${FILESDIR}/${PN}-1.8.1-minimal.patch" )
- eapply "${FILESDIR}"/${PN}-1.8.1-ldflags.patch
- eapply "${FILESDIR}"/${P}-r2-DoS-Prevention.patch
-
- use minimal && epatch "${FILESDIR}/${PN}-1.8.1-minimal.patch"
+ default
sed -i \
-e "s|nobody|${PN}|g" \