# Copyright (C) 2007 Platform Computing Inc # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # # %define COMP1 component-ntop-v3_3 %define _name ntop %define subversion 4 Summary: Ntop Kit Name: kit-ntop Version: 3.3 Release: 13 License: GPLv2 Group: System Environment/Base Vendor: Platform Computing Inc BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot #BuildArch: noarch Source: kit-ntop-%{version}.%{subversion}.tar.gz Requires: shadow-utils URL: http://www.ntop.org/ %description This package is destined for the installer node and serves as an information container for the database for the ntop kit. %prep %setup -q -n %{name} %build %install rm -rf $RPM_BUILD_ROOT plugdir=$RPM_BUILD_ROOT/plugins docdir=$RPM_BUILD_ROOT/www cfmdir=$RPM_BUILD_ROOT/cfm mkdir -p $docdir/kit_ntop_doc_source mkdir -p $cfmdir /usr/bin/install -m 444 cfm/*.py $cfmdir /usr/bin/install -m 444 docs/index.html $docdir /usr/bin/install -m 444 docs/readme.html $docdir /usr/bin/install -m 444 docs/COPYING $docdir /usr/bin/install -m 444 docs/kit_ntop_doc_source/* -t $docdir/kit_ntop_doc_source /usr/bin/install -m 444 kitinfo $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files # documentation /www/index.html /www/readme.html /www/COPYING /www/kit_ntop_doc_source/* /kitinfo # cfm scripts /cfm/ntop.rc.py* %pre %post %preun %postun %changelog * Tue Feb 2 2009 Meng Kuan 3.3-12 - Final release of the old-style kits * Fri Sep 26 2008 Mike Frisch 3.3-10 - Create user/group with static uid/gid * Tue May 27 2008 Shawn Starr 3.3-8 - Create user in case component is used on a different node group * Mon Apr 7 2008 Shawn Starr 3.3-6 - Add KusuRC script to generate ntop.conf for each type of nodegroup that has the ntop component selected * Thu Mar 20 2008 Mike Frisch 3.3-5 - Removed AutoReq tag at the request of Red Hat - Do not remove user in postun * Thu Mar 20 2008 Mike Frisch 3.3-4 - Change location of Kusu installer lock file