summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Swanson2016-12-01 02:09:48 -0800
committerMike Swanson2016-12-01 02:09:48 -0800
commit7e25be13d50a5224f103a087046feb46b52a3cb7 (patch)
treed109e5f92ceef89ce743f94d31d0d56f156df82e
downloadaur-7e25be13d50a5224f103a087046feb46b52a3cb7.tar.gz
ntpsec 0.9.5
-rw-r--r--.SRCINFO32
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD63
-rw-r--r--autorevision-cache19
4 files changed, 120 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1d367a7f913
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+# Generated by mksrcinfo v8
+# Thu Dec 1 10:09:26 UTC 2016
+pkgbase = ntpsec
+ pkgdesc = Security-hardened Network Time Protocol implementation
+ pkgver = 0.9.5
+ pkgrel = 1
+ url = https://www.ntpsec.org/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = asciidoc
+ makedepends = pps-tools
+ depends = avahi
+ depends = libevent
+ depends = libseccomp
+ depends = python
+ optdepends = gnuplot: for ntpviz
+ optdepends = libevent: for ntpdig
+ optdepends = python-psutil: Optional for ntpviz, allows running with ionice
+ optdepends = ttf-liberation: Improves font quality in ntpviz renderings
+ provides = ntp
+ conflicts = ntp
+ noextract = ntpsec-0.9.5.tar.gz
+ source = ftp://ftp.ntpsec.org/pub/releases/ntpsec-0.9.5.tar.gz
+ source = ftp://ftp.ntpsec.org/pub/releases/ntpsec-0.9.5.tar.gz.sig
+ source = autorevision-cache
+ sha256sums = 4ddfb2c500428b14c272d6ad600438dec6ca76f87b0b20015dddfe7a18e5b7e3
+ sha256sums = SKIP
+ sha256sums = 1c6d50ba5404ac0573b93fc12101be1028c3ea5740318576a8bf6479abda27dc
+
+pkgname = ntpsec
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..18b477fc228
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.pkg.tar*
+*.src.tar*
+*.gz
+*.sig
+src
+pkg
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d9228032046
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,63 @@
+# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
+
+pkgname=ntpsec
+pkgver=0.9.5
+pkgrel=1
+pkgdesc="Security-hardened Network Time Protocol implementation"
+arch=('i686' 'x86_64')
+url="https://www.ntpsec.org/"
+license=('custom')
+depends=('avahi' 'libevent' 'libseccomp' 'python')
+makedepends=('asciidoc' 'pps-tools')
+optdepends=('gnuplot: for ntpviz'
+ 'libevent: for ntpdig'
+ 'python-psutil: Optional for ntpviz, allows running with ionice'
+ 'ttf-liberation: Improves font quality in ntpviz renderings')
+provides=('ntp')
+conflicts=('ntp')
+source=("ftp://ftp.ntpsec.org/pub/releases/ntpsec-$pkgver.tar.gz"
+ "ftp://ftp.ntpsec.org/pub/releases/ntpsec-$pkgver.tar.gz.sig"
+ "autorevision-cache")
+sha256sums=('4ddfb2c500428b14c272d6ad600438dec6ca76f87b0b20015dddfe7a18e5b7e3'
+ 'SKIP'
+ '1c6d50ba5404ac0573b93fc12101be1028c3ea5740318576a8bf6479abda27dc')
+noextract=("ntpsec-$pkgver.tar.gz")
+validpgpkeys=('DA3FDF774CC70FA64729EC4505D9B371477C7528')
+
+prepare() {
+ mkdir "$srcdir/ntpsec-$pkgver"
+ tar -xf ntpsec-$pkgver.tar.gz -C "$srcdir/ntpsec-$pkgver"
+ sed -i -e 's/sbin/bin/g' "$srcdir/ntpsec-$pkgver/etc/ntpd.service"
+ sed -i -e '/ExecStop/d' "$srcdir/ntpsec-$pkgver/etc/ntpd.service"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ mkdir -p "build/main/wafhelpers"
+ cp "$srcdir/autorevision-cache" "build/main/wafhelpers/.autorevision-cache"
+ ./waf configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib \
+ --enable-debug-gdb --enable-seccomp --refclock=all \
+ --sbindir=/usr/bin
+ ./waf build
+ a2x -f text docs/copyright.txt
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ ./waf check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ ./waf install --destdir="$pkgdir/"
+
+ install -d "$pkgdir/etc/logrotate.d"
+ install -d "$pkgdir/usr/lib/systemd/system"
+ install -d "$pkgdir/usr/share/licenses/ntpsec"
+ install -m 644 etc/logrotate-config.ntpd "$pkgdir/etc/logrotate.d/ntpd"
+ install -m 644 etc/ntpd.service "$pkgdir/usr/lib/systemd/system/ntpd.service"
+ install -m 644 docs/copyright.text "$pkgdir/usr/share/licenses/ntpsec/COPYING"
+
+ # --mandir, it does nothing!
+ mv "$pkgdir/usr/man" "$pkgdir/usr/share/man"
+}
diff --git a/autorevision-cache b/autorevision-cache
new file mode 100644
index 00000000000..d0431e730e2
--- /dev/null
+++ b/autorevision-cache
@@ -0,0 +1,19 @@
+# Generated by autorevision - do not hand-hack!
+
+VCS_TYPE="git"
+VCS_BASENAME="ntpsec"
+VCS_UUID="5a60ff124237ba5d23101e4ca60016ebeae7cb50"
+VCS_NUM="11452"
+VCS_DATE="2016-11-24T04:20:49Z"
+VCS_BRANCH=""
+VCS_TAG="NTPsec_0_9_5"
+VCS_TICK="0"
+VCS_EXTRA=""
+
+VCS_ACTION_STAMP="2016-11-24T04:20:49Z!esr@thyrsus.com"
+VCS_FULL_HASH="190ee039df6230c12d459bac73a1d75e99455ebd"
+VCS_SHORT_HASH="190ee03"
+
+VCS_WC_MODIFIED="0"
+
+# end