* [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP
@ 2018-08-07 13:34 Matt Weber
2018-08-07 13:48 ` Baruch Siach
2018-08-09 8:55 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Matt Weber @ 2018-08-07 13:34 UTC (permalink / raw)
To: buildroot
From: Paresh Chaudhary <paresh.chaudhary@rockwellcollins.com>
This patch adds BR2_PACKAGE_PROFTPD_MOD_SFTP support and also
changes the .mk file to add required modules as a list in a
separate variable. This new variable will help in future to add
more module support in proftpd package.
Signed-off-by: Paresh Chaudhary <paresh.chaudhary@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
---
package/proftpd/Config.in | 5 +++++
package/proftpd/proftpd.mk | 18 +++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
index e979d40..12b8c93 100644
--- a/package/proftpd/Config.in
+++ b/package/proftpd/Config.in
@@ -20,4 +20,9 @@ config BR2_PACKAGE_PROFTPD_MOD_REDIS
The mod_redis module enables ProFTPD support for caching
data in Redis servers, using the hiredis client library.
+config BR2_PACKAGE_PROFTPD_MOD_SFTP
+ bool "mod_sftp support"
+ help
+ Compile ProFTPD with mod_sftp support
+
endif
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index 3e165c6..1ee88a8 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -23,8 +23,11 @@ PROFTPD_CONF_OPTS = \
--enable-shadow \
--with-gnu-ld
+#Append all required modules in PROFTPD_MODULES variable
+#Use 'space' seperator for more than one module
+#e.g. PROFTPD_MODULES += mod_readme mod_ifsession
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y)
-PROFTPD_CONF_OPTS += --with-modules=mod_rewrite
+PROFTPD_MODULES = mod_rewrite
endif
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REDIS),y)
@@ -34,6 +37,19 @@ else
PROFTPD_CONF_OPTS += --disable-redis
endif
+ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SFTP),y)
+PROFTPD_CONF_OPTS += --enable-openssl
+PROFTPD_MODULES += mod_sftp
+endif
+
+#Make ":" separated final modules list
+PROFTPD_MODULES_LIST = \
+ $(shell for l in $(PROFTPD_MODULES); do \
+ modlist=$$modlist$$l:; done \
+ && echo $${modlist%?})
+
+PROFTPD_CONF_OPTS += --with-modules=$(PROFTPD_MODULES_LIST)
+
# configure script doesn't handle detection of %llu format string
# support for printing the file size when cross compiling, breaking
# access for large files.
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP
2018-08-07 13:34 [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP Matt Weber
@ 2018-08-07 13:48 ` Baruch Siach
2018-08-07 13:54 ` Matthew Weber
2018-08-09 8:55 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Baruch Siach @ 2018-08-07 13:48 UTC (permalink / raw)
To: buildroot
Hi Matt,
Matt Weber writes:
> +ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SFTP),y)
> +PROFTPD_CONF_OPTS += --enable-openssl
Don't you need openssl/libressl as build time dependency?
> +PROFTPD_MODULES += mod_sftp
> +endif
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP
2018-08-07 13:48 ` Baruch Siach
@ 2018-08-07 13:54 ` Matthew Weber
2018-08-07 14:12 ` Baruch Siach
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Weber @ 2018-08-07 13:54 UTC (permalink / raw)
To: buildroot
Baruch,
On Tue, Aug 7, 2018 at 8:48 AM Baruch Siach <baruch@tkos.co.il> wrote:
>
> Hi Matt,
>
> Matt Weber writes:
> > +ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SFTP),y)
> > +PROFTPD_CONF_OPTS += --enable-openssl
>
> Don't you need openssl/libressl as build time dependency?
Yeah, I'll add a check for BR2_PACKAGE_OPENSSL. By chance, do you
know if there is a risk of library compatibility between libopenssl
and libressl?
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP
2018-08-07 13:54 ` Matthew Weber
@ 2018-08-07 14:12 ` Baruch Siach
0 siblings, 0 replies; 5+ messages in thread
From: Baruch Siach @ 2018-08-07 14:12 UTC (permalink / raw)
To: buildroot
Hi Matt,
Matthew Weber writes:
> On Tue, Aug 7, 2018 at 8:48 AM Baruch Siach <baruch@tkos.co.il> wrote:
>> Matt Weber writes:
>> > +ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SFTP),y)
>> > +PROFTPD_CONF_OPTS += --enable-openssl
>>
>> Don't you need openssl/libressl as build time dependency?
>
> Yeah, I'll add a check for BR2_PACKAGE_OPENSSL. By chance, do you
> know if there is a risk of library compatibility between libopenssl
> and libressl?
There are some minor API differences between openssl and libressl. You
should probably build test against both of them.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP
2018-08-07 13:34 [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP Matt Weber
2018-08-07 13:48 ` Baruch Siach
@ 2018-08-09 8:55 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-08-09 8:55 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 7 Aug 2018 08:34:26 -0500, Matt Weber wrote:
> +#Make ":" separated final modules list
> +PROFTPD_MODULES_LIST = \
> + $(shell for l in $(PROFTPD_MODULES); do \
> + modlist=$$modlist$$l:; done \
> + && echo $${modlist%?})
Meh. Please use this instead:
--with-modules=$(subst $(space),:,$(PROFTPD_MODULES))
It's a bit more make-ish :-)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-08-09 8:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07 13:34 [Buildroot] [PATCH] package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP Matt Weber
2018-08-07 13:48 ` Baruch Siach
2018-08-07 13:54 ` Matthew Weber
2018-08-07 14:12 ` Baruch Siach
2018-08-09 8:55 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox