%define libping libping-1.15 %define libcgi libcgi-2.02 Name: trackerd Version: 0.4.3 Release: 1%{?dist} Summary: Tracks MAC addresses on the switches by SNMP. Group: Applications/Internet License: GPL URL: http://www.basel.name.tr/projects/tracker/ Source0: http://www.basel.name.tr/projects/tracker/trackerd-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: mysql-devel, net-snmp-devel, openssl-devel, pkgconfig, libesmtp-devel %description trackerd is a network tracking system; it basically performs the following tasks: - Infomation about the network devices are entered with a graphical user interfa ce (trackerdbgui) into a MySQL database. - trackerd checks the devices in the database periodically with ping and SNMP, a nd informs by e-mail any device which is unavailable. - It provides the knowledge of the locations of the users (which switch, which i nterface) on the network by scanning MAC addresse tables in switches by SNMP. %package gui Summary: trackerd GUI Group: Applications/Internet BuildRequires: gtk2-devel %description gui Trackerd GUI. %prep %setup -q tar xvzf %{libping}.tar.gz tar xvzf %{libcgi}.tar.gz tar xvzf %{name}bgui-%{version}.tar.gz %build cd %{libping} %configure make cd .. cd %{libcgi} %configure make cd .. # main package %configure LIBPING_CFLAGS=%{libping} LIBCGI_CFLAGS=%{libcgi} make %{?_smp_mflags} cd %{name}bgui-%{version} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %changelog