diff options
author | Yigit Sever | 2021-09-30 15:02:40 +0300 |
---|---|---|
committer | Yigit Sever | 2021-09-30 15:02:40 +0300 |
commit | 4f382359b7f186a64d591140cf019a002e3dd29b (patch) | |
tree | 90de4c4d7cbeb81c69760c28c23b2dc475dfae99 | |
parent | dd2728c558612c70ef403df886a4440507057da1 (diff) | |
download | packages-4f382359b7f186a64d591140cf019a002e3dd29b.tar.gz packages-4f382359b7f186a64d591140cf019a002e3dd29b.tar.bz2 packages-4f382359b7f186a64d591140cf019a002e3dd29b.zip |
Update to v1.2.6
- Set the upstream url to the new (maintained) fork
- Remove the pid patch as it's no longer needed
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | 100-pidfile.patch | 11 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 19 insertions, 37 deletions
@@ -1,18 +1,15 @@ | |||
1 | pkgbase = htpdate | 1 | pkgbase = htpdate |
2 | pkgdesc = A client for time synchronisation | 2 | pkgdesc = A client for time synchronisation |
3 | pkgver = 1.2.2 | 3 | pkgver = 1.2.6 |
4 | pkgrel = 3 | 4 | pkgrel = 1 |
5 | url = http://www.vervest.org/htp/ | 5 | url = https://github.com/angeloc/htpdate |
6 | arch = i686 | 6 | arch = i686 |
7 | arch = x86_64 | 7 | arch = x86_64 |
8 | license = GPL2 | 8 | license = GPL2 |
9 | depends = glibc | 9 | depends = glibc |
10 | source = http://www.vervest.org/htp/archive/c/htpdate-1.2.2.tar.xz | 10 | source = htpdate-1.2.6.tar.gz::https://github.com/angeloc/htpdate/archive/v1.2.6.tar.gz |
11 | source = htpdate.service | 11 | source = htpdate.service |
12 | source = 100-pidfile.patch | 12 | sha256sums = d2cff522b8f53b00769dcca77d8025b19238ed35d702a4739dc05e387f718909 |
13 | md5sums = aad8c33933648532ac8716c809b15be1 | 13 | sha256sums = 2f12bdf0745fbf7c52f465e78b47635fbdc6fa372e63fb94a6063a5f67ff8c8b |
14 | md5sums = d00fce722a88150cffb1b322e6cc8869 | ||
15 | md5sums = f4612bb44274ed571117724a49abb3c1 | ||
16 | 14 | ||
17 | pkgname = htpdate | 15 | pkgname = htpdate |
18 | |||
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 @@ | |||
1 | --- htpdate.c 2019-07-12 19:10:17.000000000 +0200 | ||
2 | +++ htpdate.c.patched 2020-05-06 13:15:51.419075086 +0200 | ||
3 | @@ -499,7 +499,7 @@ | ||
4 | printlog( 1, "Error writing pid file" ); | ||
5 | exit(1); | ||
6 | } else { | ||
7 | - fprintf( pid_file, "%u\n", (unsigned short)pid ); | ||
8 | + fprintf( pid_file, "%d\n", (signed int)pid ); | ||
9 | fclose( pid_file ); | ||
10 | } | ||
11 | printlog( 0, "htpdate version "VERSION" started" ); | ||
@@ -1,32 +1,28 @@ | |||
1 | # Maintainer: Dominik Schrempf <dominik.schrempf at gmail dot com> | 1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> |
2 | # Contributor: Dominik Schrempf <dominik.schrempf at gmail dot com> | ||
2 | # Contributor: Jonathan Ryan <jryan at curious-computing dot com> | 3 | # Contributor: Jonathan Ryan <jryan at curious-computing dot com> |
3 | # Contributor: Hussam Al-Tayeb <hussam at visp dot net dot lb> | 4 | # Contributor: Hussam Al-Tayeb <hussam at visp dot net dot lb> |
4 | pkgname=htpdate | 5 | pkgname=htpdate |
5 | pkgver=1.2.2 | 6 | pkgver=1.2.6 |
6 | pkgrel=3 | 7 | pkgrel=1 |
7 | pkgdesc="A client for time synchronisation" | 8 | pkgdesc="A client for time synchronisation" |
8 | arch=(i686 x86_64) | 9 | arch=('i686' 'x86_64') |
9 | url="http://www.vervest.org/htp/" | 10 | url="https://github.com/angeloc/htpdate" |
10 | license=(GPL2) | 11 | license=(GPL2) |
11 | depends=('glibc') | 12 | depends=('glibc') |
12 | # TODO: In the process of adding two patches from OpenWRT, but they are rejected. | 13 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" |
13 | # See https://aur.archlinux.org/packages/htpdate/. | 14 | "htpdate.service") |
14 | source=("http://www.vervest.org/htp/archive/c/${pkgname}-${pkgver}.tar.xz" | 15 | sha256sums=('d2cff522b8f53b00769dcca77d8025b19238ed35d702a4739dc05e387f718909' |
15 | "htpdate.service" | 16 | '2f12bdf0745fbf7c52f465e78b47635fbdc6fa372e63fb94a6063a5f67ff8c8b') |
16 | "100-pidfile.patch") | ||
17 | md5sums=('aad8c33933648532ac8716c809b15be1' | ||
18 | 'd00fce722a88150cffb1b322e6cc8869' | ||
19 | 'f4612bb44274ed571117724a49abb3c1') | ||
20 | 17 | ||
21 | build() { | 18 | build() { |
22 | cd ${pkgname}-${pkgver} | 19 | cd ${pkgname}-${pkgver} |
23 | patch htpdate.c ../100-pidfile.patch | ||
24 | make | 20 | make |
25 | } | 21 | } |
26 | 22 | ||
27 | package() { | 23 | package() { |
28 | install -D -m 644 htpdate.service ${pkgdir}/usr/lib/systemd/system/htpdate.service | 24 | install -D -m644 htpdate.service ${pkgdir}/usr/lib/systemd/system/htpdate.service |
29 | cd ${pkgname}-${pkgver} | 25 | cd ${pkgname}-${pkgver} |
30 | install -D -m 755 htpdate ${pkgdir}/usr/bin/htpdate | 26 | install -D -m755 htpdate ${pkgdir}/usr/bin/htpdate |
31 | install -D -m 644 htpdate.8 ${pkgdir}/usr/share/man/man8/htpdate.8 | 27 | install -D -m644 htpdate.8 ${pkgdir}/usr/share/man/man8/htpdate.8 |
32 | } | 28 | } |