2007-01-14 02:48:49 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# proftpd
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-12-09 13:39:19 +01:00
|
|
|
|
|
|
|
PROFTPD_VERSION = 1.3.3g
|
2010-10-08 10:43:02 +02:00
|
|
|
PROFTPD_SOURCE = proftpd-$(PROFTPD_VERSION).tar.bz2
|
|
|
|
PROFTPD_SITE = ftp://ftp.proftpd.org/distrib/source/
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
PROFTPD_CONF_ENV = ac_cv_func_setpgrp_void=yes \
|
|
|
|
ac_cv_func_setgrent_void=yes
|
2007-07-17 02:22:39 +02:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
PROFTPD_CONF_OPT = --localstatedir=/var/run \
|
2007-01-14 02:48:49 +01:00
|
|
|
--disable-static \
|
|
|
|
--disable-curses \
|
|
|
|
--disable-ncurses \
|
|
|
|
--disable-facl \
|
|
|
|
--disable-dso \
|
|
|
|
--enable-shadow \
|
2010-10-08 10:43:02 +02:00
|
|
|
--with-gnu-ld
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
define PROFTPD_MAKENAMES
|
|
|
|
$(MAKE1) CC="$(HOSTCC)" CFLAGS="" LDFLAGS="" -C $(@D)/lib/libcap _makenames
|
|
|
|
endef
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
PROFTPD_POST_CONFIGURE_HOOKS = PROFTPD_MAKENAMES
|
|
|
|
|
|
|
|
PROFTPD_MAKE=$(MAKE1)
|
|
|
|
|
|
|
|
define PROFTPD_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/proftpd $(TARGET_DIR)/usr/sbin/proftpd
|
2007-08-22 11:56:41 +02:00
|
|
|
@if [ ! -f $(TARGET_DIR)/etc/proftpd.conf ]; then \
|
2010-10-08 10:43:02 +02:00
|
|
|
$(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf; \
|
2011-04-22 13:27:14 +02:00
|
|
|
$(if $(BR2_INET_IPV6),,$(SED) 's/^UseIPv6/# UseIPv6/' $(TARGET_DIR)/etc/proftpd.conf;) \
|
2007-08-21 21:20:18 +02:00
|
|
|
fi
|
2007-06-16 19:54:38 +02:00
|
|
|
$(INSTALL) -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d
|
2010-10-08 10:43:02 +02:00
|
|
|
endef
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
define PROFTPD_UNINSTALL_TARGET_CMDS
|
2007-01-14 02:48:49 +01:00
|
|
|
rm -f $(TARGET_DIR)/$(PROFTPD_TARGET_BINARY)
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S50proftpd
|
|
|
|
rm -f $(TARGET_DIR)/etc/proftpd.conf
|
2010-10-08 10:43:02 +02:00
|
|
|
endef
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|