Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
nfsen
> nfsen.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nfsen.spec of Package nfsen (Revision 9)
Currently displaying revision
9
,
show latest
Name: nfsen Version: 1.3.5 Release: 1 Summary: Netflow Sensor Group: Productivity/Networking Url: http://nfsen.sourceforge.net/ License: BSD Source0: %{name}-%{version}.tar.bz2 Source1: nfsen-rpm.conf Patch0: nfsen-no-root.patch ##Patch1: nfsen-piddir.patch Patch2: nfsen-email-alert-subdom.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch BuildRequires: nfsen_prepare_build >= 0.1 BuildRequires: nfdump >= 1.5.8 BuildRequires: perl-MailTools BuildRequires: rrdtool < 1.3 BuildRequires: apache2-mod_php5 Requires: nfdump >= 1.5.8 Requires: perl-MailTools Requires: rrdtool < 1.3 Requires: apache2-mod_php5 %description NfSen is a graphical web based front end for the nfdump netflow tools. %prep %setup %patch0 ##patch1 %patch2 %build # user netflow if [ -z "`%__grep "^netflow" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "netflow" -d %{_datadir}/nfsen -g www -r -s /bin/false netflow fi mkdir -p %{buildroot}%{_datadir} mkdir -p %{buildroot}%{_sysconfdir} mkdir -p %{buildroot}%{_localstatedir} mkdir -p %{buildroot}/srv/www/htdocs %install export DESTDIR=%{buildroot} ./install.pl %{S:1} rm -f %{buildroot}/srv/www/htdocs/nfsen/nfsen.php.orig rm -f %{buildroot}/usr/share/nfsen/libexec/NfSenRC.pm.orig # remove buildroot from files for FILE in %{buildroot}/srv/www/htdocs/nfsen/conf.php %{buildroot}/usr/bin/RebuildHierarchy.pl %{buildroot}/usr/bin/nfsen %{buildroot}/usr/bin/nfsend %{buildroot}/usr/bin/testPlugin %{buildroot}/usr/share/nfsen/libexec/NfConf.pm ; do sed -i s@"%{buildroot}"@@g $FILE done %pre if [ $1 == 1 ] ; then if [ -z "`%__grep "^netflow" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "netflow" -d %{_datadir}/nfsen -g www -r -s /bin/false netflow fi fi %clean rm -rf %{buildroot} %files %defattr(-,root,root) %dir %{_sysconfdir}/nfsen %dir /srv/www/htdocs/nfsen %dir /srv/www/htdocs/nfsen/css ##%dir /srv/www/htdocs/nfsen/doc ##%dir /srv/www/htdocs/nfsen/doc/PluginGuide %dir /srv/www/htdocs/nfsen/icons %dir /srv/www/htdocs/nfsen/js %dir /srv/www/htdocs/nfsen/plugins %dir %{_datadir}/nfsen %dir %{_datadir}/nfsen/libexec %dir %{_datadir}/nfsen/plugins %defattr(-,netflow,www) %dir %{_datadir}/nfsen/profiles-data %dir %{_datadir}/nfsen/profiles-data/live %dir %{_datadir}/nfsen/profiles-data/live/rt01 %dir %{_datadir}/nfsen/profiles-data/live/rt02 %dir %{_datadir}/nfsen/profiles-stat %dir %{_datadir}/nfsen/profiles-stat/live %defattr(-,root,root) %config %{_sysconfdir}/nfsen/nfsen-dist.conf %config(noreplace) %{_sysconfdir}/nfsen/nfsen.conf /srv/www/htdocs/nfsen/alerting.php /srv/www/htdocs/nfsen/colour_palette.html /srv/www/htdocs/nfsen/colour_picker.html /srv/www/htdocs/nfsen/conf.php /srv/www/htdocs/nfsen/css/alerting.css /srv/www/htdocs/nfsen/css/detail.css /srv/www/htdocs/nfsen/css/lookup.css /srv/www/htdocs/nfsen/css/nfsen.css /srv/www/htdocs/nfsen/css/profileadmin.css /srv/www/htdocs/nfsen/details.php ##/srv/www/htdocs/nfsen/doc/AlertArmTrigger.png ##/srv/www/htdocs/nfsen/doc/AlertArmed.png ##/srv/www/htdocs/nfsen/doc/AlertArmedMultiple.png ##/srv/www/htdocs/nfsen/doc/AlertBlocked.png ##/srv/www/htdocs/nfsen/doc/AlertConditions1.png ##/srv/www/htdocs/nfsen/doc/AlertConditions2.png ##/srv/www/htdocs/nfsen/doc/AlertCreateDialoge.png ##/srv/www/htdocs/nfsen/doc/AlertDefinition.png ##/srv/www/htdocs/nfsen/doc/AlertFired.png ##/srv/www/htdocs/nfsen/doc/AlertFiredOnce.png ##/srv/www/htdocs/nfsen/doc/AlertFlow.png ##/srv/www/htdocs/nfsen/doc/AlertInactive.png ##/srv/www/htdocs/nfsen/doc/AlertInfo.png ##/srv/www/htdocs/nfsen/doc/AlertList.png ##/srv/www/htdocs/nfsen/doc/AlertTrigger.png ##/srv/www/htdocs/nfsen/doc/BSD-license.html ##/srv/www/htdocs/nfsen/doc/Bookmark.png ##/srv/www/htdocs/nfsen/doc/BuildingProfile.png ##/srv/www/htdocs/nfsen/doc/ChannelDialog.png ##/srv/www/htdocs/nfsen/doc/DefaultFilter.png ##/srv/www/htdocs/nfsen/doc/DisabledSources.png ##/srv/www/htdocs/nfsen/doc/DragHandle.png ##/srv/www/htdocs/nfsen/doc/ExpandStat.png ##/srv/www/htdocs/nfsen/doc/Lookup.png ##/srv/www/htdocs/nfsen/doc/Navigating.png ##/srv/www/htdocs/nfsen/doc/Navigating.psd ##/srv/www/htdocs/nfsen/doc/NewProfile.png ##/srv/www/htdocs/nfsen/doc/OutOfData.png ##/srv/www/htdocs/nfsen/doc/PluginGuide/plugin-alertaction.png ##/srv/www/htdocs/nfsen/doc/PluginGuide/plugin-alertcondition.png ##/srv/www/htdocs/nfsen/doc/PluginGuide/plugin-guide.html ##/srv/www/htdocs/nfsen/doc/PluginGuide/plugins-comm.png ##/srv/www/htdocs/nfsen/doc/PluginGuide/plugins-concept.png ##/srv/www/htdocs/nfsen/doc/PluginGuide/plugins-frontend-flow.png ##/srv/www/htdocs/nfsen/doc/PortTracker.png ##/srv/www/htdocs/nfsen/doc/ProcessingControls.png ##/srv/www/htdocs/nfsen/doc/ProcessingOutput.png ##/srv/www/htdocs/nfsen/doc/ProfileChannels.png ##/srv/www/htdocs/nfsen/doc/ProfileCommit.png ##/srv/www/htdocs/nfsen/doc/ProfileConversion.png ##/srv/www/htdocs/nfsen/doc/ProfileCreated.png ##/srv/www/htdocs/nfsen/doc/ProfileExamples.png ##/srv/www/htdocs/nfsen/doc/SelectWindow.png ##/srv/www/htdocs/nfsen/doc/StatSummary.png ##/srv/www/htdocs/nfsen/doc/TimeWindow.png ##/srv/www/htdocs/nfsen/doc/WinScale.png ##/srv/www/htdocs/nfsen/doc/alerting.png ##/srv/www/htdocs/nfsen/doc/cursor_control.png ##/srv/www/htdocs/nfsen/doc/custom-format.png ##/srv/www/htdocs/nfsen/doc/details-graphs.png ##/srv/www/htdocs/nfsen/doc/dirstruct.png ##/srv/www/htdocs/nfsen/doc/edit.png ##/srv/www/htdocs/nfsen/doc/flows.png ##/srv/www/htdocs/nfsen/doc/index.html ##/srv/www/htdocs/nfsen/doc/linegraph.png ##/srv/www/htdocs/nfsen/doc/navigation.png ##/srv/www/htdocs/nfsen/doc/nfsen-dist.conf ##/srv/www/htdocs/nfsen/doc/overview.png ##/srv/www/htdocs/nfsen/doc/processing-1.png ##/srv/www/htdocs/nfsen/doc/selectprofile.png ##/srv/www/htdocs/nfsen/doc/stat.png ##/srv/www/htdocs/nfsen/doc/trigger.png /srv/www/htdocs/nfsen/icons/EmptyGraph.png /srv/www/htdocs/nfsen/icons/Error.png /srv/www/htdocs/nfsen/icons/ErrorGraph.png /srv/www/htdocs/nfsen/icons/arrow.blue.down.png /srv/www/htdocs/nfsen/icons/arrow.blue.right.png /srv/www/htdocs/nfsen/icons/arrow.yellow.down.png /srv/www/htdocs/nfsen/icons/arrow.yellow.right.png /srv/www/htdocs/nfsen/icons/cancel.png /srv/www/htdocs/nfsen/icons/close.png /srv/www/htdocs/nfsen/icons/cursor-line.png /srv/www/htdocs/nfsen/icons/cursor-start.png /srv/www/htdocs/nfsen/icons/cursor-stop.png /srv/www/htdocs/nfsen/icons/edit.png /srv/www/htdocs/nfsen/icons/help.png /srv/www/htdocs/nfsen/icons/invisible.png /srv/www/htdocs/nfsen/icons/minus.png /srv/www/htdocs/nfsen/icons/ok.png /srv/www/htdocs/nfsen/icons/plus.png /srv/www/htdocs/nfsen/icons/progress.png /srv/www/htdocs/nfsen/icons/save.png /srv/www/htdocs/nfsen/icons/shade.gif /srv/www/htdocs/nfsen/icons/shade.png /srv/www/htdocs/nfsen/icons/shadeactive.png /srv/www/htdocs/nfsen/icons/space.png /srv/www/htdocs/nfsen/icons/spyglas.png /srv/www/htdocs/nfsen/icons/trash.png /srv/www/htdocs/nfsen/icons/trigger.png /srv/www/htdocs/nfsen/js/ColorPicker2.js /srv/www/htdocs/nfsen/js/alerting.js /srv/www/htdocs/nfsen/js/detail.js /srv/www/htdocs/nfsen/js/global.js /srv/www/htdocs/nfsen/js/menu.js /srv/www/htdocs/nfsen/js/profileadmin.js /srv/www/htdocs/nfsen/lookup.php /srv/www/htdocs/nfsen/navigator.php /srv/www/htdocs/nfsen/nfsen.php /srv/www/htdocs/nfsen/nfsenutil.php /srv/www/htdocs/nfsen/overview.php /srv/www/htdocs/nfsen/pic.php /srv/www/htdocs/nfsen/plugins/demoplugin.php /srv/www/htdocs/nfsen/process.php /srv/www/htdocs/nfsen/profileadmin.php /srv/www/htdocs/nfsen/rrdgraph.php %{_bindir}/RebuildHierarchy.pl %{_bindir}/nfsen %{_bindir}/nfsend %{_bindir}/testPlugin %{_datadir}/nfsen/libexec/Log.pm %{_datadir}/nfsen/libexec/Lookup.pm %{_datadir}/nfsen/libexec/NfAlert.pm %{_datadir}/nfsen/libexec/NfConf.pm %{_datadir}/nfsen/libexec/NfProfile.pm %{_datadir}/nfsen/libexec/NfSen.pm %{_datadir}/nfsen/libexec/NfSenRC.pm %{_datadir}/nfsen/libexec/NfSenRRD.pm %{_datadir}/nfsen/libexec/NfSenSim.pm %{_datadir}/nfsen/libexec/Nfcomm.pm %{_datadir}/nfsen/libexec/Nfsources.pm %{_datadir}/nfsen/libexec/Notification.pm %{_datadir}/nfsen/plugins/demoplugin.pm %{_datadir}/nfsen/plugins/smily.jpg %defattr(-,netflow,www) %{_datadir}/nfsen/profiles-data/live/rt01/.nfstat %{_datadir}/nfsen/profiles-data/live/rt02/.nfstat %{_datadir}/nfsen/profiles-stat/hints %{_datadir}/nfsen/profiles-stat/live/flows-day.png %{_datadir}/nfsen/profiles-stat/live/flows-month.png %{_datadir}/nfsen/profiles-stat/live/flows-week.png %{_datadir}/nfsen/profiles-stat/live/flows-year.png %{_datadir}/nfsen/profiles-stat/live/packets-day.png %{_datadir}/nfsen/profiles-stat/live/packets-month.png %{_datadir}/nfsen/profiles-stat/live/packets-week.png %{_datadir}/nfsen/profiles-stat/live/packets-year.png %{_datadir}/nfsen/profiles-stat/live/profile.dat %{_datadir}/nfsen/profiles-stat/live/rt01.rrd %{_datadir}/nfsen/profiles-stat/live/rt02.rrd %{_datadir}/nfsen/profiles-stat/live/traffic-day.png %{_datadir}/nfsen/profiles-stat/live/traffic-month.png %{_datadir}/nfsen/profiles-stat/live/traffic-week.png %{_datadir}/nfsen/profiles-stat/live/traffic-year.png %changelog * Sun Oct 17 2010 Carsten Schoene <cs@linux-administrator.com> - 1.3.5-1 - update to release 1.3.5 * Wed Jul 14 2010 Carsten Schoene <cs@linux-administrator.com> - 1.3.4-1 - update to release 1.3.4 * Tue Feb 09 2010 Carsten Schoene <cs@linux-administrator.com> - 1.3.2-1 - initial build