Add package openrdate version 1.2 (#4604)
* openrdate: Adding cgmanifest entry * openrdate: Using autosetup macro * openrdate: Update license map
This commit is contained in:
parent
c292a440d0
commit
9403cd594f
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"openrdate-1.2.tar.gz": "2921fc96d4ca676190d6ffd45fa80e107c1fe12291c0c4f64827c29639863332"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
Summary: Good-old rdate date and time-setting software
|
||||
Name: openrdate
|
||||
Version: 1.2
|
||||
Release: 23%{?dist}
|
||||
License: BSD AND BSD WITH advertising
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
URL: https://sourceforge.net/projects/openrdate
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
Patch0: openrdate_sysctl.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
# openrdate-1.2-1 replaces rdate-1.4-24, which does not have active upstream
|
||||
Provides: rdate = %{version}-%{release}
|
||||
Obsoletes: rdate < 1.4-25
|
||||
|
||||
%description
|
||||
Good-old date- and time-setting rdate software implementing RFC 868
|
||||
(inetd time) and RFC 2030 (SNTP/NTP) protocols. An independent package
|
||||
of OpenBSD's rdate program.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog NEWS README
|
||||
%{_bindir}/rdate
|
||||
%{_mandir}/man8/rdate.8*
|
||||
|
||||
%changelog
|
||||
* Mon Jan 16 2023 Suresh Thelkar <sthelkar@microsoft.com> - 1.2-23
|
||||
- Initial CBL-Mariner import from Fedora 36 (license: MIT)
|
||||
- License verified
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Aug 13 2020 Filip Januš <fjanus@redhat.com> - 1.2-19
|
||||
- Add patch solving missing sys/sysctl.h header file and sysctl function
|
||||
- Resolves (#1865166)
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-18
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Mon Aug 19 2013 Honza Horak <hhorak@redhat.com> - 1.2-4
|
||||
- Fix obsoletes NVR
|
||||
Resolves: #998172
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri May 31 2013 Honza Horak <hhorak@redhat.com> - 1.2-2
|
||||
- Fix issues found by Package Review
|
||||
|
||||
* Mon May 27 2013 Honza Horak <hhorak@redhat.com> - 1.2-1
|
||||
- Initial packaging
|
|
@ -0,0 +1,55 @@
|
|||
Author: Filip Januš
|
||||
|
||||
Fedora 34 and later doesn't support using ssys/sysctl.h header file and
|
||||
sysctl function, openrdate uses sysctl for acces to random numbers.
|
||||
This patch change calling sysctl to getentropy.
|
||||
diff -ur openrdate-1.2/src/arc4random.c new/src/arc4random.c
|
||||
--- openrdate-1.2/src/arc4random.c 2008-11-22 00:22:49.000000000 +0100
|
||||
+++ new/src/arc4random.c 2020-08-13 11:51:43.109147967 +0200
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
-#include <sys/sysctl.h>
|
||||
+#include <linux/sysctl.h>
|
||||
|
||||
#if defined __NO_SYSCTL__
|
||||
#include <err.h>
|
||||
@@ -71,6 +71,7 @@
|
||||
#define inline
|
||||
#endif /* !__GNUC__ */
|
||||
|
||||
+
|
||||
struct arc4_stream {
|
||||
u_int8_t i;
|
||||
u_int8_t j;
|
||||
@@ -115,11 +116,7 @@
|
||||
static void
|
||||
arc4_stir(void)
|
||||
{
|
||||
-#ifndef __NO_SYSCTL__
|
||||
- int i, mib[2];
|
||||
-#else /* !__NO_SYSCTL__ */
|
||||
- int i;
|
||||
-#endif /* !__NO_SYSCTL__ */
|
||||
+ int i;
|
||||
size_t len;
|
||||
u_char rnd[128];
|
||||
|
||||
@@ -128,15 +125,11 @@
|
||||
rs_initialized = 1;
|
||||
}
|
||||
|
||||
-#ifndef __NO_SYSCTL__
|
||||
- mib[0] = CTL_KERN;
|
||||
- mib[1] = KERN_ARND;
|
||||
-#endif /* __NO_SYSCTL__ */
|
||||
|
||||
len = sizeof(rnd);
|
||||
|
||||
#ifndef __NO_SYSCTL__
|
||||
- sysctl(mib, 2, rnd, &len, NULL, 0);
|
||||
+ getentropy(rnd, len);
|
||||
#else /* __NO_SYSCTL__ */
|
||||
int rndfd = open(RND_DEV, O_RDONLY);
|
||||
|
File diff suppressed because one or more lines are too long
|
@ -989,6 +989,7 @@
|
|||
"openmpi",
|
||||
"openobex",
|
||||
"openoffice-lv",
|
||||
"openrdate",
|
||||
"opensc",
|
||||
"openslp",
|
||||
"opensm",
|
||||
|
|
|
@ -14749,6 +14749,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"other": {
|
||||
"name": "openrdate",
|
||||
"version": "1.2",
|
||||
"downloadUrl": "http://downloads.sourceforge.net/openrdate/openrdate-1.2.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
|
|
Loading…
Reference in New Issue