commit 31729dd0e324d79ac353f6909613986b48b64e21 Author: zyppe <210hcl@gmail.com> Date: Tue Feb 6 18:13:24 2024 +0800 Initialize for adjtimex diff --git a/.adjtimex.metadata b/.adjtimex.metadata new file mode 100644 index 0000000..9f11f97 --- /dev/null +++ b/.adjtimex.metadata @@ -0,0 +1 @@ +8ff9093cc620d566fe10b446a2a8930989734bd6f814f683b0d0a6a96904ba66 adjtimex_1.29.orig.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3057df1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +adjtimex_1.29.orig.tar.gz diff --git a/adjtimex.changes b/adjtimex.changes new file mode 100644 index 0000000..ee7f750 --- /dev/null +++ b/adjtimex.changes @@ -0,0 +1,26 @@ +* Wed May 28 2014 sbrabec@suse.cz +- Simplify spec file. +- Remove UsrMerge compatibility symlink. +* Wed May 14 2014 ro@suse.de +- add COPYING and COPYRIGHT as doc files +* Mon Jan 21 2013 jengelh@inai.de +- Split "adjtimex" off util-linux +* Tue Mar 6 2012 rschweikert@suse.com +- keep binaries in /usr tree (UsrMerge project) +* Tue Feb 21 2012 puzel@suse.com +- update to adjtimex-1.29 +* Fri Jul 9 2010 puzel@novell.com +- update to adjtimex-1.28 +- drop adjtimex-1.20-nosyscall.diff (fixed upstream) +* Thu Apr 16 2009 werner@suse.de +- Move /usr/sbin/adjtimex to /sbin/adjtimex to be able to check the + kernel time variables even without /usr mounted +* Mon Jan 10 2005 mmj@suse.de +- Update adjtimex to 1.20 +* Mon Apr 14 2003 pthomas@suse.de +- Get rid of the syscall for adjtimex in selective cases and + just call the glibc wrapper. Fixes build on s390. +* Tue Nov 19 2002 mmj@suse.de +- Fix multistring assignment in adjtimex +* Tue Dec 18 2001 bjacke@suse.de +- add adjtimex diff --git a/adjtimex.spec b/adjtimex.spec new file mode 100644 index 0000000..fc716fb --- /dev/null +++ b/adjtimex.spec @@ -0,0 +1,46 @@ +# +# spec file for package adjtimex +# +# Copyright (c) 2022-2023 ZhuningOS +# + + +Name: adjtimex +Version: 1.29 +Release: 1.26 +Summary: Kernel time variables configuration utility +License: GPL-2.0+ +Group: System/Base +Source: http://ftp.debian.org/debian/pool/main/a/adjtimex/%{name}_%{version}.orig.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Provides: util-linux:/usr/sbin/adjtimex + +%description +This program gives you raw access to the kernel time variables. For +a machine connected to the Internet, or equipped with a precision +oscillator or radio clock, the best way to keep the system clock +correct is with ntpd. However, for a standalone or intermittently +connected machine, you may use adjtimex instead to at least correct +for systematic drift. adjtimex can optionally adjust the system clock +using the CMOS clock as a reference, and can log times for long-term +estimation of drift rates. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +install -d %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8 +install adjtimex %{buildroot}%{_sbindir}/ +install -m0644 adjtimex.8 %{buildroot}%{_mandir}/man8/ + +%files +%defattr(-,root,root) +%doc COPYING COPYRIGHT +%{_sbindir}/adjtimex +%{_mandir}/man8/adjtimex.8* + +%changelog