package/pure-ftpd: Add uploadscript option

Message ID 1515786826-41633-1-git-send-email-sam.voss@rockwellcollins.com
State Accepted
Commit ef9be80526dc9740cbde6bfcfb3a229f06def63c
Headers show
Series
  • package/pure-ftpd: Add uploadscript option
Related show

Commit Message

Sam Voss Jan. 12, 2018, 7:53 p.m.
Enable option to compile with '--with-uploadscript' to allow running
script after successful uploads.

Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
---
 package/pure-ftpd/Config.in    | 6 ++++++
 package/pure-ftpd/pure-ftpd.mk | 4 ++++
 2 files changed, 10 insertions(+)

Comments

Bryce Ferguson Jan. 19, 2018, 6:21 p.m. | #1
Sam / All,

On Fri, Jan 12, 2018 at 1:53 PM, Sam Voss <sam.voss@rockwellcollins.com> wrote:
> Enable option to compile with '--with-uploadscript' to allow running
> script after successful uploads.
>
> Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>

Acked-by: Bryce Ferguson <bryce.ferguson@rockwellcollins.com

Thanks!

-Bryce
Peter Korsgaard Jan. 28, 2018, 4:20 p.m. | #2
>>>>> "Sam" == Sam Voss <sam.voss@rockwellcollins.com> writes:

 > Enable option to compile with '--with-uploadscript' to allow running
 > script after successful uploads.

 > Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>

Committed, thanks.

Patch

diff --git a/package/pure-ftpd/Config.in b/package/pure-ftpd/Config.in
index b5eca87..d03170b 100644
--- a/package/pure-ftpd/Config.in
+++ b/package/pure-ftpd/Config.in
@@ -30,4 +30,10 @@  config BR2_PACKAGE_PURE_FTPD_QUOTAS
 	  his account. In addition, restrictions can also be placed on
 	  the total size.
 
+config BR2_PACKAGE_PURE_FTPD_UPLOADSCRIPT
+	bool "uploadscript"
+	help
+	  Enable pure-upload script. Automatically run an external program
+	  after a successful upload.
+
 endif
diff --git a/package/pure-ftpd/pure-ftpd.mk b/package/pure-ftpd/pure-ftpd.mk
index 815de90..457e67e 100644
--- a/package/pure-ftpd/pure-ftpd.mk
+++ b/package/pure-ftpd/pure-ftpd.mk
@@ -53,4 +53,8 @@  ifeq ($(BR2_PACKAGE_PURE_FTPD_QUOTAS),y)
 PURE_FTPD_CONF_OPTS += --with-quotas
 endif
 
+ifeq ($(BR2_PACKAGE_PURE_FTPD_UPLOADSCRIPT),y)
+PURE_FTPD_CONF_OPTS += --with-uploadscript
+endif
+
 $(eval $(autotools-package))