diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2012-05-24 18:35:20 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2012-05-24 18:35:20 +0000 |
commit | 072ff68021081557b0d1938b3005c35497b3c0c1 (patch) | |
tree | 42794b49e340469fe05339f898d4839ade14e324 /ftp/vsftpd | |
parent | f8f1a0d9a091f627fbf10b44eb2169b34ea556e4 (diff) | |
download | ports-072ff68021081557b0d1938b3005c35497b3c0c1.tar.gz ports-072ff68021081557b0d1938b3005c35497b3c0c1.zip |
Notes
Diffstat (limited to 'ftp/vsftpd')
-rw-r--r-- | ftp/vsftpd/Makefile | 36 | ||||
-rw-r--r-- | ftp/vsftpd/distinfo | 4 | ||||
-rw-r--r-- | ftp/vsftpd/files/patch-sysdeputil.c | 21 |
3 files changed, 39 insertions, 22 deletions
diff --git a/ftp/vsftpd/Makefile b/ftp/vsftpd/Makefile index fbfc137834d1..2bed452e728e 100644 --- a/ftp/vsftpd/Makefile +++ b/ftp/vsftpd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= vsftpd -PORTVERSION= 2.3.5 +PORTVERSION= 3.0.0 CATEGORIES= ftp ipv6 MASTER_SITES= https://security.appspot.com/downloads/ PKGNAMESUFFIX?= ${SSL_SUFFIX}${PKGNAMESUFFIX2} @@ -24,8 +24,8 @@ DOCFILES= AUDIT BENCHMARKS BUGS Changelog FAQ INSTALL LICENSE \ README README.security README.ssl REFS REWARD \ SIZE SPEED TODO TUNING -OPTIONS= VSFTPD_SSL "Include support for SSL" off \ - PIDFILE "unofficial support for pidfile" off +OPTIONS= VSFTPD_SSL "Include support for SSL" off \ + PIDFILE "unofficial support for pidfile" off .include <bsd.port.pre.mk> @@ -40,9 +40,25 @@ LDFLAGS+= -L${OPENSSLLIB} EXTRA_PATCHES+= ${FILESDIR}/pidfile.patch .endif +# BROKEN on FreeBSD with undefined reference to `__stack_chk_fail_local' +LDFLAGS+= -lssp_nonshared + do-configure: - ${REINPLACE_CMD} -e "s|/etc/vsftpd.conf|${PREFIX}/etc/vsftpd.conf|" \ +.if !defined(WITHOUT_SSL) && defined(WITH_VSFTPD_SSL) + ${REINPLACE_CMD} -e \ + "s|#undef VSF_BUILD_TCPWRAPPERS|#define VSF_BUILD_TCPWRAPPERS 1|" \ + -e "s|#undef VSF_BUILD_SSL|#define VSF_BUILD_SSL 1|" \ + ${WRKSRC}/builddefs.h +.else + ${REINPLACE_CMD} -e \ + "s|#undef VSF_BUILD_TCPWRAPPERS|#define VSF_BUILD_TCPWRAPPERS 1|" \ + ${WRKSRC}/builddefs.h +.endif + ${REINPLACE_CMD} -e "s|^listen=|#listen=|" \ + -e "s|/etc/vsftpd.conf|${PREFIX}/etc/vsftpd.conf|" \ ${WRKSRC}/defs.h ${WRKSRC}/vsftpd.conf + ${REINPLACE_CMD} -e "s|/etc/v|${PREFIX}/etc/v|" \ + ${WRKSRC}/vsftpd.8 ${WRKSRC}/vsftpd.conf.5 ${WRKSRC}/tunables.c ${REINPLACE_CMD} \ -e "s|^CC = gcc|CC = ${CC}|" \ -e "s|^CFLAGS =|CFLAGS = ${CFLAGS}|" \ @@ -50,9 +66,6 @@ do-configure: -e "s| -Wl,-s| -Wl,-s ${LDFLAGS}|" \ ${WRKSRC}/Makefile ${REINPLACE_CMD} -e '/-lutil/d' ${WRKSRC}/vsf_findlibs.sh - ${REINPLACE_CMD} -e \ - "s|#undef VSF_BUILD_TCPWRAPPERS|#define VSF_BUILD_TCPWRAPPERS 1|" \ - ${WRKSRC}/builddefs.h @${ECHO_CMD} "secure_chroot_dir=${PREFIX}/share/vsftpd/empty" >> \ ${WRKSRC}/vsftpd.conf @${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "" @@ -60,15 +73,6 @@ do-configure: "# If using vsftpd in standalone mode, uncomment the next two lines:" @${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "# listen=YES" @${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "# background=YES" - ${REINPLACE_CMD} -e "s|/etc/v|${PREFIX}/etc/v|" \ - -e 's|delay_failed_logins|delay_failed_login|' \ - -e 's|delay_successful_logins|delay_successful_login|' \ - ${WRKSRC}/vsftpd.8 ${WRKSRC}/vsftpd.conf.5 ${WRKSRC}/tunables.c -.if !defined(WITHOUT_SSL) && defined(WITH_VSFTPD_SSL) - ${REINPLACE_CMD} -e \ - "s|#undef VSF_BUILD_SSL|#define VSF_BUILD_SSL 1|" \ - ${WRKSRC}/builddefs.h -.endif pre-install: ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL diff --git a/ftp/vsftpd/distinfo b/ftp/vsftpd/distinfo index af48cadddb4d..3a998cbb6c13 100644 --- a/ftp/vsftpd/distinfo +++ b/ftp/vsftpd/distinfo @@ -1,2 +1,2 @@ -SHA256 (vsftpd-2.3.5.tar.gz) = d87ee2987df8f03e1dbe294905f7907b2798deb89c67ca965f6e2f60879e54f1 -SIZE (vsftpd-2.3.5.tar.gz) = 187691 +SHA256 (vsftpd-3.0.0.tar.gz) = ef70205dcd0c7f03b008b9578fb44c0cbe31e66daab8cfafb9904747c17fc2a8 +SIZE (vsftpd-3.0.0.tar.gz) = 193166 diff --git a/ftp/vsftpd/files/patch-sysdeputil.c b/ftp/vsftpd/files/patch-sysdeputil.c index becc2bdb4970..144782bdfc0b 100644 --- a/ftp/vsftpd/files/patch-sysdeputil.c +++ b/ftp/vsftpd/files/patch-sysdeputil.c @@ -1,5 +1,5 @@ ---- sysdeputil.c.orig 2010-03-26 06:25:33.000000000 +0300 -+++ sysdeputil.c 2011-05-17 20:51:35.350022421 +0400 +--- sysdeputil.c.orig 2010-03-26 04:25:33.000000000 +0100 ++++ sysdeputil.c 2012-04-14 10:31:00.000000000 +0200 @@ -57,7 +57,7 @@ #endif #define VSF_SYSDEP_HAVE_SHADOW @@ -9,7 +9,20 @@ #define VSF_SYSDEP_HAVE_UTMPX #define __USE_GNU -@@ -1213,7 +1213,9 @@ vsf_insert_uwtmp(const struct mystr* p_u +@@ -323,8 +323,12 @@ + const struct mystr* p_remote_host) + { + int retval; ++#ifdef PAM_USER + pam_item_t item; ++#endif ++#ifdef PAM_RUSER + const char* pam_user_name = 0; ++#endif + struct pam_conv the_conv = + { + &pam_conv_func, +@@ -1213,7 +1217,9 @@ setutxent(); (void) pututxline(&s_utent); endutxent(); @@ -19,7 +32,7 @@ } void -@@ -1232,7 +1234,9 @@ vsf_remove_uwtmp(void) +@@ -1232,7 +1238,9 @@ (void) pututxline(&s_utent); endutxent(); s_utent.ut_tv.tv_sec = vsf_sysutil_get_time_sec(); |