summaryrefslogtreecommitdiffstats
path: root/ftp/vsftpd/PRE_BUILD
diff options
context:
space:
mode:
authorIsmael Luceno2016-08-10 23:53:59 -0300
committerIsmael Luceno2016-08-10 23:53:59 -0300
commit6627eddb680a5fbd4b2fcc5ce6e428dae27d58eb (patch)
tree2df01c9d0f74895068adabef9d1aceb9f81bf32b /ftp/vsftpd/PRE_BUILD
parent97fae0cbef1fca5a47a1b5d59d72c27808c8f965 (diff)
vsftpd: Move patching instructions to PRE_BUILD
Diffstat (limited to 'ftp/vsftpd/PRE_BUILD')
-rwxr-xr-xftp/vsftpd/PRE_BUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/ftp/vsftpd/PRE_BUILD b/ftp/vsftpd/PRE_BUILD
new file mode 100755
index 0000000000..30ec67848e
--- /dev/null
+++ b/ftp/vsftpd/PRE_BUILD
@@ -0,0 +1,25 @@
+#
+# We don't want to install into /usr/local, so
+# we'll just copy the files correctly
+#
+patch -p0 < ${SCRIPT_DIRECTORY}/mk.diff &&
+
+#
+# Should be made to allow someone to say "n" even if
+# the package is installed, but this is the easy way
+# I'm doing it for now. :)
+#
+if spell_ok tcp_wrappers; then
+ sedit "s:undef VSF_BUILD_TCPWRAPPERS:define VSF_BUILD_TCPWRAPPERS:" builddefs.h
+fi &&
+
+if spell_ok openssl; then
+ sedit "s:undef VSF_BUILD_SSL:define VSF_BUILD_SSL:" builddefs.h
+fi &&
+
+#
+# builddefs.h defaults to using Linux-PAM
+#
+if ! spell_ok linux-pam; then
+ sedit "s:define VSF_BUILD_PAM:undef VSF_BUILD_PAM:" builddefs.h
+fi