info: iptraf.spec
Bartek Rozkrut
madey w viii-lo.krakow.pl
Pon, 12 Paź 1998, 21:40:10 CEST
Hey !
Poprawki do poprzedniego spec'a...
(spec + patch included)
Prosze tez o wlaczenie iptraf'a do dystrybucji PLD.
--
-< info >--------------=[ Mad3Y ]=--------------< info >-
e-mail's : madey w rhea.ids.pl , madey w viii-lo.krakow.pl
www : http://madey.viii-lo.krakow.pl/
-==[ L i n u x ]=[ p o w e r e d ]==-
-------------- następna część ---------
--- dirs.h.orig Fri Sep 18 08:52:45 1998
+++ dirs.h Sun Oct 11 16:05:47 1998
@@ -9,7 +9,7 @@
* file is present, and is deleted afterwards. As of this version, this
* file is used to restrict configuration to only the first instance.
*/
-#define IPTIDFILE "/var/local/iptraf/iptraf.tag"
+#define IPTIDFILE "/usr/lib/iptraf/iptraf.tag"
/*
* The IPTraf facility identification files. These are used to tag each
@@ -17,36 +17,36 @@
* time systemwide.
*/
-#define IPMONIDFILE "/var/local/iptraf/ipmon.tag"
-#define GSTATIDFILE "/var/local/iptraf/genstat.tag"
-#define DSTATIDFILE "/var/local/iptraf/detstat.tag"
-#define TCPUDPIDFILE "/var/local/iptraf/tcpudp.tag"
-#define LANMONIDFILE "/var/local/iptraf/lanmon.tag"
-#define TCPFLTIDFILE "/var/local/iptraf/tcpfltchg.tag"
-#define UDPFLTIDFILE "/var/local/iptraf/udpfltchg.tag"
-#define OTHFLTIDFILE "/var/local/iptraf/othfltchg.tag"
+#define IPMONIDFILE "/usr/lib/iptraf/ipmon.tag"
+#define GSTATIDFILE "/usr/lib/iptraf/genstat.tag"
+#define DSTATIDFILE "/usr/lib/iptraf/detstat.tag"
+#define TCPUDPIDFILE "/usr/lib/iptraf/tcpudp.tag"
+#define LANMONIDFILE "/usr/lib/iptraf/lanmon.tag"
+#define TCPFLTIDFILE "/usr/lib/iptraf/tcpfltchg.tag"
+#define UDPFLTIDFILE "/usr/lib/iptraf/udpfltchg.tag"
+#define OTHFLTIDFILE "/usr/lib/iptraf/othfltchg.tag"
/*
* The TCP filter list file
*/
-#define TCPFLNAME "/var/local/iptraf/tcpfilters.dat"
+#define TCPFLNAME "/usr/lib/iptraf/tcpfilters.dat"
/*
* The UDP filter list file
*/
-#define UDPFLNAME "/var/local/iptraf/udpfilters.dat"
+#define UDPFLNAME "/usr/lib/iptraf/udpfilters.dat"
/*
* The other protocol filter data file
*/
-#define OTHFLNAME "/var/local/iptraf/othfilter.dat"
+#define OTHFLNAME "/usr/lib/iptraf/othfilter.dat"
/*
* The IPTraf configuration data file
*/
-#define CONFIGFILE "/var/local/iptraf/iptraf.cfg"
+#define CONFIGFILE "/usr/lib/iptraf/iptraf.cfg"
/*
* The IPTraf log files
@@ -61,20 +61,20 @@
/*
* The additional TCP/UDP ports file
*/
-#define PORTFILE "/var/local/iptraf/ports.dat"
+#define PORTFILE "/usr/lib/iptraf/ports.dat"
/*
* The Ethernet and FDDI host description files
*/
-#define ETHFILE "/var/local/iptraf/ethernet.desc"
-#define FDDIFILE "/var/local/iptraf/fddi.desc"
+#define ETHFILE "/usr/lib/iptraf/ethernet.desc"
+#define FDDIFILE "/usr/lib/iptraf/fddi.desc"
/*
* The rvnamed program file
*/
-#define RVNDFILE "/usr/local/bin/rvnamed"
+#define RVNDFILE "/usr/sbin/rvnamed"
/*
* The rvnamed log file
@@ -86,11 +86,11 @@
* File to contain the current TCP filter data file name. UDP filter
* data is saved with the other protocols.
*/
-#define TCPFILTERSAVE "/var/local/iptraf/tcpfilter.cur"
+#define TCPFILTERSAVE "/usr/lib/iptraf/tcpfilter.cur"
/*
* The IPTraf working directory
*/
-#define WORKDIR "/var/local/iptraf/"
+#define WORKDIR "/usr/lib/iptraf/"
-------------- następna część ---------
Summary: IPTraf is a console-based network monitoring program
Summary(pl): IPTraf służy do monitorowania sieci.
Name: iptraf
Version: 1.3.0
Release: 3
Source: ftp://ftp.cebu.mozcom.com/pub/linux/net/%{name}-%{version}.tar.gz
Patch: iptraf-1.3.0-config.patch
URL: http://cebu.mozcom.com/riker/iptraf/
Copyright: GPL
Group: Networking/Utilities
Buildroot: /var/tmp/%{name}-%{version}-root
%description
IPTraf is a console-based network monitoring program that displays information
about IP traffic. This program can be used to determine the type of traffic on
your network, and what kind of service is the most heavily used on what
machines, among others.
IPTraf works on Ethernet and SLIP/PPP interfaces.
%description -l pl
IPTraf jest programem monitorującym, który wyświetla informacje na temat ruchu
w sieci IP. Program ten może być użyty do zdeterminowania typu ruchu w twojej
sieci, najczęściej używanych usług, maszyn i innych.
IPTraf działa z interfejsami Ethernet, SLIP/PPP.
%prep
%setup -q
%patch -p1
%build
cd src
make CFLAGS=$RPM_OPT_FLAGS
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/usr/{sbin,man/man8}
install -d $RPM_BUILD_ROOT/{var/log/iptraf,usr/lib/iptraf}
install -s src/iptraf $RPM_BUILD_ROOT/usr/sbin/
install -s src/cfconv $RPM_BUILD_ROOT/usr/sbin/
install -s src/rvnamed $RPM_BUILD_ROOT/usr/sbin/
install Documentation/iptraf.8 $RPM_BUILD_ROOT/usr/man/man8/
install Documentation/rvnamed.8 $RPM_BUILD_ROOT/usr/man/man8/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644, root, root, 755)
%doc Documentation README.* COPYING CHANGES TODO WHATELSE
%attr(711, root, root) /usr/sbin/*
%attr(644, root, man) /usr/man/man8/*
%attr(700, root, root) %dir /usr/lib/iptraf
%attr(750, root, root) %dir /var/log/iptraf
%changelog
* Sun Oct 11 1998 Bartek Rozkrut <madey w dione.ids.pl>
[1.3.0-3]
- fixed directory structure
- patch updated
* Wed Oct 7 1998 Piotr Grochowski <pager w dione.ids.pl>
[1.3.0-2]
- fixed pl translation
- fixed defattr field
* Wed Oct 7 1998 Bartek Rozkrut <madey w dione.ids.pl>
[1.3.0-1]
- First relase as a PLD package.
Więcej informacji o liście dyskusyjnej pld-devel-pl