📄 nav.spec
字号:
%define version 3.0_beta8%define _prefix /usr/local/navSummary: Powerful network administration toolName: navVersion: %{version}Release: 1Vendor: NTNU ITEADistribution: Network Administration VisualizedURL: http://metanav.ntnu.no/Source0: %{name}-%{version}.tar.gzLicense: GPLGroup: Applications/InternetBuildRoot: %{_builddir}/%{name}-buildrootBuildArch: noarchPrefix: %{_prefix}Requires: bind-utilsRequires: postgresql >= 7.3Requires: python >= 2.2Requires: perl >= 5.6#Requires: java2 >= 1.4#Requires: java2 >= 1.4%descriptionThis package contains Network Administration Visualized, an advancedsoftware suite to monitor large computer networks. It automaticallydiscovers network topology, monitors network load and outages, and cansend alerts on network events by e-mail and SMS, allowing for flexibleconfiguration of alert profiles.%prep%setup -q%build./configure --prefix=%{_prefix}make%installrm -rf $RPM_BUILD_ROOTmake DESTDIR=$RPM_BUILD_ROOT install%cleanrm -rf $RPM_BUILD_ROOT%preif ( ! grep -q "^nav:" /etc/group ); then echo Creating group nav groupadd navfiif ( ! grep -q "^navcron:" /etc/passwd ); then echo Creating user navcron useradd -M -g nav -d %{_prefix} navcronfi%post# Most processes are now run by navcron, so we make sure any existing# logfiles and pidfiles are owned by navcron and not root.if ( test -d %{_prefix}/var/log ); then chown -R navcron %{_prefix}/var/logfiif ( test -d %{_prefix}/var/run ); then chown -R navcron %{_prefix}/var/runfi%files%defattr(-,root,nav)%{_prefix}/doc%docdir %{_prefix}/doc%{_prefix}/lib%{_prefix}/apache%defattr(2775,root,nav)%{_prefix}/var%defattr(755,root,nav)%{_prefix}/bin%{_prefix}/etc/init.d/%defattr(0775,root,nav)%dir %{_prefix}/etc%dir %{_prefix}/etc/report%dir %{_prefix}/etc/webfront%dir %{_prefix}/etc/cron.d%defattr(0664,root,nav)%config(noreplace) %{_prefix}/etc/alertengine.cfg%config(noreplace) %{_prefix}/etc/alertmsg.conf%config(noreplace) %{_prefix}/etc/cricketoids.txt%config(noreplace) %{_prefix}/etc/cricket-views.conf%config(noreplace) %{_prefix}/etc/db.conf%config(noreplace) %{_prefix}/etc/devbrowser.conf%config(noreplace) %{_prefix}/etc/editdb.conf%config(noreplace) %{_prefix}/etc/eventEngine.conf%config(noreplace) %{_prefix}/etc/getBoksMacs.conf%config(noreplace) %{_prefix}/etc/getDeviceData.conf%config(noreplace) %{_prefix}/etc/logger.conf%config(noreplace) %{_prefix}/etc/machinetracker.conf%config(noreplace) %{_prefix}/etc/nav.conf%config(noreplace) %{_prefix}/etc/pg_backup.conf%config(noreplace) %{_prefix}/etc/pping.conf%config(noreplace) %{_prefix}/etc/rrdBrowser.conf%config(noreplace) %{_prefix}/etc/servicemon.conf%config(noreplace) %{_prefix}/etc/smsd.conf%config(noreplace) %{_prefix}/etc/vPServer.conf%config(noreplace) %{_prefix}/etc/report/front.html%config(noreplace) %{_prefix}/etc/report/report.conf%config(noreplace) %{_prefix}/etc/report/matrix.conf%config(noreplace) %{_prefix}/etc/webfront/contact-information.txt%config(noreplace) %{_prefix}/etc/webfront/external-links.txt%config(noreplace) %{_prefix}/etc/webfront/nav-links.conf%config(noreplace) %{_prefix}/etc/webfront/webfront.conf%config(noreplace) %{_prefix}/etc/webfront/welcome-anonymous.txt%config(noreplace) %{_prefix}/etc/webfront/welcome-registered.txt%config(noreplace) %{_prefix}/etc/cron.d/*%changelog* Wed Jul 21 2004 <morten.vold@itea.ntnu.no>- Grabbed new version 3.0_beta7* Sat Jun 05 2004 <kreide@online.no>- Copy vPServer to config* Thu May 27 2004 <kreide@online.no>- Grabbed new version 3.0_beta5.- Updated NAV description* Tue May 11 2004 <morten.vold@itea.ntnu.no>- (Finally) Grabbed new version 3.0_beta4.* Wed Mar 24 2004 <morten.vold@itea.ntnu.no>- Grabbed new version 3.0_beta3.* Thu Mar 11 2004 <morten.vold@itea.ntnu.no>- Grabbed new version 3.0_beta2.* Tue Mar 09 2004 <morten.vold@itea.ntnu.no>- Some files weren't updated before first beta release was rolled.* Tue Mar 09 2004 <morten.vold@itea.ntnu.no>- First beta release.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -