openwrt-owl/openwrt/package/vsftpd/Makefile

43 lines
1.1 KiB
Makefile
Raw Normal View History

2005-05-15 20:39:09 +00:00
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=vsftpd
PKG_VERSION:=1.2.2
PKG_RELEASE:=1
PKG_MD5SUM:=5a38e1c69062e7688fbbdae6d1196de2
PKG_SOURCE_URL:=ftp://vsftpd.beasts.org/users/cevans/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,VSFTPD,vsftpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured:
2005-05-19 21:30:44 +00:00
touch $@
2005-05-15 20:39:09 +00:00
$(PKG_BUILD_DIR)/.built:
2005-05-19 21:30:44 +00:00
rm -rf $(PKG_INSTALL_DIR)
2005-05-15 20:39:09 +00:00
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
2005-05-19 21:30:44 +00:00
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
2005-05-15 20:39:09 +00:00
DESTDIR="$(PKG_INSTALL_DIR)" \
2005-05-19 21:30:44 +00:00
vsftpd install
touch $@
2005-05-15 20:39:09 +00:00
$(IPKG_VSFTPD):
install -d -m0755 $(IDIR_VSFTPD)/etc
install -m0644 ./files/vsftpd.conf $(IDIR_VSFTPD)/etc/vsftpd.conf
install -d -m0755 $(IDIR_VSFTPD)/etc/init.d
install -m0755 ./files/vsftpd.init $(IDIR_VSFTPD)/etc/init.d/vsftpd
install -d -m0755 $(IDIR_VSFTPD)/usr/sbin
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/vsftpd $(IDIR_VSFTPD)/usr/sbin/
$(RSTRIP) $(IDIR_VSFTPD)
$(IPKG_BUILD) $(IDIR_VSFTPD) $(PACKAGE_DIR)