1 |
commit: 2a0014ed41fbf6dbb2a60f88b1227859177215fc |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 9 15:46:50 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 9 16:18:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a0014ed |
7 |
|
8 |
net-ftp/frox: Support libressl (#565374) |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
|
12 |
net-ftp/frox/files/0.7.18-netfilter-includes.patch | 4 +- |
13 |
net-ftp/frox/files/0.7.18-respect-CFLAGS.patch | 4 +- |
14 |
net-ftp/frox/frox-0.7.18-r6.ebuild | 86 ++++++++++++++++++++++ |
15 |
3 files changed, 90 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/net-ftp/frox/files/0.7.18-netfilter-includes.patch b/net-ftp/frox/files/0.7.18-netfilter-includes.patch |
18 |
index e40ce52..889f421 100644 |
19 |
--- a/net-ftp/frox/files/0.7.18-netfilter-includes.patch |
20 |
+++ b/net-ftp/frox/files/0.7.18-netfilter-includes.patch |
21 |
@@ -1,5 +1,5 @@ |
22 |
---- configure.in.ori 2012-03-01 22:32:17.044450088 +0100 |
23 |
-+++ configure.in 2012-03-01 22:36:40.995882948 +0100 |
24 |
+--- a/configure.in.ori 2012-03-01 22:32:17.044450088 +0100 |
25 |
++++ b/configure.in 2012-03-01 22:36:40.995882948 +0100 |
26 |
@@ -331,7 +331,12 @@ |
27 |
AC_HEADER_STDC |
28 |
AC_HEADER_SYS_WAIT |
29 |
|
30 |
diff --git a/net-ftp/frox/files/0.7.18-respect-CFLAGS.patch b/net-ftp/frox/files/0.7.18-respect-CFLAGS.patch |
31 |
index 9fb54ac..8076d91 100644 |
32 |
--- a/net-ftp/frox/files/0.7.18-respect-CFLAGS.patch |
33 |
+++ b/net-ftp/frox/files/0.7.18-respect-CFLAGS.patch |
34 |
@@ -1,5 +1,5 @@ |
35 |
---- configure.in 2005-02-04 11:24:55.000000000 +0100 |
36 |
-+++ configure.in 2012-03-01 22:56:25.985725178 +0100 |
37 |
+--- a/configure.in 2005-02-04 11:24:55.000000000 +0100 |
38 |
++++ b/configure.in 2012-03-01 22:56:25.985725178 +0100 |
39 |
@@ -46,11 +46,9 @@ |
40 |
;; |
41 |
*) |
42 |
|
43 |
diff --git a/net-ftp/frox/frox-0.7.18-r6.ebuild b/net-ftp/frox/frox-0.7.18-r6.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000..a6bc491 |
46 |
--- /dev/null |
47 |
+++ b/net-ftp/frox/frox-0.7.18-r6.ebuild |
48 |
@@ -0,0 +1,86 @@ |
49 |
+# Copyright 1999-2016 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+# $Id$ |
52 |
+ |
53 |
+EAPI=6 |
54 |
+inherit autotools eutils user |
55 |
+ |
56 |
+DESCRIPTION="A transparent ftp proxy" |
57 |
+SRC_URI="http://frox.sourceforge.net/download/${P}.tar.bz2" |
58 |
+HOMEPAGE="http://frox.sourceforge.net/" |
59 |
+ |
60 |
+LICENSE="GPL-2" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~ppc ~x86" |
63 |
+IUSE="clamav libressl ssl transparent" |
64 |
+ |
65 |
+DEPEND=" |
66 |
+ clamav? ( >=app-antivirus/clamav-0.80 ) |
67 |
+ ssl? ( |
68 |
+ !libressl? ( dev-libs/openssl:0 ) |
69 |
+ libressl? ( dev-libs/libressl:0= ) ) |
70 |
+ kernel_linux? ( >=sys-kernel/linux-headers-2.6 ) |
71 |
+" |
72 |
+RDEPEND="${DEPEND}" |
73 |
+ |
74 |
+# INSTALL has useful filewall rules |
75 |
+DOCS=( |
76 |
+ BUGS README |
77 |
+ doc/CREDITS doc/ChangeLog doc/FAQ doc/INSTALL |
78 |
+ doc/INTERNALS doc/README.transdata doc/RELEASE |
79 |
+ doc/SECURITY doc/TODO |
80 |
+) |
81 |
+ |
82 |
+pkg_setup() { |
83 |
+ enewgroup ftpproxy |
84 |
+ enewuser ftpproxy -1 -1 /var/spool/frox ftpproxy |
85 |
+ |
86 |
+ use clamav && ewarn "Virus scanner potentialy broken in chroot - see bug #81035" |
87 |
+} |
88 |
+ |
89 |
+src_prepare () { |
90 |
+ HTML_DOCS=( doc/*.html doc/*.sgml ) |
91 |
+ |
92 |
+ default |
93 |
+ |
94 |
+ eapply "${FILESDIR}/${PV}-respect-CFLAGS.patch" |
95 |
+ eapply "${FILESDIR}/${PV}-netfilter-includes.patch" |
96 |
+ eapply "${FILESDIR}/${P}-config.patch" |
97 |
+ |
98 |
+ if use clamav ; then |
99 |
+ sed -i -e "s:^# VirusScanner.*:# VirusScanner '\"/usr/bin/clamscan\" \"%s\"':" \ |
100 |
+ "src/${PN}.conf" || die |
101 |
+ fi |
102 |
+ |
103 |
+ mv configure.in configure.ac || die |
104 |
+ eautoreconf |
105 |
+} |
106 |
+ |
107 |
+src_configure() { |
108 |
+ econf \ |
109 |
+ --enable-http-cache --enable-local-cache \ |
110 |
+ --enable-procname \ |
111 |
+ --enable-configfile=/etc/frox.conf \ |
112 |
+ $(use_enable !kernel_linux libiptc) \ |
113 |
+ $(use_enable clamav virus-scan) \ |
114 |
+ $(use_enable ssl) \ |
115 |
+ $(use_enable transparent transparent-data) \ |
116 |
+ $(use_enable !transparent ntp) |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ default |
121 |
+ |
122 |
+ keepdir /var/{log,spool}/"${PN}" |
123 |
+ |
124 |
+ fperms 700 /var/spool/frox |
125 |
+ fowners ftpproxy:ftpproxy /var/{log,spool}/frox |
126 |
+ |
127 |
+ newman "doc/${PN}.man" "${PN}.man.8" |
128 |
+ newman "doc/${PN}.conf.man" "${PN}.conf.man.5" |
129 |
+ |
130 |
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
131 |
+ |
132 |
+ insinto /etc |
133 |
+ newins "src/${PN}.conf" "${PN}.conf.example" |
134 |
+} |