2007-01-14 02:48:49 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# proftpd
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-06-18 10:45:23 +02:00
|
|
|
PROFTPD_VERSION:=1.3.1
|
2007-07-11 15:55:21 +02:00
|
|
|
PROFTPD_SOURCE:=proftpd-$(PROFTPD_VERSION).tar.bz2
|
2007-01-14 02:48:49 +01:00
|
|
|
PROFTPD_SITE:=ftp://ftp.proftpd.org/distrib/source/
|
2007-07-11 15:55:21 +02:00
|
|
|
PROFTPD_DIR:=$(BUILD_DIR)/proftpd-$(PROFTPD_VERSION)
|
2007-08-22 12:11:18 +02:00
|
|
|
PROFTPD_CAT:=$(BZCAT)
|
2007-01-14 02:48:49 +01:00
|
|
|
PROFTPD_BINARY:=proftpd
|
|
|
|
PROFTPD_TARGET_BINARY:=usr/sbin/proftpd
|
|
|
|
|
2007-07-17 02:22:39 +02:00
|
|
|
ifeq ($(BR2_INET_IPV6),y)
|
|
|
|
ENABLE_IPV6:=--enable-ipv6
|
|
|
|
endif
|
|
|
|
|
2007-01-14 02:48:49 +01:00
|
|
|
$(DL_DIR)/$(PROFTPD_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(PROFTPD_SITE),$(PROFTPD_SOURCE))
|
2007-01-14 02:48:49 +01:00
|
|
|
|
|
|
|
proftpd-source: $(DL_DIR)/$(PROFTPD_SOURCE)
|
|
|
|
|
|
|
|
$(PROFTPD_DIR)/.unpacked: $(DL_DIR)/$(PROFTPD_SOURCE)
|
|
|
|
$(PROFTPD_CAT) $(DL_DIR)/$(PROFTPD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-07-28 17:21:54 +02:00
|
|
|
$(CONFIG_UPDATE) $(PROFTPD_DIR)
|
2008-06-18 10:45:23 +02:00
|
|
|
toolchain/patch-kernel.sh $(PROFTPD_DIR) package/proftpd/ proftpd-$(PROFTPD_VERSION)\*.patch;
|
2007-08-22 12:11:18 +02:00
|
|
|
touch $@
|
2007-01-14 02:48:49 +01:00
|
|
|
|
|
|
|
$(PROFTPD_DIR)/.configured: $(PROFTPD_DIR)/.unpacked
|
|
|
|
(cd $(PROFTPD_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-01-14 02:48:49 +01:00
|
|
|
ac_cv_func_setpgrp_void=yes \
|
|
|
|
ac_cv_func_setgrent_void=yes \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-01-14 02:48:49 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var/run \
|
|
|
|
--disable-static \
|
|
|
|
--disable-curses \
|
|
|
|
--disable-ncurses \
|
|
|
|
--disable-facl \
|
|
|
|
--disable-dso \
|
|
|
|
--enable-shadow \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
2007-07-17 02:22:39 +02:00
|
|
|
$(ENABLE_IPV6) \
|
2007-01-14 02:48:49 +01:00
|
|
|
--with-gnu-ld \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-08-22 12:11:18 +02:00
|
|
|
touch $@
|
2007-01-14 02:48:49 +01:00
|
|
|
|
|
|
|
$(PROFTPD_DIR)/$(PROFTPD_BINARY): $(PROFTPD_DIR)/.configured
|
2007-08-22 14:35:41 +02:00
|
|
|
$(MAKE) CC="$(HOSTCC)" CFLAGS="" LDFLAGS="" \
|
2007-01-14 02:48:49 +01:00
|
|
|
-C $(PROFTPD_DIR)/lib/libcap _makenames
|
|
|
|
$(MAKE) -C $(PROFTPD_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(PROFTPD_TARGET_BINARY): $(PROFTPD_DIR)/$(PROFTPD_BINARY)
|
2007-08-22 14:35:41 +02:00
|
|
|
cp -dpf $(PROFTPD_DIR)/$(PROFTPD_BINARY) \
|
2007-01-14 02:48:49 +01:00
|
|
|
$(TARGET_DIR)/$(PROFTPD_TARGET_BINARY)
|
2007-08-22 11:56:41 +02:00
|
|
|
@if [ ! -f $(TARGET_DIR)/etc/proftpd.conf ]; then \
|
2007-01-14 02:48:49 +01:00
|
|
|
$(INSTALL) -m 0644 -D $(PROFTPD_DIR)/sample-configurations/basic.conf $(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
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
proftpd: $(TARGET_DIR)/$(PROFTPD_TARGET_BINARY)
|
2007-01-14 02:48:49 +01:00
|
|
|
|
|
|
|
proftpd-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(PROFTPD_TARGET_BINARY)
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S50proftpd
|
|
|
|
rm -f $(TARGET_DIR)/etc/proftpd.conf
|
|
|
|
-$(MAKE) -C $(PROFTPD_DIR) clean
|
|
|
|
|
|
|
|
proftpd-dirclean:
|
|
|
|
rm -rf $(PROFTPD_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PROFTPD),y)
|
2007-01-14 02:48:49 +01:00
|
|
|
TARGETS+=proftpd
|
|
|
|
endif
|