2009-12-10 12:29:26 +00:00
|
|
|
#
|
2012-04-10 14:57:10 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2009-07-21 21:13:05 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=proftpd
|
2012-04-10 14:57:10 +00:00
|
|
|
PKG_VERSION:=1.3.4a
|
2010-02-26 20:13:10 +00:00
|
|
|
PKG_RELEASE:=1
|
2010-02-19 00:14:01 +00:00
|
|
|
|
2009-07-21 21:13:05 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-03-05 11:34:19 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.proftpd.org/distrib/source
|
2012-04-10 14:57:10 +00:00
|
|
|
PKG_MD5SUM:=4e3235dc1ef95d36e59721d70c5c489c
|
2010-02-19 00:14:01 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=libtool
|
2010-03-05 11:34:19 +00:00
|
|
|
PKG_INSTALL:=1
|
2009-07-21 21:13:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/proftpd
|
2011-03-12 05:50:28 +00:00
|
|
|
SUBMENU:=File Transfer
|
2009-07-21 21:13:05 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=ProFTPD FTP server
|
|
|
|
URL:=http://www.proftpd.org/
|
2011-04-05 09:40:29 +00:00
|
|
|
MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
|
2009-07-21 21:13:05 +00:00
|
|
|
endef
|
|
|
|
|
2009-12-10 12:29:26 +00:00
|
|
|
define Package/proftpd/conffiles
|
|
|
|
/etc/proftpd.conf
|
|
|
|
endef
|
|
|
|
|
2009-07-21 21:13:05 +00:00
|
|
|
TARGET_CPPFLAGS += \
|
|
|
|
-I$(LINUX_DIR)/include
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
INSTALL_USER=$(shell id -u) \
|
2009-09-28 21:44:17 +00:00
|
|
|
INSTALL_GROUP=$(shell id -g)
|
2009-07-21 21:13:05 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2009-09-28 21:44:17 +00:00
|
|
|
--disable-cap \
|
2012-04-10 14:57:10 +00:00
|
|
|
--enable-devel
|
2009-07-21 21:13:05 +00:00
|
|
|
|
|
|
|
define Package/proftpd/install
|
2009-12-10 12:29:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2010-03-05 11:34:19 +00:00
|
|
|
$(if $(CONFIG_IPV6),,$(SED) 's/^UseIPv6/#UseIPv6/' $(PKG_INSTALL_DIR)/etc/proftpd.conf)
|
2009-12-10 12:29:26 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/proftpd.conf $(1)/etc/
|
2010-03-05 11:34:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/proftpd.init $(1)/etc/init.d/proftpd
|
2009-12-10 12:29:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ftp{count,top,who} $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{ftpshut,proftpd} $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/in.proftpd $(1)/usr/sbin/
|
2009-07-21 21:13:05 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,proftpd))
|