2018-02-24 19:17:53 +00:00
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := ariang
2023-09-17 03:12:44 +00:00
PKG_VERSION := 1.3.6
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
PKG_RELEASE := 1
2018-02-24 19:17:53 +00:00
2021-06-13 09:08:17 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .zip
PKG_SOURCE_URL := https://github.com/mayswind/AriaNg/releases/download/$( PKG_VERSION)
2023-09-17 03:12:44 +00:00
PKG_HASH := 2d36e1a39d95867b8e0cdb3cde96d04d40117bd37e8742d639da92496e07cc7b
2021-06-13 09:08:17 +00:00
UNPACK_CMD = unzip -q -d $( 1) $( DL_DIR) /$( PKG_SOURCE)
2018-02-24 19:17:53 +00:00
2020-06-12 03:21:09 +00:00
PKG_MAINTAINER := Ansuel Smith <ansuelsmth@gmail.com>
2018-02-24 19:17:53 +00:00
PKG_LICENSE := MIT
PKG_LICENSE_FILES := LICENSE
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
2018-06-07 16:39:01 +00:00
d e f i n e P a c k a g e / a r i a n g / d e f a u l t
2018-02-24 19:17:53 +00:00
SECTION:= net
CATEGORY:= Network
SUBMENU:= Download Manager
2018-06-07 16:39:01 +00:00
DEPENDS:= +aria2
TITLE:= AriaNg webui
2019-06-05 19:16:51 +00:00
URL:= https://ariang.mayswind.net
2018-02-24 19:17:53 +00:00
PKGARCH:= all
e n d e f
d e f i n e P a c k a g e / a r i a n g / d e s c r i p t i o n
AriaNg is a web frontend making aria2 easier to use. AriaNg is written in pure html & javascript, thus it does not need any compilers or runtime environment.
e n d e f
2018-06-07 16:39:01 +00:00
P a c k a g e / a r i a n g - n g i n x / description = $( Package/ariang/description)
d e f i n e P a c k a g e / a r i a n g
$( Package/ariang/default)
DEPENDS += +uhttpd
TITLE += for uhttpd webserver
e n d e f
d e f i n e P a c k a g e / a r i a n g - n g i n x
$( Package/ariang/default)
DEPENDS += +nginx
TITLE += for nginx webserver
e n d e f
2018-02-24 19:17:53 +00:00
d e f i n e B u i l d / C o m p i l e
e n d e f
d e f i n e P a c k a g e / a r i a n g / i n s t a l l
$( INSTALL_DIR) \
$( 1) /www/ariang
$( CP) \
$( PKG_BUILD_DIR) /{ langs,css,js,fonts} \
$( PKG_BUILD_DIR) /index.html \
$( PKG_BUILD_DIR) /LICENSE \
2021-12-16 06:00:04 +00:00
$( PKG_BUILD_DIR) /favicon.* \
2020-11-29 07:56:53 +00:00
$( PKG_BUILD_DIR) /robots.txt \
2023-09-17 03:12:44 +00:00
$( PKG_BUILD_DIR) /tileicon.png \
$( PKG_BUILD_DIR) /touchicon.png \
2018-02-24 19:17:53 +00:00
$( 1) /www/ariang
e n d e f
2018-06-14 18:15:15 +00:00
d e f i n e P a c k a g e / a r i a n g - n g i n x / i n s t a l l
$( Package/ariang/install)
2020-02-02 18:13:30 +00:00
$( INSTALL_DIR) $( 1) /etc/nginx/conf.d/
$( INSTALL_BIN) ./files/ariang.locations $( 1) /etc/nginx/conf.d/
2018-06-14 18:15:15 +00:00
$( INSTALL_DIR) $( 1) /etc/uci-defaults
$( INSTALL_BIN) ./files/80_ariang-nginx-support $( 1) /etc/uci-defaults/80_ariang-nginx-support
e n d e f
2018-06-07 16:39:01 +00:00
2018-02-24 19:17:53 +00:00
$( eval $ ( call BuildPackage ,ariang ) )
2018-06-07 16:39:01 +00:00
$( eval $ ( call BuildPackage ,ariang -nginx ) )