From 2d2bf83541d69b56156778187fcdd4f3554f4fd2 Mon Sep 17 00:00:00 2001 From: Leong Hui Wong Date: Wed, 6 Nov 2019 08:48:25 +0000 Subject: [PATCH 1/2] leech: add new package A set of scripts that parse RSS feeds and downloads files for you. Recipes are available to send download links to transmission and aria2. Signed-off-by: Leong Hui Wong --- net/leech/Makefile | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 net/leech/Makefile diff --git a/net/leech/Makefile b/net/leech/Makefile new file mode 100644 index 000000000..d7fcbc30b --- /dev/null +++ b/net/leech/Makefile @@ -0,0 +1,61 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=leech +PKG_VERSION:=1.7 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://bitbucket.org/alekseyt/leech.git +PKG_SOURCE_DATE:=2019-07-17 +PKG_SOURCE_VERSION:=2378e7348a8ac8ed23b6d29be81dc3a73080d920 +PKG_MIRROR_HASH:=04ca1d1f2cf614edf871360c1adbc758d9b85b67296af438449367c068ce5320 + +PKG_MAINTAINER:=Leong Hui Wong +PKG_LICENSE:=blessing +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/leech + SECTION:=net + CATEGORY:=Network + SUBMENU:=Download Manager + TITLE:=RSS-feeds parser/files downloader + URL:=https://bitbucket.org/alekseyt/leech/ + DEPENDS:=+xsltproc +curl +endef + +define Package/leech/description + leech downloads files for you if you give it RSS-feeds of your favorite + trackers. Configuration files are under /etc/leech. +endef + +define Build/Compile +endef + +define Build/Install +endef + +define Package/leech/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/sbin/* $(1)/usr/sbin + + $(INSTALL_DIR) $(1)/etc/leech + $(INSTALL_CONF) $(PKG_BUILD_DIR)/config/* $(1)/etc/leech + + $(INSTALL_DIR) $(1)/usr/share/leech + $(INSTALL_DATA) $(PKG_BUILD_DIR)/share/leech/* $(1)/usr/share/leech +endef + +define Package/leech/conffiles +/etc/leech/default +/etc/leech/downloads +/etc/leech/foods +/etc/leech/wild-downloads +/etc/leech/reverse-downloads +endef + +$(eval $(call BuildPackage,leech)) From 217b25429024fc25fc7b7074633cc4f00bd0bfd3 Mon Sep 17 00:00:00 2001 From: Leong Hui Wong Date: Fri, 15 Nov 2019 13:58:38 +0000 Subject: [PATCH 2/2] leech: remove empty install defines Signed-off-by: Leong Hui Wong --- net/leech/Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/leech/Makefile b/net/leech/Makefile index d7fcbc30b..75b0cc1e6 100644 --- a/net/leech/Makefile +++ b/net/leech/Makefile @@ -14,7 +14,6 @@ PKG_MAINTAINER:=Leong Hui Wong PKG_LICENSE:=blessing PKG_LICENSE_FILES:=COPYING -PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk @@ -36,9 +35,6 @@ endef define Build/Compile endef -define Build/Install -endef - define Package/leech/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/sbin/* $(1)/usr/sbin