From patchwork Wed Apr 12 10:56:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 749918 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w317p2d0Pz9s8N for ; Wed, 12 Apr 2017 20:56:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CF1C684EC6; Wed, 12 Apr 2017 10:56:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RihQEpUkZmiF; Wed, 12 Apr 2017 10:56:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9E7ED84DA7; Wed, 12 Apr 2017 10:56:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id EE05D1C1626 for ; Wed, 12 Apr 2017 10:56:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E844087568 for ; Wed, 12 Apr 2017 10:56:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8uCoRWX3+14H for ; Wed, 12 Apr 2017 10:56:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by hemlock.osuosl.org (Postfix) with ESMTP id 230078752A for ; Wed, 12 Apr 2017 10:56:33 +0000 (UTC) Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id E2D6EF6C1070A for ; Wed, 12 Apr 2017 11:56:28 +0100 (IST) Received: from vriera-linux.le.imgtec.org (192.168.154.96) by HHMAIL01.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Wed, 12 Apr 2017 11:56:31 +0100 From: Vicente Olivert Riera To: Date: Wed, 12 Apr 2017 11:56:19 +0100 Message-ID: <20170412105619.42833-1-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 X-Originating-IP: [192.168.154.96] Subject: [Buildroot] [PATCH] proftpd: add mod_redis support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The mod_redis module enables ProFTPD support for caching data in Redis servers, using the hiredis client library. This is available since proftpd-1.3.6rc5 and later. Signed-off-by: Vicente Olivert Riera --- Note to maintainer: this patch depends on the proftpd-1.3.6 bump: http://patchwork.ozlabs.org/patch/748931/ --- package/proftpd/Config.in | 7 +++++++ package/proftpd/proftpd.mk | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in index dd87eb4..07a5d86 100644 --- a/package/proftpd/Config.in +++ b/package/proftpd/Config.in @@ -13,4 +13,11 @@ config BR2_PACKAGE_PROFTPD_MOD_REWRITE help Compile ProFTPD with mod_rewrite support +config BR2_PACKAGE_PROFTPD_MOD_REDIS + bool "mod_redis support" + select BR2_PACKAGE_HIREDIS + help + The mod_redis module enables ProFTPD support for caching data in Redis + servers, using the hiredis client library. + endif diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk index 5f42408..3e165c6 100644 --- a/package/proftpd/proftpd.mk +++ b/package/proftpd/proftpd.mk @@ -27,6 +27,13 @@ ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y) PROFTPD_CONF_OPTS += --with-modules=mod_rewrite endif +ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REDIS),y) +PROFTPD_CONF_OPTS += --enable-redis +PROFTPD_DEPENDENCIES += hiredis +else +PROFTPD_CONF_OPTS += --disable-redis +endif + # configure script doesn't handle detection of %llu format string # support for printing the file size when cross compiling, breaking # access for large files.