Ravenports generated: 19 Sep 2022 12:46
[ravenports.git] / bucket_96 / libfilezilla
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               libfilezilla
4 VERSION=                0.39.1
5 KEYWORDS=               ftp
6 VARIANTS=               standard
7 SDESC[standard]=        C++ lib for building platform-independent programs
8 HOMEPAGE=               https://lib.filezilla-project.org
9 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://download.filezilla-project.org/libfilezilla/
13 DISTFILE[1]=            libfilezilla-0.39.1.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         nls
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 BUILD_DEPENDS=          gmp:static:standard
23                         gnutls-devel:primary:standard
24 BUILDRUN_DEPENDS=       gnutls-devel:library:standard
25                         nettle:primary:standard
26
27 USES=                   gettext-tools gmake iconv:wchar_t libtool pkgconfig
28                         c++:primary
29
30 LICENSE=                GPLv2+:complete
31 LICENSE_TERMS=          complete:{{WRKDIR}}/TERMS
32 LICENSE_FILE=           GPLv2+:{{WRKSRC}}/COPYING
33 LICENSE_AWK=            TERMS:"^Documentation"
34 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/README
35 LICENSE_SCHEME=         solo
36
37 FPC_EQUIVALENT=         ftp/libfilezilla
38
39 MUST_CONFIGURE=         gnu
40
41 INSTALL_TARGET=         install-strip
42 SOVERSION=              31.0.0
43
44 [FILE:673:descriptions/desc.primary]
45 libfilezilla is a small and modern C++ library, offering some basic 
46 functionality to build high-performing, platform-independent programs. 
47 Some of the highlights include:
48
49   -  A typesafe, multi-threaded event system that's very simple to use yet 
50 extremely efficient
51   -  Timers for periodic events
52   -  A datetime class that not only tracks timestamp but also their 
53 accuracy, which simplifies dealing with timestamps originating from 
54 different sources
55   -  Simple process handling for spawning child processes with redirected 
56 I/O
57
58 libfilezilla is a cross-platform library for all major operating systems, 
59 including but not limited to Linux, *BSD, OS X and Windows.
60
61
62 [FILE:106:distinfo]
63 f3d6c0df28f33f52cf253cb03fc51579752ae4daef2aac7345a6bd7de623a6c5       622574 libfilezilla-0.39.1.tar.bz2
64
65
66 [FILE:973:manifests/plist.primary]
67 include/libfilezilla/
68  apply.hpp
69  ascii_layer.hpp
70  buffer.hpp
71  encode.hpp
72  encryption.hpp
73  event.hpp
74  event_handler.hpp
75  event_loop.hpp
76  file.hpp
77  format.hpp
78  fsresult.hpp
79  hash.hpp
80  hostname_lookup.hpp
81  impersonation.hpp
82  invoker.hpp
83  iputils.hpp
84  json.hpp
85  jws.hpp
86  libfilezilla.hpp
87  local_filesys.hpp
88  logger.hpp
89  mutex.hpp
90  nonowning_buffer.hpp
91  optional.hpp
92  process.hpp
93  rate_limited_layer.hpp
94  rate_limiter.hpp
95  recursive_remove.hpp
96  rwmutex.hpp
97  shared.hpp
98  signature.hpp
99  socket.hpp
100  string.hpp
101  thread.hpp
102  thread_pool.hpp
103  time.hpp
104  tls_info.hpp
105  tls_layer.hpp
106  tls_system_trust_store.hpp
107  translate.hpp
108  uri.hpp
109  util.hpp
110  version.hpp
111  visibility_helper.hpp
112 include/libfilezilla/aio/
113  aio.hpp
114  reader.hpp
115  writer.hpp
116 include/libfilezilla/glue/
117  unix.hpp
118  wx.hpp
119  wxinvoker.hpp
120 include/libfilezilla/private/
121  defs.hpp
122  visibility.hpp
123 lib/
124  libfilezilla.a
125  libfilezilla.so
126  libfilezilla.so.%%SOMAJOR%%
127  libfilezilla.so.%%SOVERSION%%
128 lib/pkgconfig/libfilezilla.pc
129
130
131 [FILE:2470:manifests/plist.nls]
132 share/locale/an/LC_MESSAGES/libfilezilla.mo
133 share/locale/ar/LC_MESSAGES/libfilezilla.mo
134 share/locale/az/LC_MESSAGES/libfilezilla.mo
135 share/locale/bg_BG/LC_MESSAGES/libfilezilla.mo
136 share/locale/ca/LC_MESSAGES/libfilezilla.mo
137 share/locale/ca_ES@valencia/LC_MESSAGES/libfilezilla.mo
138 share/locale/co/LC_MESSAGES/libfilezilla.mo
139 share/locale/cs_CZ/LC_MESSAGES/libfilezilla.mo
140 share/locale/cy/LC_MESSAGES/libfilezilla.mo
141 share/locale/da/LC_MESSAGES/libfilezilla.mo
142 share/locale/de/LC_MESSAGES/libfilezilla.mo
143 share/locale/el/LC_MESSAGES/libfilezilla.mo
144 share/locale/es/LC_MESSAGES/libfilezilla.mo
145 share/locale/et/LC_MESSAGES/libfilezilla.mo
146 share/locale/eu/LC_MESSAGES/libfilezilla.mo
147 share/locale/fa_IR/LC_MESSAGES/libfilezilla.mo
148 share/locale/fi_FI/LC_MESSAGES/libfilezilla.mo
149 share/locale/fr/LC_MESSAGES/libfilezilla.mo
150 share/locale/gl_ES/LC_MESSAGES/libfilezilla.mo
151 share/locale/he_IL/LC_MESSAGES/libfilezilla.mo
152 share/locale/hr/LC_MESSAGES/libfilezilla.mo
153 share/locale/hu_HU/LC_MESSAGES/libfilezilla.mo
154 share/locale/hy/LC_MESSAGES/libfilezilla.mo
155 share/locale/id_ID/LC_MESSAGES/libfilezilla.mo
156 share/locale/is/LC_MESSAGES/libfilezilla.mo
157 share/locale/it/LC_MESSAGES/libfilezilla.mo
158 share/locale/ja_JP/LC_MESSAGES/libfilezilla.mo
159 share/locale/kab/LC_MESSAGES/libfilezilla.mo
160 share/locale/ko_KR/LC_MESSAGES/libfilezilla.mo
161 share/locale/ky/LC_MESSAGES/libfilezilla.mo
162 share/locale/lo_LA/LC_MESSAGES/libfilezilla.mo
163 share/locale/lt_LT/LC_MESSAGES/libfilezilla.mo
164 share/locale/lv_LV/LC_MESSAGES/libfilezilla.mo
165 share/locale/mk_MK/LC_MESSAGES/libfilezilla.mo
166 share/locale/nb_NO/LC_MESSAGES/libfilezilla.mo
167 share/locale/ne/LC_MESSAGES/libfilezilla.mo
168 share/locale/nl/LC_MESSAGES/libfilezilla.mo
169 share/locale/nn_NO/LC_MESSAGES/libfilezilla.mo
170 share/locale/oc/LC_MESSAGES/libfilezilla.mo
171 share/locale/pl_PL/LC_MESSAGES/libfilezilla.mo
172 share/locale/pt_BR/LC_MESSAGES/libfilezilla.mo
173 share/locale/pt_PT/LC_MESSAGES/libfilezilla.mo
174 share/locale/ro_RO/LC_MESSAGES/libfilezilla.mo
175 share/locale/ru/LC_MESSAGES/libfilezilla.mo
176 share/locale/sk_SK/LC_MESSAGES/libfilezilla.mo
177 share/locale/sl_SI/LC_MESSAGES/libfilezilla.mo
178 share/locale/sr/LC_MESSAGES/libfilezilla.mo
179 share/locale/sv/LC_MESSAGES/libfilezilla.mo
180 share/locale/th_TH/LC_MESSAGES/libfilezilla.mo
181 share/locale/tr/LC_MESSAGES/libfilezilla.mo
182 share/locale/uk_UA/LC_MESSAGES/libfilezilla.mo
183 share/locale/vi_VN/LC_MESSAGES/libfilezilla.mo
184 share/locale/zh_CN/LC_MESSAGES/libfilezilla.mo
185 share/locale/zh_TW/LC_MESSAGES/libfilezilla.mo
186
187
188 [FILE:1894:patches/patch-lib_impersonation.cpp]
189 --- lib/impersonation.cpp.orig  2022-09-05 13:38:02 UTC
190 +++ lib/impersonation.cpp
191 @@ -7,7 +7,11 @@
192  #include <optional>
193  #include <tuple>
194  
195 -#if FZ_UNIX
196 +#if defined(__linux__)
197 +#define SHADOW_SUPPORTED
198 +#endif
199 +
200 +#ifdef SHADOW_SUPPORTED
201  #include <crypt.h>
202  #include <shadow.h>
203  #endif
204 @@ -98,7 +102,7 @@ std::optional<gid_t> get_group(native_st
205         return {};
206  }
207  
208 -#if FZ_UNIX
209 +#ifdef SHADOW_SUPPORTED
210  struct shadow_holder {
211         shadow_holder() = default;
212         shadow_holder(shadow_holder const&) = delete;
213 @@ -190,7 +194,7 @@ std::vector<gid_t> get_supplementary(std
214  
215  bool check_auth(native_string const& username, native_string const& password)
216  {
217 -#if FZ_UNIX
218 +#ifdef SHADOW_SUPPORTED
219         auto shadow = get_shadow(username);
220         if (shadow.shadow_) {
221                 struct crypt_data data{};
222 @@ -236,6 +240,7 @@ bool check_auth(native_string const& use
223  impersonation_token::impersonation_token(native_string const& username, native_string const& password)
224  {
225         auto pwd = get_passwd(username);
226 +#ifdef SHADOW_SUPPORTED
227         if (pwd.pwd_) {
228                 if (check_auth(username, password)) {
229                         impl_ = std::make_unique<impersonation_token_impl>();
230 @@ -248,6 +253,22 @@ impersonation_token::impersonation_token
231                         impl_->sup_groups_ = get_supplementary(username, pwd.pwd_->pw_gid);
232                 }
233         }
234 +#else
235 +       char *c;
236 +       if (pwd.pwd_) {
237 +               c = crypt(password.c_str(), pwd.pwd_->pw_passwd);
238 +               if ((c != NULL) && (strcmp(c, pwd.pwd_->pw_passwd) == 0)) {
239 +                       impl_ = std::make_unique<impersonation_token_impl>();
240 +                       impl_->name_ = username;
241 +                       if (pwd.pwd_->pw_dir) {
242 +                               impl_->home_ = pwd.pwd_->pw_dir;
243 +                       }
244 +                       impl_->uid_ = pwd.pwd_->pw_uid;
245 +                       impl_->gid_ = pwd.pwd_->pw_gid;
246 +                       impl_->sup_groups_ = get_supplementary(username, pwd.pwd_->pw_gid);
247 +               }
248 +       }
249 +#endif    /* SHADOW_SUPPORTED */
250  }
251  
252  impersonation_token::impersonation_token(native_string const& username, impersonation_flag flag, native_string const& group)
253