From: Elan Ruusamäe Date: Sun, 5 Oct 2008 12:22:31 +0000 (+0000) Subject: - moved to pld cvs X-Git-Tag: auto/ac/cacti-add_template-0_1-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcacti-add_template.git;a=commitdiff_plain;h=59143f73f4b4ddecb121ab861603b13156ac36f6 - moved to pld cvs - script handles now multiple xml imports; rel 2 Changed files: cacti-add_template.spec -> 1.4 --- diff --git a/cacti-add_template.spec b/cacti-add_template.spec index ead0fbf..520f4cf 100644 --- a/cacti-add_template.spec +++ b/cacti-add_template.spec @@ -2,12 +2,10 @@ Summary: Adding template for Cacti from command line Summary(pl.UTF-8): Dodawanie szablonów dla Cacti z linii poleceń Name: cacti-add_template Version: 0.1 -Release: 1 +Release: 2 License: GPL v2 Group: Applications/WWW -Source0: http://forums.cacti.net/files/add_template.zip -# Source0-md5: a38f01091cb4bf1dbd86db29d6c4c966 -Patch0: cacti-addons-add_template.patch +Source0: cacti-add_template.php URL: http://forums.cacti.net/about8827.html BuildRequires: rpm-perlprov BuildRequires: rpmbuild(macros) >= 1.322 @@ -28,14 +26,13 @@ Dodawanie szablonu dla Cacti z linii poleceń. Wywołanie: cacti-add_template your_template.xml %prep -%setup -q -c -%{__sed} -i -e 's,\r$,,' cacti/*.php -%patch0 -p1 +%setup -qcT +cp %{SOURCE0} . %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sbindir} -install cacti/add_template.php $RPM_BUILD_ROOT%{_sbindir}/%{name} +install cacti-add_template.php $RPM_BUILD_ROOT%{_sbindir}/%{name} %clean rm -rf $RPM_BUILD_ROOT