diff options
author | Ismael Luceno | 2017-01-08 17:43:11 -0200 |
---|---|---|
committer | Ismael Luceno | 2017-01-08 17:58:27 -0200 |
commit | fe46e5c5211d45fee355e3c2cdba38699d505384 (patch) | |
tree | 5de2a1fc2bafcdde3473e71ba0d6e16642ca070c /ftp/vsftpd/PRE_BUILD | |
parent | 2b0e31114d8f324fbba9ac8349836241567cf2ab (diff) |
vsftpd: Replace CFLAGS portion of mk.diff with a sed script
Diffstat (limited to 'ftp/vsftpd/PRE_BUILD')
-rwxr-xr-x | ftp/vsftpd/PRE_BUILD | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftp/vsftpd/PRE_BUILD b/ftp/vsftpd/PRE_BUILD index 0ccf1f8668..3e339f7e6c 100755 --- a/ftp/vsftpd/PRE_BUILD +++ b/ftp/vsftpd/PRE_BUILD @@ -8,6 +8,16 @@ cd "$SOURCE_DIRECTORY" && patch -p0 < ${SPELL_DIRECTORY}/mk.diff && # +# Fix CFLAGS +# +sedit ' + /^CFLAGS[\t ]*=/!b + :C /\\$/ {N; b C} + s/=[\t ]*-O2/+=/ + s/ -Werror / / +' Makefile && + +# # 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. :) |