Author: glen Date: Tue May 25 11:05:37 2010 GMT Module: packages Tag: HEAD ---- Log message: - net-snmp-ntpd and mibs-ntp subpackages, agent seems working
---- Files affected: packages/ntp: ntp.spec (1.137 -> 1.138) ---- Diffs: ================================================================ Index: packages/ntp/ntp.spec diff -u packages/ntp/ntp.spec:1.137 packages/ntp/ntp.spec:1.138 --- packages/ntp/ntp.spec:1.137 Tue May 25 09:15:25 2010 +++ packages/ntp/ntp.spec Tue May 25 13:05:29 2010 @@ -1,20 +1,18 @@ # $Revision$, $Date$ # TODO: -# - package ntpsnmpd - NTP SNMP MIB agent: -# /usr/sbin/ntpsnmpd -# /usr/share/man/man1/ntpsnmpd.1.gz -# - enable and package ntpdsim? +# - enable and package ntpdsim? +# - net-snmp-ntpd needs initscript # # Conditional build: %bcond_without avahi # disable DNS-SD support via Avahi -# + %include /usr/lib/rpm/macros.perl Summary: Network Time Protocol utilities Summary(pl.UTF-8): Narzędzia do synchronizacji czasu (Network Time Protocol) Summary(pt_BR.UTF-8): Network Time Protocol versão 4 Name: ntp Version: 4.2.6p1 -Release: 0.1 +Release: 0.4 License: distributable Group: Networking/Daemons Source0: http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/%{name}-%{version}.tar.gz @@ -63,6 +61,7 @@ %define _sysconfdir /etc/ntp %define _bindir %{_sbindir} +%define mibdir %{_datadir}/mibs %description The Network Time Protocol (NTP) is used to synchronize a computer's @@ -174,6 +173,25 @@ %description -n ntpdate -l pl.UTF-8 Klient do synchronizacji czasu po NTP (Network Time Protocol). +%package -n mibs-ntp +Summary: MIBs for NTP time entities +Group: Applications/System +Requires: mibs-dirs + +%description -n mibs-ntp +The Management Information Base for NTP time entities. + +%package -n net-snmp-ntpd +Summary: NTP SNMP subagent for Net-SNMP +Group: Daemons +Requires(post,preun): /sbin/chkconfig +Requires: net-snmp +Requires: rc-scripts +Suggests: mibs-ntp + +%description -n net-snmp-ntpd +NTP SNMP AgentX subagent for Net-SNMP. + %package tools Summary: NTP tools Group: Applications/Networking @@ -274,6 +292,9 @@ exec /sbin/service ntpdate cronsettime EOF +install -d $RPM_BUILD_ROOT%{mibdir} +cp -a ntpsnmpd/ntpv4-mib.mib $RPM_BUILD_ROOT%{mibdir} + %clean rm -rf $RPM_BUILD_ROOT @@ -380,6 +401,17 @@ %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ntpdate %{_mandir}/man1/ntpdate* +%files -n mibs-ntp +%defattr(644,root,root,755) +%{mibdir}/ntpv4-mib.mib + +%files -n net-snmp-ntpd +%defattr(644,root,root,755) +# TODO: -n mibs-ntpd for the mib file if it is needed +%doc ntpsnmpd/README ntpsnmpd/ntpv4-mib.mib +%attr(755,root,root) %{_sbindir}/ntpsnmpd +%{_mandir}/man1/ntpsnmpd.1* + %files tools %defattr(644,root,root,755) %attr(755,root,root) %{_sbindir}/ntptrace @@ -396,6 +428,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.138 2010/05/25 11:05:29 glen +- net-snmp-ntpd and mibs-ntp subpackages, agent seems working + Revision 1.137 2010/05/25 07:15:25 jajcus - without_avahi bcond and BR: avahi-compat-libdns_sd-devel - ntpdsim man page did not 'disappear', we just don't build ntpdsim ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ntp/ntp.spec?r1=1.137&r2=1.138&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
