1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= C++ lib for building platform-independent programs
8 HOMEPAGE= https://lib.filezilla-project.org
9 CONTACT= Michael_Reim[kraileth@elderlinux.org]
12 SITES[main]= https://download.filezilla-project.org/libfilezilla/
13 DISTFILE[1]= libfilezilla-0.39.2.tar.bz2:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILD_DEPENDS= gmp:static:standard
23 gnutls:primary:standard
24 BUILDRUN_DEPENDS= gnutls:library:standard
25 nettle:primary:standard
27 USES= gettext-tools gmake iconv:wchar_t libtool pkgconfig
28 zlib:build c++:primary
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
37 FPC_EQUIVALENT= ftp/libfilezilla
41 INSTALL_TARGET= install-strip
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:
49 - A typesafe, multi-threaded event system that's very simple to use yet
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
55 - Simple process handling for spawning child processes with redirected
58 libfilezilla is a cross-platform library for all major operating systems,
59 including but not limited to Linux, *BSD, OS X and Windows.
63 59a9d4ed6a00bb55ec111d0630f85cfdb3fbb11fb0c2006ab2b7ed7a6f8f59f4 623763 libfilezilla-0.39.2.tar.bz2
66 [FILE:973:manifests/plist.primary]
93 rate_limited_layer.hpp
106 tls_system_trust_store.hpp
111 visibility_helper.hpp
112 include/libfilezilla/aio/
116 include/libfilezilla/glue/
120 include/libfilezilla/private/
126 libfilezilla.so.%%SOMAJOR%%
127 libfilezilla.so.%%SOVERSION%%
128 lib/pkgconfig/libfilezilla.pc
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
188 [FILE:1894:patches/patch-lib_impersonation.cpp]
189 --- lib/impersonation.cpp.orig 2022-09-05 13:38:02 UTC
190 +++ lib/impersonation.cpp
196 +#if defined(__linux__)
197 +#define SHADOW_SUPPORTED
200 +#ifdef SHADOW_SUPPORTED
204 @@ -98,7 +102,7 @@ std::optional<gid_t> get_group(native_st
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
215 bool check_auth(native_string const& username, native_string const& password)
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)
225 auto pwd = get_passwd(username);
226 +#ifdef SHADOW_SUPPORTED
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);
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;
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);
249 +#endif /* SHADOW_SUPPORTED */
252 impersonation_token::impersonation_token(native_string const& username, impersonation_flag flag, native_string const& group)