diff options
author | Ismael Luceno | 2016-08-10 23:53:59 -0300 |
---|---|---|
committer | Ismael Luceno | 2016-08-10 23:53:59 -0300 |
commit | 6627eddb680a5fbd4b2fcc5ce6e428dae27d58eb (patch) | |
tree | 2df01c9d0f74895068adabef9d1aceb9f81bf32b /ftp/vsftpd/PRE_BUILD | |
parent | 97fae0cbef1fca5a47a1b5d59d72c27808c8f965 (diff) |
vsftpd: Move patching instructions to PRE_BUILD
Diffstat (limited to 'ftp/vsftpd/PRE_BUILD')
-rwxr-xr-x | ftp/vsftpd/PRE_BUILD | 25 |
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 |