]> git.pld-linux.org Git - packages/ntop.git/commitdiff
added localstatedir definition and adapterized
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 29 Oct 2000 11:51:41 +0000 (11:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ntop.spec -> 1.3

ntop.spec

index 2ef8600ebae99b9109d5790b55a160879ffd171b..e695643841ccfd7c469f6c293d08ebb59e6e4cc8 100644 (file)
--- a/ntop.spec
+++ b/ntop.spec
@@ -4,11 +4,12 @@ Name:         ntop
 Version:       1.3.2
 Release:       1
 License:       GPL
-Group:          Networking
-Group(pl):      Sieciowe
+Group:         Networking
+Group(de):     Netzwerkwesen
+Group(pl):     Sieciowe
 Source0:       ftp://ftp.ntop.org/pub/local/ntop/snapshots/%{name}-src-Oct-26-2000.tar.gz
-Patch0:                ntop-configure.patch
-Patch1:                ntop-plugins.patch
+Patch0:                %{name}-configure.patch
+Patch1:                %{name}-plugins.patch
 URL:           http://www.ntop.org/
 BuildRequires: libpcap-devel
 BuildRequires: libwrap-devel
@@ -24,8 +25,8 @@ ntop is a tool that shows the network usage, similar to what the
 popular top Unix command does.
 
 %description -l pl
-ntop to narzêdzie, które pokazuje u¿ycie sieci w podobny sposób
-jak robi to popularna Unixowa komenda top.
+ntop to narzêdzie, które pokazuje u¿ycie sieci w podobny sposób jak
+robi to popularna Unixowa komenda top.
 
 %prep
 %setup -q -c
@@ -51,25 +52,29 @@ autoconf
        --with-gdchart-root=../gdchart* \
        --with-ossl-root=%{_prefix} \
        --enable-tcpwrap \
-       --disable-mt
+       --disable-mt \
+       --localstatedir=%{_var}/%{ntop}
        
 %{__make}
 
 %install
+rm -rf $RPM_BUILD_ROOT
 cd %{name}-%{version}
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_var}/%{name}
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
-rm $RPM_BUILD_ROOT%{_bindir}/*.pem
+rm -f $RPM_BUILD_ROOT%{_bindir}/*.pem
 
 gzip -9nf AUTHORS FAQ KNOWN_BUGS NEWS README THANKS TODO
 
 %clean
-#rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc */*.gz
+%dir %{_var}/%{name}
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_libdir}/lib*
 %{_libdir}/%{name}
This page took 0.113539 seconds and 4 git commands to generate.