Thank you, Stephen. It seems I can't edit the wiki, but here are "copy and paste" instructions for building and installing ntp 4.2.6p5 RPMS on CentOS 6.3.
yum remove ntp ntpdate yum install libcap-devel openssl-devel libedit-devel mkdir -p ~/install_files/ntp cd ~/install_files/ntp wget http://vault.centos.org/6.3/os/Source/SPackages/ntp-4.2.4p8-2.el6.centos.src.rpm rpm -i ntp-4.2.4p8-2.el6.centos.src.rpm cd ~/rpmbuild/SOURCES wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p5.tar.gz cd ~/rpmbuild/SPECS cp ntp.spec ntp.spec.bak sed -i 's/Version: 4.2.4p8/Version: 4.2.6p5/g' ntp.spec sed -i 's/--enable-linuxcaps/--enable-linuxcaps --enable-ntp-signd/g' ntp.spec sed -i 's/%patch/#%patch/g' ntp.spec sed -i 's/%{_sbindir}\/tickadj/%{_sbindir}\/tickadj\n%{_sbindir}\/sntp/g' ntp.spec rpmbuild -ba ntp.spec cd ~/rpmbuild/RPMS/$(uname -i)/ rpm -i ntp-4.2.6p5-2.el6.$(uname -i).rpm ntpdate-4.2.6p5-2.el6.$(uname -i).rpm On Wed, Dec 12, 2012 at 7:23 PM, Stephen Jones <lloydsyst...@fastmail.com.au > wrote: > Hi, > > I built ntp-4.2.6p5 on CentOS 6.3 for my Samba4 server. The > instructions in the HowTo are not quite right (at least for CentOS). > Make only the following changes to the ntp.spec file: > 1. Update the version/release numbers > 2. Comment out all 'patch' lines > 3. Add the '--enable-ntp-signd' option after '--enable-linuxcaps' > 4. Add the line '%{_sbindir}/sntp' after the '%{_ntptime}' line > > Ignore the suggested edits related to 'man' entries or it will not > compile, as you have found. With the above changes rpmbuild will work. > It seems in the latest version of the HowTo they have removed the > rpmbuild instructions altogether. > > Regards, > > Stephen Jones > Lloyd Systems Engineering > > > > On Thu, Dec 13, 2012, at 06:50 AM, Thomas Simmons wrote: > > Hello, > > > > I am trying to build an NTP v4.2.6p5 RPM using the instructions in the S4 > > how-to, however rpmbuild fails with the following error: > > > > error: File not found by glob: > > > /home/thomas/rpmbuild/BUILDROOT/ntp-4.2.6p5-2.el6.x86_64/usr/share/man/man8/ntpdtime.8* > > > > > > RPM build errors: > > File not found by glob: > > > /home/thomas/rpmbuild/BUILDROOT/ntp-4.2.6p5-2.el6.x86_64/usr/share/man/man8/ntpdtime.8* > > > > I have updated my ntp.spec by updating the version and commenting out all > > lines that begin with %patch. I have also made the following changes, as > > directed in the how-to. I assume the error is coming from the line > > addition > > "%{_mandir}/man8/ntpdtime.8*", however I'm not sure of the fix. It seems > > like that should be included in the source RPM? > > > > < --enable-linuxcaps > > --- > > > --enable-linuxcaps --enable-ntp-signd > > 330a331 > > > %{_sbindir}/sntp > > 348,349c349,350 > > < %{_mandir}/man8/ntptime.8* > > < %{_mandir}/man8/tickadj.8* > > --- > > > %{_mandir}/man8/ntpdtime.8* > > > #%{_mandir}/man8/tickadj.8* > > 355c356 > > < %{_mandir}/man8/ntp-wait.8* > > --- > > > #%{_mandir}/man8/ntp-wait.8* > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba