[27516] trunk/dports/net/vsftpd/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Aug 6 11:46:00 PDT 2007
Revision: 27516
http://trac.macosforge.org/projects/macports/changeset/27516
Author: pmq at macports.org
Date: 2007-08-06 11:46:00 -0700 (Mon, 06 Aug 2007)
Log Message:
-----------
Add an SSL variant. Don't default to it because of security implications (see upstream documentation).
Rework the build.env stuff to make it link against MP-provided OpenSSL.
Modified Paths:
--------------
trunk/dports/net/vsftpd/Portfile
Modified: trunk/dports/net/vsftpd/Portfile
===================================================================
--- trunk/dports/net/vsftpd/Portfile 2007-08-06 18:29:16 UTC (rev 27515)
+++ trunk/dports/net/vsftpd/Portfile 2007-08-06 18:46:00 UTC (rev 27516)
@@ -23,9 +23,7 @@
patch-vsf_findlibs.sh.diff \
patch-vsftpd.conf.diff
-use_configure no
-
-pre-build {
+configure {
reinplace "s|/etc/|${prefix}/etc/|g" \
${worksrcpath}/defs.h \
${worksrcpath}/tunables.c \
@@ -41,14 +39,17 @@
${worksrcpath}/tunables.c
reinplace "s|/etc/vsftpd|${prefix}/etc/vsftpd|g" \
${worksrcpath}/vsftpd.conf.5
+
reinplace "s|#local_enable|local_enable|" \
${worksrcpath}/vsftpd.conf
reinplace "s|anonymous_enable=YES|anonymous_enable=NO|" \
${worksrcpath}/vsftpd.conf
}
-build.target {}
-build.env CFLAGS="-fno-common"
+build.target
+build.env CFLAGS="${configure.cflags} -fno-common" \
+ LDFLAGS=${configure.ldflags} \
+ CPPFLAGS=${configure.cppflags}
destroot {
xinstall -d -W ${destroot}${prefix} \
@@ -77,3 +78,12 @@
ui_msg "By default, ${name} will runs in standalone"
ui_msg "mode.\n"
}
+
+variant ssl description "Enable SSL support" {
+ depends_lib-append port:openssl
+
+ post-configure {
+ reinplace "s|#undef VSF_BUILD_SSL|#define VSF_BUILD_SSL|" \
+ ${worksrcpath}/builddefs.h
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070806/30ab0805/attachment.html
More information about the macports-changes
mailing list