From cd198b56f0af1225737e5d7985c074c0f4da6648 Mon Sep 17 00:00:00 2001 From: mobinmob Date: Fri, 1 Oct 2021 18:40:24 +0300 Subject: [PATCH] 66: update to 0.6.2.0. --- srcpkgs/66/patches/shutdown_posixsh.diff | 27 ++++++++++++++++++++++++ srcpkgs/66/template | 5 +++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/66/patches/shutdown_posixsh.diff diff --git a/srcpkgs/66/patches/shutdown_posixsh.diff b/srcpkgs/66/patches/shutdown_posixsh.diff new file mode 100644 index 0000000000..c899835192 --- /dev/null +++ b/srcpkgs/66/patches/shutdown_posixsh.diff @@ -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 "${@}" diff --git a/srcpkgs/66/template b/srcpkgs/66/template index 46e5770b2a..7ad72f7d64 100644 --- a/srcpkgs/66/template +++ b/srcpkgs/66/template @@ -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"