From f821dd3b4fda69f82ebefd2684b7d7c893340918 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 16 Sep 2015 22:23:07 +0200 Subject: renamed rhdropbox to dropnroll added support for clang some fixes for Wall --- .gitignore | 11 +- AUTHORS | 2 +- LICENSE | 12 +- doc/Makefile | 28 +- doc/dropnroll.8.txt | 154 +++++++++++ doc/rhdropbox.8 | 195 ------------- doc/rhdropbox.8.txt | 153 ----------- etc/dropnroll/autostart | 2 + etc/dropnroll/sample/config | 32 +++ etc/dropnroll/sample/newfile.sh | 15 + etc/rhdropbox/autostart | 2 - etc/rhdropbox/sample/config | 32 --- etc/rhdropbox/sample/newfile.sh | 16 -- src/Makefile | 22 +- src/client_list.c | 23 +- src/client_list.h | 16 +- src/configure | 33 ++- src/daemon.h | 39 +-- src/datatypes.h | 16 +- src/dropnroll.c | 595 ++++++++++++++++++++++++++++++++++++++++ src/log.c | 35 +-- src/log.h | 30 +- src/log_targets.h | 46 ++-- src/options.c | 26 +- src/options.h | 16 +- src/rhdropbox.c | 563 ------------------------------------- src/sig_handler.c | 27 +- src/sig_handler.h | 30 +- src/string_list.c | 30 +- src/string_list.h | 30 +- src/sysexec.c | 51 ++-- src/sysexec.h | 16 +- src/utils.c | 48 +--- src/utils.h | 17 +- src/watch_list.c | 30 +- src/watch_list.h | 16 +- 36 files changed, 1061 insertions(+), 1348 deletions(-) create mode 100644 doc/dropnroll.8.txt delete mode 100644 doc/rhdropbox.8 delete mode 100644 doc/rhdropbox.8.txt create mode 100644 etc/dropnroll/autostart create mode 100644 etc/dropnroll/sample/config create mode 100755 etc/dropnroll/sample/newfile.sh delete mode 100644 etc/rhdropbox/autostart delete mode 100644 etc/rhdropbox/sample/config delete mode 100755 etc/rhdropbox/sample/newfile.sh create mode 100644 src/dropnroll.c delete mode 100644 src/rhdropbox.c diff --git a/.gitignore b/.gitignore index f234018..3a096ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ -*.d -*.o -include.mk -rhdropbox -doc/rhdropbox.8.xml - +src/*.d +src/*.o +src/include.mk +src/dropnroll +doc/dropnroll.8.xml diff --git a/AUTHORS b/AUTHORS index 980ce2f..6762c7c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1 @@ -Christian Pointner +Christian Pointner diff --git a/LICENSE b/LICENSE index 9c435b6..94d101e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,22 +1,22 @@ /* - * rhdropbox + * dropnroll * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2015 Christian Pointner * - * This file is part of rhdropbox. + * This file is part of dropnroll. * - * rhdropbox is free software: you can redistribute it and/or modify + * dropnroll is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * - * rhdropbox is distributed in the hope that it will be useful, + * dropnroll is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with rhdropbox. If not, see . + * along with dropnroll. If not, see . */ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 diff --git a/doc/Makefile b/doc/Makefile index f13f4ab..58ce90b 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,39 +1,39 @@ ## -## rhdropbox +## dropnroll ## -## Copyright (C) 2009 Christian Pointner +## Copyright (C) 2009-2015 Christian Pointner ## -## This file is part of rhdropbox. +## This file is part of dropnroll. ## -## rhdropbox is free software: you can redistribute it and/or modify +## dropnroll is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## any later version. ## -## rhdropbox is distributed in the hope that it will be useful, +## dropnroll is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with rhdropbox. If not, see . +## along with dropnroll. If not, see . ## -.PHONY: clean +.PHONY: clean all: manpage -rhdropbox.8: rhdropbox.8.txt +dropnroll.8: dropnroll.8.txt a2x -f manpage $< - @ sed -i -e 's/\[FIXME: source\]/rhdropbox/' $@ - @ sed -i -e 's/\[FIXME: manual\]/rhdropbox user manual/' $@ - @ sed -i -e 's/^rhdropbox$$/\\fBrhdropbox\\fR/' $@ + @ sed -i -e 's/\[FIXME: source\]/dropnroll/' $@ + @ sed -i -e 's/\[FIXME: manual\]/dropnroll user manual/' $@ + @ sed -i -e 's/^dropnroll$$/\\fBdropnroll\\fR/' $@ @ sed -i -e 's/^ \[ \([^ ]*\)/ [ \\fB\1\\fR/' $@ -manpage: rhdropbox.8 +manpage: dropnroll.8 clean: - rm -f rhdropbox.8.xml + rm -f dropnroll.8.xml realclean: - rm -f rhdropbox.8 \ No newline at end of file + rm -f dropnroll.8 diff --git a/doc/dropnroll.8.txt b/doc/dropnroll.8.txt new file mode 100644 index 0000000..e9e4b86 --- /dev/null +++ b/doc/dropnroll.8.txt @@ -0,0 +1,154 @@ +dropnroll(8) +============ + +NAME +---- + +dropnroll - drop'n'roll daemon + + +SYNOPSIS +-------- + +.... +dropnroll + [ -h|--help ] + [ -D|--nodaemonize ] + [ -u|--username ] + [ -g|--groupname ] + [ -C|--chroot ] + [ -P|--write-pid ] + [ -L|--log :[,[,[..]]] ] + [ -s|--command-sock ] + [ -x|--script