1 |
commit: cc93c35abde4e5195264af373116d84021ef32e9 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 11 20:38:12 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 11 21:18:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc93c35a |
7 |
|
8 |
net-ftp/frox: migrate to GLEP 81 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/781386 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-ftp/frox/frox-0.7.18-r8.ebuild | 89 ++++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 89 insertions(+) |
16 |
|
17 |
diff --git a/net-ftp/frox/frox-0.7.18-r8.ebuild b/net-ftp/frox/frox-0.7.18-r8.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..f6b1a1a13c4 |
20 |
--- /dev/null |
21 |
+++ b/net-ftp/frox/frox-0.7.18-r8.ebuild |
22 |
@@ -0,0 +1,89 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit autotools |
29 |
+ |
30 |
+DESCRIPTION="A transparent ftp proxy" |
31 |
+SRC_URI="http://frox.sourceforge.net/download/${P}.tar.bz2" |
32 |
+HOMEPAGE="http://frox.sourceforge.net/" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="amd64 ~ppc x86" |
37 |
+IUSE="clamav ssl transparent" |
38 |
+ |
39 |
+DEPEND=" |
40 |
+ acct-group/ftpproxy |
41 |
+ acct-user/ftpproxy |
42 |
+ clamav? ( >=app-antivirus/clamav-0.80 ) |
43 |
+ kernel_linux? ( >=sys-kernel/linux-headers-2.6 ) |
44 |
+ ssl? ( |
45 |
+ dev-libs/openssl:0= |
46 |
+ ) |
47 |
+" |
48 |
+ |
49 |
+RDEPEND="${DEPEND}" |
50 |
+ |
51 |
+# INSTALL has useful filewall rules |
52 |
+DOCS=( |
53 |
+ BUGS README |
54 |
+ doc/CREDITS doc/ChangeLog doc/FAQ doc/INSTALL |
55 |
+ doc/INTERNALS doc/README.transdata doc/RELEASE |
56 |
+ doc/SECURITY doc/TODO |
57 |
+) |
58 |
+ |
59 |
+pkg_setup() { |
60 |
+ use clamav && ewarn "Virus scanner potentialy broken in chroot - see bug #81035" |
61 |
+} |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ HTML_DOCS=( doc/*.html doc/*.sgml ) |
65 |
+ |
66 |
+ default |
67 |
+ |
68 |
+ eapply "${FILESDIR}/${PV}-respect-CFLAGS.patch" |
69 |
+ eapply "${FILESDIR}/${PV}-netfilter-includes.patch" |
70 |
+ eapply "${FILESDIR}/${P}-config.patch" |
71 |
+ eapply "${FILESDIR}/${P}-no-common.patch" |
72 |
+ |
73 |
+ if use clamav ; then |
74 |
+ sed -e "s:^# VirusScanner.*:# VirusScanner '\"/usr/bin/clamscan\" \"%s\"':" \ |
75 |
+ -i "src/${PN}.conf" || die |
76 |
+ fi |
77 |
+ |
78 |
+ mv configure.in configure.ac || die |
79 |
+ eautoreconf |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ local myeconfargs=( |
84 |
+ --enable-http-cache --enable-local-cache |
85 |
+ --enable-procname |
86 |
+ --enable-configfile=/etc/frox.conf |
87 |
+ $(use_enable !kernel_linux libiptc) |
88 |
+ $(use_enable clamav virus-scan) |
89 |
+ $(use_enable ssl) |
90 |
+ $(use_enable transparent transparent-data) |
91 |
+ $(use_enable !transparent ntp) |
92 |
+ ) |
93 |
+ |
94 |
+ econf "${myeconfargs[@]}" |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ default |
99 |
+ |
100 |
+ keepdir /var/log/"${PN}" |
101 |
+ |
102 |
+ fowners ftpproxy:ftpproxy /var/log/frox |
103 |
+ |
104 |
+ newman "doc/${PN}.man" "${PN}.man.8" |
105 |
+ newman "doc/${PN}.conf.man" "${PN}.conf.man.5" |
106 |
+ |
107 |
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
108 |
+ |
109 |
+ insinto /etc |
110 |
+ newins "src/${PN}.conf" "${PN}.conf.example" |
111 |
+} |