66: update to 0.6.2.0.

This commit is contained in:
mobinmob 2021-10-01 18:40:24 +03:00 committed by Érico Nogueira Rolim
parent bcfa0da175
commit cd198b56f0
2 changed files with 30 additions and 2 deletions

View file

@ -0,0 +1,27 @@
diff --git a/skel/shutdown b/skel/shutdown
index 0f59623855bc8e8ad260eeeb57a090f88b26b5d1..b39f0f0decb9b8e27c65ba59b3891482f326a876 100755
--- a/skel/shutdown
+++ b/skel/shutdown
@@ -28,18 +28,18 @@ Time must be one of these formats: [ now | [+]mins | hh:mm ] where:
mins or +mins : relative time; triggers the shutdown sequence after mins minutes.
hh:mm : absolute time; triggers the shutdown sequence when the time hh:mm occurs.
-See also 66-shutdown program to more features.
+See also 66-shutdown program for more features.
EOF
exit 111
}
die() {
- printf "${PROG}:fatal: options must be set first\n" >&1
+ printf "%s:fatal: options must be set first\n" "${PROG}" >&1
usage
}
-[ -z ${1} ] && die
+[ -z "${1}" ] && die
-[ ${1:0:1} != '-' ] && die
+[ "${1%%"${1#?}"}" != '-' ] && die
66-shutdown "${@}"

View file

@ -1,6 +1,6 @@
# Template file for '66'
pkgname=66
version=0.6.1.2
version=0.6.2.0
revision=1
wrksrc="66-v${version}"
build_style=configure
@ -18,7 +18,8 @@ license="ISC"
homepage="http://web.obarun.org/software/"
changelog="https://framagit.org/Obarun/66/raw/master/NEWS.md"
distfiles="https://framagit.org/Obarun/66/-/archive/v${version}/66-v${version}.tar.bz2"
checksum=99de5ede29670ffb55808dc0c3f28a49bf005d594ba3016b13271d4de025f589
checksum=f63600e9f8e53211e421707aae7f98d2fa9d1b0d0b4b39162cf180df12b99c28
patch_args="-Np1"
conf_files="/etc/66/init.conf"