Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Akoellh
tlsdate
tlsdate.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tlsdate.spec of Package tlsdate
# # spec file for package tlsdate # # Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # See also http://en.opensuse.org/openSUSE:Specfile_guidelines %if 0%{?suse_version} > 1220 %define with_systemd 1 %else %define with_systemd 0 %endif %if 0%{?suse_version} < 1230 %define _unitdir /lib/systemd/system %else %define _unitdir /usr/lib/systemd/system %endif Name: tlsdate Version: 0.0.13 Release: 0 Summary: Secure parasitic rdate replacement License: BSD-3-Clause Group: System/Daemons Url: https://github.com/ioerror/tlsdate Source0: %{name}-%{version}.tar.xz Source1: %{name}d.default Patch0: %{name}-0.0.13-No_sslv3.patch Patch1: %{name}-0.0.13-openssl-1.1.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-tools BuildRequires: pkgconfig BuildRequires: libtool BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(libevent) #Conflicts: ntp %if %{with_systemd} BuildRequires: systemd %{?systemd_requires} %endif %description tlsdate sets the local clock by securely connecting with TLS to remote servers and extracting the remote time out of the secure handshake. Unlike ntpdate, tlsdate uses TCP, for instance connecting to a remote HTTPS or TLS enabled service, and provides some protection against adversaries that try to feed you malicious time information. %package tools Summary: Tools for tlsdate License: BSD-3-Clause Group: Productivity/Networking/Other %description tools This subpackage contains the tlsdate command line client. %package doc Summary: Documentation for tlsdate License: BSD-3-Clause Group: Documentation/Other BuildArch: noarch %description doc This subpackage contains further documentation. %debug_package %prep %setup -q -n %{name}-%{version} %patch0 -p1 %if 0%{?suse_version} >= 1500 %patch1 -p1 %endif %build ./autogen.sh CONFIGURE_OPTIONS="\ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir} \ --docdir=%{_defaultdocdir}/%{name} \ --localstatedir=%{_var} \ --libdir=%{_libdir} \ --includedir=%{_includedir}/bind \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --with-unpriv-group=nobody \ " export CFLAGS="%{optflags} -fPIE" export LDFLAGS="-pie" ./configure ${CONFIGURE_OPTIONS} make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} mkdir -p %{buildroot}/var/cache/tlsdated mkdir -p %{buildroot}/etc/default/ install -m0644 %{SOURCE1} %{buildroot}/etc/default/%{name}d %if %{with_systemd} install -D -m 0644 systemd/%{name}d.service %{buildroot}/%{_unitdir}/%{name}d.service %__sed -i 's|${DAEMON_OPTS}|$DAEMON_OPTS|g' %{buildroot}/%{_unitdir}/%{name}d.service %{__ln_s} -f /usr/sbin/service $RPM_BUILD_ROOT/usr/sbin/rc%{name}d cat << EOF >> %{buildroot}/%{_unitdir}/%{name}d.service [Install] WantedBy=multi-user.target EOF %endif %if %{with_systemd} %pre %service_add_pre %{name}d.service %endif %post %if %{with_systemd} %service_add_post %{name}d.service %endif %preun %if %{with_systemd} %service_del_preun %{name}d.service %endif %postun %if %{with_systemd} %service_del_postun %{name}d.service %endif %files %defattr(-,root,root) %_mandir/man5/tlsdated.conf.5.gz %_mandir/man8/tlsdated.8.gz %dir %_sysconfdir/%name %dir %_sysconfdir/%name/ca-roots %config %_sysconfdir/%name/tlsdated.conf %config %_sysconfdir/%name/ca-roots/tlsdate-ca-roots.conf %config %_sysconfdir/default/%{name}d %_sbindir/tlsdated %if %{with_systemd} %{_unitdir}/%{name}d.service %{_sbindir}/rc%{name}d %endif %dir /var/cache/tlsdated %ghost /var/cache/tlsdated/timestamp %files tools %defattr(-,root,root) %_mandir/man1/tlsdate-helper.1.gz %_mandir/man1/tlsdate.1.gz %_bindir/tlsdate %_bindir/tlsdate-helper %files doc %defattr(-,root,root) %doc %dir %_defaultdocdir/%name %doc %_defaultdocdir/%name/AUTHORS %doc %_defaultdocdir/%name/CHANGELOG %doc %_defaultdocdir/%name/LICENSE %doc %_defaultdocdir/%name/README %doc %_defaultdocdir/%name/TODO %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor