From fcf0ef1ee2e2d3bfb99b3a7498a4f0f15798d117 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 28 Feb 2017 10:46:13 +0100 Subject: [PATCH] tlsdate: add support for aarch64, use system ca-certificates. --- srcpkgs/tlsdate/patches/aarch64.patch | 21 +++++++++++++++++++++ srcpkgs/tlsdate/template | 12 ++++++++---- 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/tlsdate/patches/aarch64.patch diff --git a/srcpkgs/tlsdate/patches/aarch64.patch b/srcpkgs/tlsdate/patches/aarch64.patch new file mode 100644 index 0000000000..b0ea3f8d4e --- /dev/null +++ b/srcpkgs/tlsdate/patches/aarch64.patch @@ -0,0 +1,21 @@ +--- src/seccomp.c.orig 2015-05-28 20:49:40.000000000 +0200 ++++ src/seccomp.c 2017-02-27 20:02:02.490783181 +0100 +@@ -48,6 +48,8 @@ + # define EM_ARM 40 + # endif + # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM ++#elif defined(__aarch64__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64 + #else + # error "Platform does not support seccomp filter yet" + #endif +@@ -87,7 +89,9 @@ + SC_ALLOW (exit_group), + SC_ALLOW (exit), + ++#ifdef __NR_open + SC_DENY (open, EINVAL), ++#endif + SC_DENY (fcntl, EINVAL), + SC_DENY (fstat, EINVAL), + #ifdef __NR_mmap diff --git a/srcpkgs/tlsdate/template b/srcpkgs/tlsdate/template index 779116bf6c..79c6f23dda 100644 --- a/srcpkgs/tlsdate/template +++ b/srcpkgs/tlsdate/template @@ -1,28 +1,32 @@ # Template file for 'tlsdate' pkgname=tlsdate version=0.0.13 -revision=6 +revision=7 wrksrc="${pkgname}-${pkgname}-${version}" build_style=gnu-configure -configure_args="--sbindir=/usr/bin - --with-polarssl=no ac_cv_func_clock_gettime=yes" +configure_args="--with-polarssl=no ac_cv_func_clock_gettime=yes" conf_files="/etc/tlsdate/tlsdated.conf" make_dirs="/var/cache/tlsdated 0755 root root" hostmakedepends="automake pkg-config libtool" makedepends="libressl-devel dbus-devel libevent-devel" +depends="ca-certificates" short_desc="Secure parasitic rdate replacement using HTTPS" maintainer="Christian Neukirchen " -license="BSD" +license="3-clause-BSD" homepage="https://github.com/ioerror/tlsdate" distfiles="https://github.com/ioerror/tlsdate/archive/${pkgname}-${version}.tar.gz" checksum=90efdff87504b5159cb6a3eefa9ddd43723c073d49c4b3febba9e48fc1292bf9 pre_configure() { + # use system certs + sed -i Makefile.am \ + -e 's|/tlsdate/ca-roots/tlsdate-ca-roots.conf|/ssl/certs/ca-certificates.crt|' sh ./autogen.sh } post_install() { vlicense LICENSE + rm ${DESTDIR}/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf rm ${DESTDIR}/usr/share/doc/${pkgname}/{TODO,LICENSE} vsv tlsdated }