aboutsummaryrefslogtreecommitdiffstats
path: root/community/vsftpd/findlibs.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-16 02:26:02 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-23 12:07:30 -0300
commit41ab224df12b8487004a1522b4f671680c082954 (patch)
tree9ebbc4ea5d1cfb82757ca1fd862b67e444a712a2 /community/vsftpd/findlibs.patch
parent1f40937c55d742c7ae05db34c966c3dd2d6595e7 (diff)
downloadaports-41ab224df12b8487004a1522b4f671680c082954.tar.bz2
aports-41ab224df12b8487004a1522b4f671680c082954.tar.xz
community/*: move lots of stuff from main and modernize
Diffstat (limited to 'community/vsftpd/findlibs.patch')
-rw-r--r--community/vsftpd/findlibs.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/vsftpd/findlibs.patch b/community/vsftpd/findlibs.patch
new file mode 100644
index 0000000000..4806470d3a
--- /dev/null
+++ b/community/vsftpd/findlibs.patch
@@ -0,0 +1,30 @@
+diff --git a/vsf_findlibs.sh b/vsf_findlibs.sh
+index f5d485d..baf167b 100755
+--- a/vsf_findlibs.sh
++++ b/vsf_findlibs.sh
+@@ -6,8 +6,6 @@ find_func() { egrep $1 $2 >/dev/null; }
+
+ if find_func hosts_access tcpwrap.o; then
+ echo "-lwrap";
+- locate_library /lib/libnsl.so && echo "-lnsl";
+- locate_library /lib64/libnsl.so && echo "-lnsl";
+ fi
+
+ # Look for PAM (done weirdly due to distribution bugs (e.g. Debian) or the
+@@ -36,7 +34,6 @@ locate_library /lib/libdl.so && echo "-ldl";
+ locate_library /lib/libsocket.so && echo "-lsocket";
+
+ # Look for libnsl. Solaris needs this.
+-locate_library /lib/libnsl.so && echo "-lnsl";
+
+ # Look for libresolv. Solaris needs this.
+ locate_library /lib/libresolv.so && echo "-lresolv";
+@@ -69,7 +66,7 @@ locate_library /usr/shlib/librt.so && echo "-lrt";
+ locate_library /usr/lib/libsendfile.so && echo "-lsendfile";
+
+ # OpenSSL
+-if find_func SSL_library_init ssl.o; then
++if find_func SSL_CTX_new ssl.o; then
+ echo "-lssl -lcrypto";
+ fi
+