package/pure-ftpd: add optional support for linux-pam
authorArtem Panfilov <apanfilov@spectracom.com>
Wed, 1 Aug 2018 13:21:14 +0000 (16:21 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 5 Aug 2018 12:40:28 +0000 (14:40 +0200)
Signed-off-by: Artem Panfilov <apanfilov@spectracom.com>
[Thomas: add explicit --without-pam when linux-pam is not enabled.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pure-ftpd/pure-ftpd.mk

index 457e67ea60649633b9ba258887e323909fb303d0..ae3ca9d1f0b709c7dda03b3a664349649689bdb9 100644 (file)
@@ -57,4 +57,11 @@ ifeq ($(BR2_PACKAGE_PURE_FTPD_UPLOADSCRIPT),y)
 PURE_FTPD_CONF_OPTS += --with-uploadscript
 endif
 
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+PURE_FTPD_CONF_OPTS += --with-pam
+PURE_FTPD_DEPENDENCIES += linux-pam
+else
+PURE_FTPD_CONF_OPTS += --without-pam
+endif
+
 $(eval $(autotools-package))