treewide: replace AUTORELEASE with real PKG_RELEASE 820/head
authorKuan-Yi Li <kyli@abysm.org>
Tue, 18 Jul 2023 02:45:41 +0000 (10:45 +0800)
committerKuan-Yi Li <kyli@abysm.org>
Tue, 18 Jul 2023 20:41:35 +0000 (04:41 +0800)
Based on Paul Fertser <fercerpav@gmail.com>'s guidance:
Change AUTORELEASE in rules.mk to:
```
AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
```

then update all affected packages by:
```
for i in $(git grep -l PKG_RELEASE:=.*AUTORELEASE | sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/clean
done
```

Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
libs/libosip2/Makefile
libs/libsrtp/Makefile
libs/re/Makefile
libs/rem/Makefile
net/asterisk-chan-dongle/Makefile
net/asterisk-opus/Makefile
net/rtpproxy/Makefile
net/siproxd/Makefile
net/sngrep/Makefile

index 7af9d9e741fff7570cbb6cbbc2c948a6868417cc..1fadf0669ab5f9d2c8e0983274b36e0661635044 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libosip2
 PKG_VERSION:=5.3.0
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/osip
index 7d670b271c5965667d165afe34750b03099b5490..337fc6b7fcc5a4d5979c1e01c6c68a7e2c527eac 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libsrtp
 PKG_VERSION:=2.4.2
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=2
 
 PKG_SOURCE:=libsrtp-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/cisco/libsrtp/tar.gz/v$(PKG_VERSION)?
index f2dacab8f6b5c6db28d4a870cbd25db625e2e065..cdf9c88500a790f9202441a9b0ddc49ffde7370f 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=re
 PKG_VERSION:=2.0.1
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/baresip/re/tar.gz/v$(PKG_VERSION)?
index b62f9070899ba86d9ec728dcff523e96d82de764..a87a4ce2b428fca0102d9854022164b610ec6e11 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rem
 PKG_VERSION:=1.0.0
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/baresip/rem/tar.gz/v$(PKG_VERSION)?
index 7276d049cd348159c203c63a851c9914f7de4e1f..2ccd4771c2233a7065b44851780235e2ddc20de8 100644 (file)
@@ -13,7 +13,7 @@ PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/wdoekes/asterisk-chan-dongle.git
 PKG_SOURCE_VERSION:=3d046f7d6842298c6838b5ce5b51d495d383b158
 PKG_SOURCE_DATE=2021-10-06
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=2
 PKG_MIRROR_HASH:=d485c89a7230ab8c318eed6c3a954b154d7e53cc7a0194abf96f4dcb83e6909c
 
 PKG_FIXUP:=autoreconf
index 541bc0f925f303732185330ae9a60fb81767f3f5..42f0f6fbde256b704d1753c7f7a25d855832990e 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=asterisk-opus
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=https://github.com/traud/asterisk-opus.git
 PKG_SOURCE_DATE:=2021-11-01
index 7f64613ed0797445b06afe2ba9537d144cb69443..992cd716bc9eceb59c6c13d34ee8e1e5d0741dd3 100644 (file)
@@ -14,7 +14,7 @@ PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/sippy/rtpproxy.git
 PKG_SOURCE_DATE=2019-10-02
 PKG_SOURCE_VERSION:=aa1f179e09097f467bc4726e3300014c1e35246f
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=4
 PKG_MIRROR_HASH:=7acc5f5bf2d4be23e9a2fad0c4e7576f172191c9f1b37104aee4d05dbdcac8fd
 
 PKG_BUILD_PARALLEL:=1
index 6acd556f7547e688a76a57b19c303392c59713d8..b36204962c67cdda01ea409bdbb0c1c78e0ce3e8 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=siproxd
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/hb9xar/siproxd.git
index 55f6db763443c7713f5264c544e34b3644c8d0f6..d889df8bf153491f33f15a36256d56a9820e8dfb 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=sngrep
 
 PKG_VERSION:=1.6.0
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1
 
 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
 PKG_LICENSE:=GPL-3.0+
@@ -20,8 +20,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/irontec/sngrep/releases/download/v$(PKG_VERSION)
 PKG_HASH:=fd80964d6560f2ff57b4f5bef2353d1a6f7c48d2f1a5f0a167c854bd2e801999
 
-PKG_RELEASE:=1
-
 PKG_FIXUP:=autoreconf
 PKG_BUILD_PARALLEL:=1
 PKG_INSTALL:=1