Bump buildroot to 2019.02
This commit is contained in:
@@ -20,4 +20,72 @@ 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"
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
Compile ProFTPD with mod_sftp support
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_MOD_SQL
|
||||
bool "mod_sql support"
|
||||
help
|
||||
Compile ProFTPD with mod_sql support.
|
||||
|
||||
if BR2_PACKAGE_PROFTPD_MOD_SQL
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_MOD_SQL_SQLITE
|
||||
bool "mod_sql_sqlite support"
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
Compile ProFTPD with mod_sql_sqlite support.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB
|
||||
bool "mod_quotatab support"
|
||||
help
|
||||
Compile ProFTPD with mod_quotatab support. This module
|
||||
is required in order to support quota tables:
|
||||
1. mod_quotatab_file
|
||||
2. mod_quotatab_ldap
|
||||
3. mod_quotatab_radius
|
||||
4. mod_quotatab_sql
|
||||
|
||||
if BR2_PACKAGE_PROFTPD_MOD_QUOTATAB
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_FILE
|
||||
bool "mod_quotatab_file table support"
|
||||
help
|
||||
Compile mod_quotatab with mod_quotatab_file table.
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_LDAP
|
||||
bool "mod_quotatab_ldap table support"
|
||||
help
|
||||
Compile mod_quotatab with mod_quotatab_ldap table.
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_RADIUS
|
||||
bool "mod_quotatab_radius table support"
|
||||
help
|
||||
Compile mod_quotatab with mod_quotatab_radius table.
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_SQL
|
||||
bool "mod_quotatab_sql table support"
|
||||
select BR2_PACKAGE_PROFTPD_MOD_SQL
|
||||
help
|
||||
Compile mod_quotatab with mod_quotatab_sql table.
|
||||
|
||||
endif
|
||||
|
||||
config BR2_PACKAGE_PROFTPD_BUFFER_SIZE
|
||||
int "buffer size in bytes (0 for default)"
|
||||
default "0"
|
||||
help
|
||||
By increasing the buffer size above the default of 1K,
|
||||
proftpd reads and writes data in larger chunks, and makes
|
||||
fewer expensive system calls. Use of this option to set buffer
|
||||
sizes of 8K or more has been reported to drastically increase
|
||||
transfer speeds (depending on network configurations).
|
||||
|
||||
0 uses the default size of 1024.
|
||||
|
||||
endif
|
||||
|
||||
4
bsp/buildroot/package/proftpd/S50proftpd
Executable file → Normal file
4
bsp/buildroot/package/proftpd/S50proftpd
Executable file → Normal file
@@ -1,15 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON=/usr/sbin/proftpd
|
||||
trap "" HUP
|
||||
trap "" TERM
|
||||
test -f $DAEMON || exit 0
|
||||
[ ! -d /var/run/proftpd ] && mkdir /var/run/proftpd
|
||||
[ ! -f /var/log/wtmp ] && touch /var/log/wtmp
|
||||
|
||||
start() {
|
||||
printf "Starting ProFTPD: "
|
||||
$DAEMON
|
||||
/usr/sbin/proftpd
|
||||
if [ $? != 0 ]; then
|
||||
echo "FAILED"
|
||||
exit 1
|
||||
|
||||
@@ -20,11 +20,13 @@ PROFTPD_CONF_OPTS = \
|
||||
--disable-ncurses \
|
||||
--disable-facl \
|
||||
--disable-dso \
|
||||
--enable-sendfile \
|
||||
--enable-shadow \
|
||||
--with-gnu-ld
|
||||
--with-gnu-ld \
|
||||
--without-openssl-cmdline
|
||||
|
||||
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 +36,45 @@ else
|
||||
PROFTPD_CONF_OPTS += --disable-redis
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SFTP),y)
|
||||
PROFTPD_CONF_OPTS += --enable-openssl
|
||||
PROFTPD_MODULES += mod_sftp
|
||||
PROFTPD_DEPENDENCIES += openssl
|
||||
else
|
||||
PROFTPD_CONF_OPTS += --disable-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SQL),y)
|
||||
PROFTPD_MODULES += mod_sql
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SQL_SQLITE),y)
|
||||
PROFTPD_MODULES += mod_sql_sqlite
|
||||
PROFTPD_DEPENDENCIES += sqlite
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_QUOTATAB),y)
|
||||
PROFTPD_MODULES += mod_quotatab
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_FILE),y)
|
||||
PROFTPD_MODULES += mod_quotatab_file
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_LDAP),y)
|
||||
PROFTPD_MODULES += mod_quotatab_ldap
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_RADIUS),y)
|
||||
PROFTPD_MODULES += mod_quotatab_radius
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_SQL),y)
|
||||
PROFTPD_MODULES += mod_quotatab_sql
|
||||
endif
|
||||
|
||||
PROFTPD_CONF_OPTS += --with-modules=$(subst $(space),:,$(PROFTPD_MODULES))
|
||||
|
||||
# configure script doesn't handle detection of %llu format string
|
||||
# support for printing the file size when cross compiling, breaking
|
||||
# access for large files.
|
||||
@@ -52,9 +93,23 @@ PROFTPD_POST_CONFIGURE_HOOKS = PROFTPD_MAKENAMES
|
||||
|
||||
PROFTPD_MAKE = $(MAKE1)
|
||||
|
||||
# install Perl based scripts in target
|
||||
ifeq ($(BR2_PACKAGE_PERL),y)
|
||||
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_QUOTATAB),y)
|
||||
define PROFTPD_INSTALL_FTPQUOTA
|
||||
$(INSTALL) -D -m 0755 $(@D)/contrib/ftpquota $(TARGET_DIR)/usr/sbin/ftpquota
|
||||
endef
|
||||
endif
|
||||
define PROFTPD_INSTALL_FTPASSWD
|
||||
$(INSTALL) -D -m 0755 $(@D)/contrib/ftpasswd $(TARGET_DIR)/usr/sbin/ftpasswd
|
||||
endef
|
||||
endif
|
||||
|
||||
define PROFTPD_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/proftpd $(TARGET_DIR)/usr/sbin/proftpd
|
||||
$(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf
|
||||
$(PROFTPD_INSTALL_FTPQUOTA)
|
||||
$(PROFTPD_INSTALL_FTPASSWD)
|
||||
endef
|
||||
|
||||
define PROFTPD_USERS
|
||||
@@ -73,4 +128,8 @@ define PROFTPD_INSTALL_INIT_SYSTEMD
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/proftpd.service
|
||||
endef
|
||||
|
||||
ifneq ($(BR2_PACKAGE_PROFTPD_BUFFER_SIZE),0)
|
||||
PROFTPD_CONF_OPTS += --enable-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user