From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- htpdate | 1 - htpdate/.SRCINFO | 15 +++++++++++++++ htpdate/.gitignore | 4 ++++ htpdate/PKGBUILD | 28 ++++++++++++++++++++++++++++ htpdate/htpdate.service | 11 +++++++++++ 5 files changed, 58 insertions(+), 1 deletion(-) delete mode 160000 htpdate create mode 100644 htpdate/.SRCINFO create mode 100644 htpdate/.gitignore create mode 100644 htpdate/PKGBUILD create mode 100644 htpdate/htpdate.service (limited to 'htpdate') diff --git a/htpdate b/htpdate deleted file mode 160000 index 4f38235..0000000 --- a/htpdate +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4f382359b7f186a64d591140cf019a002e3dd29b diff --git a/htpdate/.SRCINFO b/htpdate/.SRCINFO new file mode 100644 index 0000000..ff90fb3 --- /dev/null +++ b/htpdate/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = htpdate + pkgdesc = A client for time synchronisation + pkgver = 1.2.6 + pkgrel = 1 + url = https://github.com/angeloc/htpdate + arch = i686 + arch = x86_64 + license = GPL2 + depends = glibc + source = htpdate-1.2.6.tar.gz::https://github.com/angeloc/htpdate/archive/v1.2.6.tar.gz + source = htpdate.service + sha256sums = d2cff522b8f53b00769dcca77d8025b19238ed35d702a4739dc05e387f718909 + sha256sums = 2f12bdf0745fbf7c52f465e78b47635fbdc6fa372e63fb94a6063a5f67ff8c8b + +pkgname = htpdate diff --git a/htpdate/.gitignore b/htpdate/.gitignore new file mode 100644 index 0000000..a41cf30 --- /dev/null +++ b/htpdate/.gitignore @@ -0,0 +1,4 @@ +/update +/htpdate-*.tar.xz +/pkg/ +/src/ diff --git a/htpdate/PKGBUILD b/htpdate/PKGBUILD new file mode 100644 index 0000000..9e2d275 --- /dev/null +++ b/htpdate/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Yigit Sever +# Contributor: Dominik Schrempf +# Contributor: Jonathan Ryan +# Contributor: Hussam Al-Tayeb +pkgname=htpdate +pkgver=1.2.6 +pkgrel=1 +pkgdesc="A client for time synchronisation" +arch=('i686' 'x86_64') +url="https://github.com/angeloc/htpdate" +license=(GPL2) +depends=('glibc') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" + "htpdate.service") +sha256sums=('d2cff522b8f53b00769dcca77d8025b19238ed35d702a4739dc05e387f718909' + '2f12bdf0745fbf7c52f465e78b47635fbdc6fa372e63fb94a6063a5f67ff8c8b') + +build() { + cd ${pkgname}-${pkgver} + make +} + +package() { + install -D -m644 htpdate.service ${pkgdir}/usr/lib/systemd/system/htpdate.service + cd ${pkgname}-${pkgver} + install -D -m755 htpdate ${pkgdir}/usr/bin/htpdate + install -D -m644 htpdate.8 ${pkgdir}/usr/share/man/man8/htpdate.8 +} diff --git a/htpdate/htpdate.service b/htpdate/htpdate.service new file mode 100644 index 0000000..509b072 --- /dev/null +++ b/htpdate/htpdate.service @@ -0,0 +1,11 @@ +[Unit] +Description=Htpdate daemon + +[Service] +Type=forking +PIDFile=/run/htpdate.pid +ExecStart=/usr/bin/htpdate -D -a -s -i /run/htpdate.pid www.linux.org www.freebsd.org ntp.neu.edu.cn www.kernel.org + +[Install] +WantedBy=multi-user.target + -- cgit v1.2.3-70-g09d2