2 # Copyright (C) 2009-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=ftp
://ftp.proftpd.org
/distrib
/source
16 PKG_MD5SUM
:=4e3235dc1ef95d36e59721d70c5c489c
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/proftpd
24 SUBMENU
:=File Transfer
27 TITLE
:=ProFTPD FTP server
28 URL
:=http
://www.proftpd.org
/
29 MAINTAINER
:=Cezary Jackiewicz
<cezary@eko.one.pl
>
32 define Package
/proftpd
/conffiles
37 -I
$(LINUX_DIR
)/include
40 INSTALL_USER
=$(shell id
-u
) \
41 INSTALL_GROUP
=$(shell id
-g
)
46 ac_cv_header_curses_h
=no \
47 ac_cv_header_ncurses_h
=no
49 define Package
/proftpd
/install
50 $(INSTALL_DIR
) $(1)/etc
51 $(if
$(CONFIG_IPV6
),,$(SED
) 's/^UseIPv6/#UseIPv6/' $(PKG_INSTALL_DIR
)/etc
/proftpd.conf
)
52 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/proftpd.conf
$(1)/etc
/
53 $(INSTALL_DIR
) $(1)/etc
/init.d
54 $(INSTALL_BIN
) .
/files
/proftpd.init
$(1)/etc
/init.d
/proftpd
55 $(INSTALL_DIR
) $(1)/usr
/bin
56 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ftp
{count
,top
,who
} $(1)/usr
/bin
/
57 $(INSTALL_DIR
) $(1)/usr
/sbin
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{ftpshut
,proftpd
} $(1)/usr
/sbin
/
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/in.proftpd
$(1)/usr
/sbin
/
62 $(eval
$(call BuildPackage
,proftpd
))