rpms/incron/devel incron.spec, NONE, 1.1 incrond.init, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Ruben Kerkhof (ruben)
fedora-extras-commits at redhat.com
Sun Jan 28 20:33:43 UTC 2007
Author: ruben
Update of /cvs/extras/rpms/incron/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30254/devel
Modified Files:
.cvsignore sources
Added Files:
incron.spec incrond.init
Log Message:
auto-import incron-0.5.0-1 on branch devel from incron-0.5.0-1.src.rpm
--- NEW FILE incron.spec ---
Summary: Inotify cron system
Name: incron
Version: 0.5.0
Release: 1%{?dist}
Group: System Environment/Base
License: GPL
URL: http://inotify.aiken.cz
Source0: http://inotify.aiken.cz/download/incron/%{name}-%{version}.tar.bz2
Source1: incrond.init
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
%description
This program is an "inotify cron" system.
It consists of a daemon and a table manipulator.
You can use it a similar way as the regular cron.
The difference is that the inotify cron handles
filesystem events rather than time periods.
%prep
%setup -q
%{__sed} -i 's///' LICENSE-GPL
%build
make %{?_smp_mflags} CXXFLAGS="%{optflags}"
%install
rm -rf %{buildroot}
#install files manually since source Makefile tries to do it as root
install -D -p incrond %{buildroot}%{_sbindir}/incrond
install -D -p -m 4755 incrontab %{buildroot}%{_bindir}/incrontab
install -d %{buildroot}%{_localstatedir}/spool/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}.d
install -D -p %{SOURCE1} %{buildroot}%{_initrddir}/incrond
install -D -p -m 0644 incron.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf
# install manpages
make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p"
%post
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add incrond
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service %{name} stop >/dev/null 2>&1 || :
/sbin/chkconfig --del incrond
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service incrond condrestart >/dev/null 2>&1 || :
fi
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%attr(4755,root,root) %{_bindir}/incrontab
%{_sbindir}/incrond
%{_initrddir}/incrond
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_mandir}/man1/incrontab.1.gz
%{_mandir}/man5/incrontab.5.gz
%{_mandir}/man8/incrond.8.gz
%dir %{_localstatedir}/spool/%{name}
%dir %{_sysconfdir}/%{name}.d
%doc COPYING CHANGELOG README TODO LICENSE-GPL
%changelog
* Sun Jan 27 2007 <ruben at rubenkerkhof.com> 0.5.0-1
- Updated to new upstream version
- Changed the service name in the scriptlets
- Added a configuration file
- Included GPL License
* Sat Jan 27 2007 <ruben at rubenkerkhof.com> 0.4.0-1
- First try at packaging it up
--- NEW FILE incrond.init ---
#!/bin/bash
#
# incrond This shell script enables the incrond daemon
#
# Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
#
# chkconfig: - 97 03
#
# description: This is a daemon which works like cron, but handles filesystem events
# instead of time periods.
# and can send notifications via mail, dbus or syslog.
# processname: incrond
#
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
start() {
echo -n $"Starting incrond: "
daemon incrond
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/incrond
}
stop() {
echo -n $"Stopping incrond: "
killproc incrond
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/incrond
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|force-reload|reload)
restart
;;
condrestart)
[ -f /var/lock/subsys/incrond ] && restart
;;
status)
status incrond
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
exit 1
esac
exit $RETVAL
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/incron/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 28 Jan 2007 20:32:36 -0000 1.1
+++ .cvsignore 28 Jan 2007 20:33:13 -0000 1.2
@@ -0,0 +1 @@
+incron-0.5.0.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/incron/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 28 Jan 2007 20:32:36 -0000 1.1
+++ sources 28 Jan 2007 20:33:13 -0000 1.2
@@ -0,0 +1 @@
+4418140738fb750234c6c782d54300ba incron-0.5.0.tar.bz2
More information about the scm-commits
mailing list