From 4f382359b7f186a64d591140cf019a002e3dd29b Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 30 Sep 2021 15:02:40 +0300 Subject: Update to v1.2.6 - Set the upstream url to the new (maintained) fork - Remove the pid patch as it's no longer needed --- .SRCINFO | 15 ++++++--------- 100-pidfile.patch | 11 ----------- PKGBUILD | 30 +++++++++++++----------------- 3 files changed, 19 insertions(+), 37 deletions(-) delete mode 100644 100-pidfile.patch diff --git a/.SRCINFO b/.SRCINFO index 443ff96..ff90fb3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,18 +1,15 @@ pkgbase = htpdate pkgdesc = A client for time synchronisation - pkgver = 1.2.2 - pkgrel = 3 - url = http://www.vervest.org/htp/ + pkgver = 1.2.6 + pkgrel = 1 + url = https://github.com/angeloc/htpdate arch = i686 arch = x86_64 license = GPL2 depends = glibc - source = http://www.vervest.org/htp/archive/c/htpdate-1.2.2.tar.xz + source = htpdate-1.2.6.tar.gz::https://github.com/angeloc/htpdate/archive/v1.2.6.tar.gz source = htpdate.service - source = 100-pidfile.patch - md5sums = aad8c33933648532ac8716c809b15be1 - md5sums = d00fce722a88150cffb1b322e6cc8869 - md5sums = f4612bb44274ed571117724a49abb3c1 + sha256sums = d2cff522b8f53b00769dcca77d8025b19238ed35d702a4739dc05e387f718909 + sha256sums = 2f12bdf0745fbf7c52f465e78b47635fbdc6fa372e63fb94a6063a5f67ff8c8b pkgname = htpdate - diff --git a/100-pidfile.patch b/100-pidfile.patch deleted file mode 100644 index a56aba4..0000000 --- a/100-pidfile.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- htpdate.c 2019-07-12 19:10:17.000000000 +0200 -+++ htpdate.c.patched 2020-05-06 13:15:51.419075086 +0200 -@@ -499,7 +499,7 @@ - printlog( 1, "Error writing pid file" ); - exit(1); - } else { -- fprintf( pid_file, "%u\n", (unsigned short)pid ); -+ fprintf( pid_file, "%d\n", (signed int)pid ); - fclose( pid_file ); - } - printlog( 0, "htpdate version "VERSION" started" ); diff --git a/PKGBUILD b/PKGBUILD index ad8a2bc..9e2d275 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,32 +1,28 @@ -# Maintainer: Dominik Schrempf +# Maintainer: Yigit Sever +# Contributor: Dominik Schrempf # Contributor: Jonathan Ryan # Contributor: Hussam Al-Tayeb pkgname=htpdate -pkgver=1.2.2 -pkgrel=3 +pkgver=1.2.6 +pkgrel=1 pkgdesc="A client for time synchronisation" -arch=(i686 x86_64) -url="http://www.vervest.org/htp/" +arch=('i686' 'x86_64') +url="https://github.com/angeloc/htpdate" license=(GPL2) depends=('glibc') -# TODO: In the process of adding two patches from OpenWRT, but they are rejected. -# See https://aur.archlinux.org/packages/htpdate/. -source=("http://www.vervest.org/htp/archive/c/${pkgname}-${pkgver}.tar.xz" - "htpdate.service" - "100-pidfile.patch") -md5sums=('aad8c33933648532ac8716c809b15be1' - 'd00fce722a88150cffb1b322e6cc8869' - 'f4612bb44274ed571117724a49abb3c1') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" + "htpdate.service") +sha256sums=('d2cff522b8f53b00769dcca77d8025b19238ed35d702a4739dc05e387f718909' + '2f12bdf0745fbf7c52f465e78b47635fbdc6fa372e63fb94a6063a5f67ff8c8b') build() { cd ${pkgname}-${pkgver} - patch htpdate.c ../100-pidfile.patch make } package() { - install -D -m 644 htpdate.service ${pkgdir}/usr/lib/systemd/system/htpdate.service + install -D -m644 htpdate.service ${pkgdir}/usr/lib/systemd/system/htpdate.service cd ${pkgname}-${pkgver} - install -D -m 755 htpdate ${pkgdir}/usr/bin/htpdate - install -D -m 644 htpdate.8 ${pkgdir}/usr/share/man/man8/htpdate.8 + install -D -m755 htpdate ${pkgdir}/usr/bin/htpdate + install -D -m644 htpdate.8 ${pkgdir}/usr/share/man/man8/htpdate.8 } -- cgit v1.2.3-70-g09d2