summaryrefslogtreecommitdiffstats
path: root/ftp/vsftpd/PRE_BUILD
diff options
context:
space:
mode:
authorIsmael Luceno2017-01-08 17:45:41 -0200
committerIsmael Luceno2017-01-08 17:58:27 -0200
commitf2045e3509c2deb5387e8e477dc9bae5f47df426 (patch)
tree47e7e4bfc55412a1a699820a9d846976ad4be31c /ftp/vsftpd/PRE_BUILD
parentfe46e5c5211d45fee355e3c2cdba38699d505384 (diff)
vsftpd: Simplify sed scripts in PRE_BUILD
Diffstat (limited to 'ftp/vsftpd/PRE_BUILD')
-rwxr-xr-xftp/vsftpd/PRE_BUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftp/vsftpd/PRE_BUILD b/ftp/vsftpd/PRE_BUILD
index 3e339f7e6c..8dbe1a04ae 100755
--- a/ftp/vsftpd/PRE_BUILD
+++ b/ftp/vsftpd/PRE_BUILD
@@ -23,16 +23,16 @@ sedit '
# I'm doing it for now. :)
#
if spell_ok tcp_wrappers; then
- sedit "s:undef VSF_BUILD_TCPWRAPPERS:define VSF_BUILD_TCPWRAPPERS:" builddefs.h
+ sedit "/^#undef VSF_BUILD_TCPWRAPPERS/{s/undef/define/}" builddefs.h
fi &&
if spell_ok openssl; then
- sedit "s:undef VSF_BUILD_SSL:define VSF_BUILD_SSL:" builddefs.h
+ sedit "/^#undef VSF_BUILD_SSL/{s/undef/define/}" 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
+ sedit "/^#define VSF_BUILD_PAM/{s/define/undef/}" builddefs.h
fi