Subversion Repositories public

Compare Revisions

Ignore whitespace Rev 58 → Rev 59

/incron/trunk/CHANGELOG
1,3 → 1,7
0.3.2 2006-12-02
* problems with reiserfs fixed (#0000104)
 
 
0.3.1 2006-11-24
* user manual added
* incron tables now owned by root (also fixes #0000103)
/incron/trunk/icd-main.cpp
21,6 → 21,7
#include <syslog.h>
#include <errno.h>
#include <sys/poll.h>
#include <sys/stat.h>
 
#include "inotify-cxx.h"
 
100,7 → 101,15
struct dirent* pDe = NULL;
while ((pDe = readdir(d)) != NULL) {
std::string un(pDe->d_name);
if (pDe->d_type == DT_REG && un != "." && un != "..") {
bool ok = pDe->d_type == DT_REG;
if (pDe->d_type == DT_UNKNOWN) {
struct stat st;
if (stat(pDe->d_name, &st) == 0)
ok = S_ISREG(st.st_mode);
}
if (ok) {
if (check_user(pDe->d_name)) {
syslog(LOG_INFO, "loading table for user %s", pDe->d_name);
UserTable* pUt = new UserTable(pIn, pEd, un);
/incron/trunk/TODO
1,3 → 1,4
Currently pending tasks:
 
#0000101 - Temporary files not removed
#0000105 - Zombie child processes
/incron/trunk/Makefile
2,6 → 2,8
PREFIX = /usr/local
DATADIR = /var/spool/incron
MANPATH = /usr/share/man
RELEASE = incron-`cat VERSION`
RELEASEDIR = /tmp/$(RELEASE)
 
USER = root
 
64,9 → 66,36
rm -f $(MANPATH)/man5/incrontab.5
rm -f $(MANPATH)/man8/incrontab.8
 
release:
mkdir -p $(RELEASEDIR)
cp -r doc $(RELEASEDIR)
cp *.h $(RELEASEDIR)
cp *.cpp $(RELEASEDIR)
cp Makefile CHANGELOG COPYING LICENSE-GPL LICENSE-LGPL LICENSE-X11 README TODO VERSION $(RELEASEDIR)
cp incrond.8 incrontab.1 incrontab.5 $(RELEASEDIR)
tar -c -f $(RELEASE).tar -C $(RELEASEDIR)/.. $(RELEASE)
bzip2 -9 $(RELEASE).tar
tar -c -f $(RELEASE).tar -C $(RELEASEDIR)/.. $(RELEASE)
gzip --best $(RELEASE).tar
echo #!/bin/sh > myzip
echo cd $(RELEASEDIR)/.. >> myzip
echo zip -r -9 `pwd`/$(RELEASE).zip $(RELEASE) >> myzip
chmod 0700 myzip
./myzip
rm -f myzip
sha1sum $(RELEASE).tar.bz2 > sha1.txt
sha1sum $(RELEASE).tar.gz >> sha1.txt
sha1sum $(RELEASE).zip >> sha1.txt
rm -rf $(RELEASEDIR)
 
.PHONY: all clean distclean install install-man uninstall uninstall-man
release-clean:
rm -f $(RELEASE).tar.bz2
rm -f $(RELEASE).tar.gz
rm -f $(RELEASE).zip
rm -f sha1.txt
 
.PHONY: all clean distclean install install-man uninstall uninstall-man release release-clean
 
.POSIX:
 
icd-main.o: icd-main.cpp inotify-cxx.h incrontab.h usertable.h incron.h
/incron/trunk/incron.h
27,7 → 27,7
#define INCRON_TAB_NAME "incrontab"
 
/// Application version (release)
#define INCRON_VERSION "0.3.1"
#define INCRON_VERSION "0.3.2"
 
/// Address for sending bugs
#define INCRON_BUG_ADDRESS "<bugs@aiken.cz>"