summaryrefslogtreecommitdiff
path: root/debian/watch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/watch')
-rw-r--r--debian/watch10
1 files changed, 8 insertions, 2 deletions
diff --git a/debian/watch b/debian/watch
index 7641bb7..f4fe53a 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,9 @@
version=4
-opts=uversionmangle=s/\.(tar.*|xz|tgz|zip|gz|bz2)$// \
-http://sf.net/ipmitool/ipmitool-?_?([\d+\.]+|\d+)\.(tar.*|xz|tgz|zip|gz|bz2) debian uupdate
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/;s/\-/\./g;s/\_/\./g,\
+filenamemangle=s/(?:.*?)?(?:rel|v|ipmitool|IPMITOOL)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/ipmitool-$1.$2/ \
+https://github.com/ipmitool/ipmitool/releases \
+(?:.*?/)?(?:rel|v|ipmitool|IPMITOOL)?[\-\_]?(\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) \
+debian uupdate
+