]> git.pld-linux.org Git - packages/cacti-plugin-syslog.git/commitdiff
- simplify macros and cleanups auto/th/cacti-plugin-syslog-0_5_2-1
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Oct 2008 11:18:07 +0000 (11:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-plugin-syslog.spec -> 1.15

cacti-plugin-syslog.spec

index bfe36b8869dab1522239072976569e6781ded402..dc849623d6202db1ab5bccc0847d537b485c120b 100644 (file)
@@ -1,4 +1,4 @@
-%define                namesrc syslog
+%define                plugin  syslog
 %include       /usr/lib/rpm/macros.perl
 Summary:       Plugin for Cacti - Syslog
 Summary(pl.UTF-8):     Wtyczka do Cacti - Syslog
@@ -7,8 +7,7 @@ Version:        0.5.2
 Release:       1
 License:       GPL v2
 Group:         Applications/WWW
-#!!!!problem with version
-Source0:       http://mirror.cactiusers.org/downloads/plugins/%{namesrc}-%{version}.zip
+Source0:       http://mirror.cactiusers.org/downloads/plugins/%{plugin}-%{version}.zip
 # Source0-md5: 1e2b1fc5b560452f937ccd0bca1af0a2
 Patch0:                %{name}-config.patch
 URL:           http://www.cactiusers.org/
@@ -17,7 +16,8 @@ Requires:     cacti
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
+%define                cactidir                /usr/share/cacti
+%define                plugindir               %{cactidir}/plugins/%{plugin}
 
 %description
 Plugin for Cacti - Syslog is a cacti integrated interface to a MySQL
@@ -25,9 +25,9 @@ database that can be used to log events from scripts, cacti or
 whatever.
 
 It is the console component for a light weight monitoring addon for
-cacti. Because the database schema is based on syslog,
-it can be configured to use a syslog-ng or kiwi's syslogd for Windows
-database so events can be correlated.
+cacti. Because the database schema is based on syslog, it can be
+configured to use a syslog-ng or kiwi's syslogd for Windows database
+so events can be correlated.
 
 %description -l pl.UTF-8
 Wtyczka do Cacti - Syslog to zintegrowany interfejs cacti do bazy
@@ -45,13 +45,13 @@ Windows, przez co zdarzenia mogą być skorelowane.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{webcactipluginroot}
-cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
+install -d $RPM_BUILD_ROOT%{plugindir}
+cp -a . $RPM_BUILD_ROOT%{plugindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README LICENSE 
-%{webcactipluginroot}
+%doc README LICENSE
+%{plugindir}
This page took 0.152418 seconds and 4 git commands to generate.