[packages/incron] package cosmetics
glen
glen at pld-linux.org
Sun Oct 21 14:38:36 CEST 2012
commit 25d8b598ff219159abe68b261f528f2648bb43c0
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Oct 21 15:35:34 2012 +0300
package cosmetics
- do not package devel doc (no -devel package)
- use existing dir for crontab user (do not assume standard crond is
installed)
incron.spec | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/incron.spec b/incron.spec
index 1d0a5ae..8ee32cd 100644
--- a/incron.spec
+++ b/incron.spec
@@ -54,16 +54,15 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,incron.d} \
DESTDIR=$RPM_BUILD_ROOT \
PREFIX=%{_prefix}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-
-install incron.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/incron.conf
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -p incron.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/incron.conf
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%groupadd -g 117 -r -f crontab
-%useradd -u 134 -r -d /var/spool/cron -s /bin/false -c "crontab User" -g crontab crontab
+%useradd -u 134 -r -d /var/spool/%{name} -s /bin/false -c "crontab User" -g crontab crontab
%post
/sbin/chkconfig --add %{name}
@@ -83,7 +82,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc CHANGELOG COPYING doc/html/ README TODO
+%doc CHANGELOG COPYING README TODO
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%attr(640,root,crontab) %config(noreplace) %{_sysconfdir}/incron.conf
%attr(755,root,root) %{_sbindir}/incrond
diff --git a/incron.init b/incron.init
old mode 100644
new mode 100755
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/incron.git/commitdiff/ffa530e73b24cfd32f5a3301cb00e556d075c7e4
More information about the pld-cvs-commit
mailing list