+#
+# Copyright (C) 2008-2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
include $(TOPDIR)/rules.mk
PKG_NAME:=ftpd-topfield
PKG_VERSION:=0.7.4
-PKG_RELEASE:=1
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/puppy
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ftpd $(1)/usr/sbin/ftpd-topfield
$(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) ./files/ftpd-topfield.sh $(1)/etc/init.d/ftpd-topfield
+ $(INSTALL_BIN) ./files/ftpd-topfield.init $(1)/etc/init.d/ftpd-topfield
$(INSTALL_DIR) $(1)/etc/config
- $(INSTALL_DATA) ./files/ftpd-topfield.conf $(1)/etc/config/ftpd-topfield
+ $(INSTALL_DATA) ./files/ftpd-topfield.config $(1)/etc/config/ftpd-topfield
+endef
+
+define Package/ftpd-topfield/conffiles
+/etc/config/ftpd-topfield
endef
$(eval $(call BuildPackage,ftpd-topfield))
+++ /dev/null
-config 'ftpd-topfield'
- option 'port' '21'
- option 'turbo' 'disabled'
- option 'elpf' 'disabled'
--- /dev/null
+config 'ftpd-topfield'
+ option 'port' '21'
+ option 'turbo' 'disabled'
+ option 'elpf' 'disabled'
--- /dev/null
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+
+START=50
+
+config_cb() {
+ local cfg="$CONFIG_SECTION"
+ local cfgt
+ config_get cfgt "$cfg" TYPE
+
+ case "$cfgt" in
+ ftpd-topfield)
+ config_get turbo $cfg turbo
+ config_get port $cfg port
+ config_get elpf $cfg elpf
+
+ case "$turbo" in
+ yes|on|enabled|1) turbo=1;;
+ esac
+ case "$elpf" in
+ yes|on|enabled|1) elpf=1;;
+ esac
+ TOPFIELD_ARGS="-D ${turbo:+--turbo }${port:+-P $port }${elpf:+-E}"
+ ;;
+ esac
+}
+
+start() {
+ config_load ftpd-topfield
+ /usr/sbin/ftpd-topfield $TOPFIELD_ARGS
+}
+
+stop() {
+ killall ftpd-topfield
+}
+++ /dev/null
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
-
-START=50
-
-config_cb() {
- local cfg="$CONFIG_SECTION"
- local cfgt
- config_get cfgt "$cfg" TYPE
-
- case "$cfgt" in
- ftpd-topfield)
- config_get turbo $cfg turbo
- config_get port $cfg port
- config_get elpf $cfg elpf
-
- case "$turbo" in
- yes|on|enabled|1) turbo=1;;
- esac
- case "$elpf" in
- yes|on|enabled|1) elpf=1;;
- esac
- TOPFIELD_ARGS="-D ${turbo:+--turbo }${port:+-P $port }${elpf:+-E}"
- ;;
- esac
-}
-
-start() {
- config_load ftpd-topfield
- /usr/sbin/ftpd-topfield $TOPFIELD_ARGS
-}
-
-stop() {
- killall ftpd-topfield
-}