tlsdate: add support for aarch64, use system ca-certificates.
This commit is contained in:
parent
f2a08982e6
commit
fcf0ef1ee2
2 changed files with 29 additions and 4 deletions
21
srcpkgs/tlsdate/patches/aarch64.patch
Normal file
21
srcpkgs/tlsdate/patches/aarch64.patch
Normal file
|
@ -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
|
|
@ -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 <chneukirchen@gmail.com>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue