--- loggedfs-0.5.orig/debian/README.Debian +++ loggedfs-0.5/debian/README.Debian @@ -0,0 +1,31 @@ +loggedfs for Debian +--------------- + +Loggedfs can be run from the shell or in daemon mode. For the daemon mode, +there is an additional init script in /etc/init.d/loggedfs, configured to not +start the daemon by default + +Reasonable default values are provided in /etc/default/loggedfs. You can +control the behavior of the loggedfs daemon by configuring this file directly, +or by using medium priority at install/configure time. There, debconf will ask +you some questions to configure it. + + Beware though - logging essential paths of your fs like those directly +under / or /home/user is strongly discouraged. When launching/stopping +loggedfs daemon, every process in it has to release those parts of the fs +and take them back again, otherwise the node connection will be lost and all +changes you make afterwards will not be taken into account. So you may have +to reboot to ensure everything's ok. +In a nutshell, it is strongly advised to audit only subdirectories of +/home/user like /home/user/foo. + +The internal loggedfs configuration file is available at /etc/loggedfs.xml. +There, you can specify some parameters such as which fs operations you want +to log (such as getattr, open, write…) or which user you want to audit. + +Finally, note that you can also use loggedfs in non daemon mode. You can +directly run it from a shell to log other paths, information… 'man loggedfs' +for more info. + + + -- Didier Roche Mon, 12 Jan 2009 21:21:12 +0100 --- loggedfs-0.5.orig/debian/changelog +++ loggedfs-0.5/debian/changelog @@ -0,0 +1,25 @@ +loggedfs (0.5-0ubuntu4) wily; urgency=medium + + * No-change rebuild against librlog5v5 + + -- Steve Langasek Sun, 16 Aug 2015 10:32:53 +0000 + +loggedfs (0.5-0ubuntu3) wily; urgency=medium + + * No-change rebuild for librlog5 -> librlog5v5 rename. + + -- Mathieu Trudel-Lapierre Sun, 16 Aug 2015 10:25:30 +0200 + +loggedfs (0.5-0ubuntu2) lucid; urgency=low + + * No changes upload. Rebuild for librlog5 transition. + + -- Fabrice Coutadeur Tue, 12 Jan 2010 03:07:01 +0000 + +loggedfs (0.5-0ubuntu1) jaunty; urgency=low + + * Initial release (LP: #316517) + * Patched to fix upstream Makefile, and to add latest man page from CVS. + + -- Didier Roche Fri, 23 Jan 2009 22:22:36 +0100 + --- loggedfs-0.5.orig/debian/compat +++ loggedfs-0.5/debian/compat @@ -0,0 +1 @@ +7 --- loggedfs-0.5.orig/debian/config +++ loggedfs-0.5/debian/config @@ -0,0 +1,34 @@ +#!/bin/sh +set -e +CONFIGFILE=/etc/default/loggedfs + +# Source debconf library +. /usr/share/debconf/confmodule + +# Load config file if it exists +if [ -e "$CONFIGFILE" ] ; then + . $CONFIGFILE + + if [ "$RUN" = "yes" ] ; then + db_set loggedfs/start_default true + else + db_set loggedfs/start_default false + fi + db_set loggedfs/audit_path "$AUDIT_DIR" + if [ "$USE_SYSLOG" = "yes" ] ; then + db_set loggedfs/use_syslog true + else + db_set loggedfs/use_syslog false + fi +fi + +db_input medium loggedfs/start_default || true +db_go || true + +# Ask for additional information if started by default +db_get loggedfs/start_default +if [ "$RET" = "true" ] ; then + db_input medium loggedfs/audit_path || true + db_input medium loggedfs/use_syslog || true + db_go || true +fi --- loggedfs-0.5.orig/debian/control +++ loggedfs-0.5/debian/control @@ -0,0 +1,34 @@ +Source: loggedfs +Section: utils +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Didier Roche +Build-Depends: debhelper (>= 7), quilt, debconf (>= 0.5), po-debconf, + libfuse-dev (>= 2.6), librlog-dev (>= 1.3), libpcre3-dev (>= 6.6), + libxml2-dev (>= 2.6) +Standards-Version: 3.8.0 +Homepage: http://sourceforge.net/projects/loggedfs/ + +Package: loggedfs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Fuse-filesystem daemon logging every filesystem operations + LoggedFS is a transparent fuse-filesystem which allows you to log every + operation that takes place in the backend filesystem. Logs can be written + to syslog, into a file, or to the standard output. + . + You can add filters to an XML file to filter on users, operations (open, + read, write, chown, chmod, etc.), filenames and return codes. + Since it is fuse-based, you don't need to change anything in your kernel + or on your hard disk partition to use it. + +Package: loggedfs-dbg +Priority: extra +Architecture: any +Depends: loggedfs (= ${binary:Version}), ${misc:Depends} +Description: Fuse-filesystem daemon logging every filesystem operations + LoggedFS is a transparent fuse-filesystem which allows you to log every + operation that takes place in the backend filesystem. Logs can be written + to syslog, into a file, or to the standard output. + . + This package contains the debugging symbols. --- loggedfs-0.5.orig/debian/copyright +++ loggedfs-0.5/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by Didier Roche on +Wed, 24 Dec 2008 16:25:18 +0100. + +It was downloaded from http://sourceforge.net/projects/loggedfs + +Upstream Author: + + Rémi Flament + +Copyright: + + Copyright (c) 2005-2008, Rémi Flament + +License: + + All files except those not copyrightable are provided under the + following conditions: + + This package 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 2 of the License, or + (at your option) any later version. + + This package 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 this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + On Debian systems, the complete text of the GNU General Public License + version 2, can be found in /usr/share/common-licenses/GPL-2'. + + + +The Debian packaging is (C) 2008-2009, Didier Roche and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + --- loggedfs-0.5.orig/debian/default +++ loggedfs-0.5/debian/default @@ -0,0 +1,24 @@ +# loggedfs daemon configuration file + +# Set default execution of the daemon in init script +RUN=no + +# Used config file to filter which operations you want to log +CONFIG_FILE=/etc/loggedfs.xml + +# If set to no, will log using logrotate in /var/log/loggedfs/ +# Otherwise, put log in syslog +USE_SYSLOG=no + +# Which part of fs to log by default. See the warning in +# loggedfs README.Debian if you want to log directly important +# parts of # your fs like /home or /home/user +# (this is strongly discouraged: only audit subdirectories of them) +AUDIT_DIR=/home/user/directory + +# BE CAREFUL, IF YOU SET THIS PARAMETER TO 'NO' ONLY ROOT WILL +# HAVE ACCESS TO AUDIT_DIR, POSSIBLY CRASHING YOUR SYSTEM +ACCESS_EVERYONE=yes + +# You can add additional options to the daemon there +ADDITIONAL_OPTIONS="" --- loggedfs-0.5.orig/debian/dirs +++ loggedfs-0.5/debian/dirs @@ -0,0 +1 @@ +var/log/loggedfs --- loggedfs-0.5.orig/debian/init +++ loggedfs-0.5/debian/init @@ -0,0 +1,259 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: loggedfs +# Required-Start: $local_fs $syslog +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Start loggedfs logging every filesystem operations +# Description: transparent fuse-filesystem which allows you to log +# every operation that happens in the backend +# filesystem. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +DAEMON=/usr/bin/loggedfs # Introduce the server's location here +NAME=loggedfs # Introduce the short server's name here +DESC="logging filesystem operations" # Introduce a short description here +LOGDIR=/var/log/loggedfs # Log directory to use + +PIDFILE=/var/run/$NAME.pid + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +# Default options, these can be overriden by the information +# at /etc/default/$NAME +DAEMON_OPTS="" # Additional options given to the server + +DIETIME=10 # Time to wait for the server to die, in seconds + # If this value is set too low you might not + # let some servers to die gracefully and + # 'restart' will not work + +#STARTTIME=2 # Time to wait for the server to start, in seconds + # If this value is set each time the server is + # started (on start or restart) the script will + # stall to try to determine if it is running + # If it is not set and the server takes time + # to setup a pid file the log message might + # be a false positive (says it did not start + # when it actually did) + +LOGFILE=$LOGDIR/$NAME.log # Server logfile +#DAEMONUSER=loggedfs # Users to run the daemons as. If this value + # is set start-stop-daemon will chuid the server + + +[ -f /etc/default/$NAME ] && . /etc/default/$NAME + +if [ "x$RUN" != "xyes" ] ; then + log_failure_msg "$NAME disabled, please adjust the configuration to your needs " + log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it." + exit 0 +fi + +# if not overriden +if [ -z "$DAEMON_OPTS" ] ; then + [ -n "$CONFIG_FILE" ] && CONFIG_FILE_OPT="-c $CONFIG_FILE" + [ "x$USE_SYSLOG" != "xyes" ] && LOG_OPT="-l $LOGFILE" + [ "x$ACCESS_EVERYONE" = "xyes" ] && READ_ACCESS="-p" + if [ ! -e "$AUDIT_DIR" ] ; then + log_failure_msg "$AUDIT_DIR is not a directory nor a valid file." + exit 1 + fi + DAEMON_OPTS="$CONFIG_FILE_OPT $LOG_OPT $ADDITIONAL_OPTIONS $READ_ACCESS $AUDIT_DIR" +fi + +# Check that the user exists (if we set a user) +# Does the user exist? +if [ -n "$DAEMONUSER" ] ; then + if getent passwd | grep -q "^$DAEMONUSER:"; then + # Obtain the uid and gid + DAEMONUID=`getent passwd $DAEMONUSER | cut -d : -f 3` + DAEMONGID=`getent passwd $DAEMONUSER | cut -d : -f 4` + else + log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist." + exit 1 + fi +fi + + +set -e + +running_pid() { +# Check if a given process pid's cmdline matches a given name + pid=$1 + name=$2 + [ -z "$pid" ] && return 1 + [ ! -d /proc/$pid ] && return 1 + cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` + # Is this the expected server + [ "$cmd" != "$name" ] && return 1 + return 0 +} + +running() { +# Check if the process is running looking at /proc +# (works for all users) + + # No pidfile, probably no daemon present + [ ! -f "$PIDFILE" ] && return 1 + pid=`cat $PIDFILE` + running_pid $pid $DAEMON || return 1 + return 0 +} + +start_server() { +# Start the process without using the wrapper (because of --make-pidfile) + if [ -z "$DAEMONUSER" ] ; then + start-stop-daemon --start --quiet --make-pidfile -p $PIDFILE \ + --exec $DAEMON -- $DAEMON_OPTS + errcode=$? + else +# if we are using a daemonuser then change the user id + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --chuid $DAEMONUSER \ + --exec $DAEMON -- $DAEMON_OPTS + errcode=$? + fi + # pid file is mismatched as loggedfs fork itself and the parent dies, + # look for the right PID + pgrep -n > $PIDFILE + return $errcode +} + +stop_server() { +# Stop the process using the wrapper + if [ -z "$DAEMONUSER" ] ; then + killproc -p $PIDFILE $DAEMON + errcode=$? + else +# if we are using a daemonuser then look for process that match + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --user $DAEMONUSER \ + --exec $DAEMON + errcode=$? + fi + + return $errcode +} + +reload_server() { + [ ! -f "$PIDFILE" ] && return 1 + pid=pidofproc $PIDFILE # This is the daemon's pid + # Send a SIGHUP + kill -1 $pid + return $? +} + +force_stop() { +# Force the process to die killing it manually + [ ! -e "$PIDFILE" ] && return + if running ; then + kill -15 $pid + # Is it really dead? + sleep "$DIETIME"s + if running ; then + kill -9 $pid + sleep "$DIETIME"s + if running ; then + echo "Cannot kill $NAME (pid=$pid)!" + exit 1 + fi + fi + fi + rm -f $PIDFILE +} + + +case "$1" in + start) + log_daemon_msg "Starting $DESC " "$NAME" + # Check if it's running first + if running ; then + log_progress_msg "apparently already running" + log_end_msg 0 + exit 0 + fi + if start_server ; then + # NOTE: Some servers might die some time after they start, + # this code will detect this issue if STARTTIME is set + # to a reasonable value + [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time + if running ; then + # It's ok, the server started and is running + log_end_msg 0 + else + # It is not running after we did start + log_end_msg 1 + fi + else + # Either we could not start it + log_end_msg 1 + fi + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + if running ; then + # Only stop the server if we see it running + errcode=0 + stop_server || errcode=$? + log_end_msg $errcode + else + # If it's not running don't do anything + log_progress_msg "apparently not running" + log_end_msg 0 + exit 0 + fi + ;; + force-stop) + # First try to stop gracefully the program + $0 stop + if running; then + # If it's still running try to kill it more forcefully + log_daemon_msg "Stopping (force) $DESC" "$NAME" + errcode=0 + force_stop || errcode=$? + log_end_msg $errcode + fi + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + errcode=0 + stop_server || errcode=$? + # Wait some sensible amount, some server need this + [ -n "$DIETIME" ] && sleep $DIETIME + start_server || errcode=$? + [ -n "$STARTTIME" ] && sleep $STARTTIME + running || errcode=$? + log_end_msg $errcode + ;; + status) + + log_daemon_msg "Checking status of $DESC" "$NAME" + if running ; then + log_progress_msg "running" + log_end_msg 0 + else + log_progress_msg "apparently not running" + log_end_msg 1 + exit 1 + fi + ;; + # Use this if the daemon cannot reload + reload) + log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" + log_warning_msg "cannot re-read the config file (use restart)." + ;; + + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- loggedfs-0.5.orig/debian/logrotate +++ loggedfs-0.5/debian/logrotate @@ -0,0 +1,10 @@ +/var/log/loggedfs/*{ + rotate 7 + daily + compress + missingok + notifempty + postrotate + /etc/init.d/loggedfs restart > /dev/null + endscript +} --- loggedfs-0.5.orig/debian/patches/01_adapt_makefile.diff +++ loggedfs-0.5/debian/patches/01_adapt_makefile.diff @@ -0,0 +1,27 @@ +Index: loggedfs-0.5/Makefile +=================================================================== +--- loggedfs-0.5.orig/Makefile 2009-01-11 09:37:30.000000000 +0100 ++++ loggedfs-0.5/Makefile 2009-01-11 09:39:58.000000000 +0100 +@@ -3,6 +3,7 @@ + LDFLAGS=-Wall -ansi -lpcre -lfuse -lrlog `xml2-config --libs` + srcdir=src + builddir=build ++DESTDIR = + + all: $(builddir) loggedfs + +@@ -24,10 +25,10 @@ + rm -rf $(builddir)/ + + install: +- gzip loggedfs.1 +- cp loggedfs.1.gz /usr/share/man/man1/ +- cp loggedfs /usr/bin/ +- cp loggedfs.xml /etc/ ++ mkdir -p $(DESTDIR)/usr/bin/ ++ mkdir $(DESTDIR)/etc/ ++ cp loggedfs $(DESTDIR)/usr/bin/ ++ cp loggedfs.xml $(DESTDIR)/etc/ + + + mrproper: clean --- loggedfs-0.5.orig/debian/patches/02_add_manpage_fromcvs.diff +++ loggedfs-0.5/debian/patches/02_add_manpage_fromcvs.diff @@ -0,0 +1,41 @@ +Index: loggedfs-0.5/loggedfs.1 +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ loggedfs-0.5/loggedfs.1 2009-01-10 16:42:08.000000000 +0100 +@@ -0,0 +1,36 @@ ++.TH LoggedFS 1 "JANUARY 2007" "User Manuals" ++.SH NAME ++LoggedFS \- Filesystem monitoring with Fuse ++.SH SYNOPSIS ++.B loggedfs [-fp] [-c ++.I config-file ++.B ] [-l ++.I log-file ++.B ] ++.I directory ++.B ... ++.SH DESCRIPTION ++.B LoggedFS ++is a transparent fuse-filesystem which allows to log every operations that happens in the backend filesystem. Logs can be written to syslog, to a file, or to the standard output. LoggedFS comes with a XML configuration file in which you can choose exactly what you want to log and what you don't want to log. You can add filters on users, operations (open, read, write, chown, chmod, etc.), filenames , and return code. Filename's filters are regular expressions. ++.SH OPTIONS ++.IP -f ++Do not start as a daemon. Write logs to stdout if no log file is specified. ++.IP "-c config-file" ++Use the ++.I config-file ++to filter what you want to log. ++.IP "-l log-file" ++Use the ++.I log-file ++to write logs to. If no log file is specified then logs are only written to syslog or to stdout, depending on -f. ++.IP -p ++Allow every users to see the new loggedfs. ++.SH FILES ++.I /etc/fuse.conf ++.RS ++The system wide configuration file. ++.RE ++.SH AUTHOR ++Remi Flament ++.SH "SEE ALSO" ++.BR fusermount (1) --- loggedfs-0.5.orig/debian/patches/series +++ loggedfs-0.5/debian/patches/series @@ -0,0 +1,2 @@ +01_adapt_makefile.diff +02_add_manpage_fromcvs.diff --- loggedfs-0.5.orig/debian/po/POTFILES.in +++ loggedfs-0.5/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] templates +[encoding: UTF-8] --- loggedfs-0.5.orig/debian/po/templates.pot +++ loggedfs-0.5/debian/po/templates.pot @@ -0,0 +1,100 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: loggedfs@packages.debian.org\n" +"POT-Creation-Date: 2009-01-26 19:40+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Start loggedfs by default?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Loggedfs is not started by default as you are likely to change some sensible " +"default values like destination path to audit in your vfs. If you answer " +"positively, more questions to setup it properly will follow. You can also " +"configure those parameters in /etc/default/loggedfs." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Internal loggedfs configuration file, where you can specify other " +"parameters, like which fs operation you want to log (like getattr, open, " +"write…), which user you want to audit and other operations, is available at /" +"etc/loggedfs.xml." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"You can specify other parameters, like which fs operation you want to log " +"(like getattr, open, write…), which user you want to audit, and other " +"operations, in the internal loggedfs configuration file where available at /" +"etc/loggedfs.xml." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Finally, note that you can also use loggedfs in non daemon mode and run it " +"from a shell to log other paths or information… 'man loggedfs' for more info." +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "Path where you want to log actions:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Loggedfs daemon will audit only a subpart of your fs. You have to choose " +"there the corresponding path you wish logging in daemon mode." +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Beware though - logging essential paths of your fs like those directly " +"under / or /home/user is strongly discouraged. In a nutshell, it is strongly " +"advised to audit only subdirectories of /home/user like /home/user/foo. More " +"information in README.Debian." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Use syslog or dedicated log directory?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"You can choose to use the syslog daemon to log all output information of " +"your loggedfs daemon or use /var/log/loggedfs as a dedicated log directory, " +"using logrotate to store and back them up separately." +msgstr "" --- loggedfs-0.5.orig/debian/postinst +++ loggedfs-0.5/debian/postinst @@ -0,0 +1,70 @@ +#!/bin/sh +set -e +CONFIGFILE=/etc/default/loggedfs + +# Source debconf library. +. /usr/share/debconf/confmodule + +case "$1" in + configure|reconfigure) # reconfigure (cf man debconf_devel) + # Change CONFIGFILE taking debconf results + if [ ! -e "$CONFIGFILE" ] ; then + echo "WARNING: $CONFIGFILE not present on your system. This will \ +prevent loggedfs to run as a daemon. If you desire so, please reinstall your \ +package (with apt-get --reinstall ...)" + + # file present: configure it + else + . $CONFIGFILE + db_get loggedfs/start_default + if [ "$RET" = "true" ] ; then + RUN=yes + else + RUN=no + fi + db_get loggedfs/use_syslog + if [ "$RET" = "true" ] ; then + USE_SYSLOG=yes + else + USE_SYSLOG=no + fi + db_get loggedfs/audit_path + AUDIT_DIR="$RET" + + # If the admin deleted or commented some variables but then set + # them via debconf, (re-)add them to the conffile. + test -z "$RUN" || grep -Eq '^ *RUN=' $CONFIGFILE || \ + echo "RUN=$RUN" >> $CONFIGFILE + test -z "$USE_SYSLOG" || grep -Eq '^ *USE_SYSLOG=' $CONFIGFILE || \ + echo "USE_SYSLOG=$USE_SYSLOG" >> $CONFIGFILE + test -z "$AUDIT_DIR" || grep -Eq '^ *AUDIT_DIR=' $CONFIGFILE || \ + echo "AUDIT_DIR=$AUDIT_DIR" >> $CONFIGFILE + + # We are confident that there is a variable in CONFIGFILE.tmp there + sed -e "s/^ *RUN=.*/RUN=$RUN/" \ + -e "s/^ *USE_SYSLOG=.*/USE_SYSLOG=$USE_SYSLOG/" \ + -e "s#^ *AUDIT_DIR=.*#AUDIT_DIR=$AUDIT_DIR#" $CONFIGFILE > $CONFIGFILE.tmp + mv -f $CONFIGFILE.tmp $CONFIGFILE + + fi + + # Stop debconf (because we may launch a daemon and debconf + # will not detect the end of postinst) + db_stop + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + +#DEBHELPER# + +exit 0 + + --- loggedfs-0.5.orig/debian/rules +++ loggedfs-0.5/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# This file was originally written by Joey Hess and Craig Small. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +configure: configure-stamp +configure-stamp: patch + dh_testdir + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + $(MAKE) mrproper + + debconf-updatepo + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) DESTDIR=$(CURDIR)/debian/loggedfs install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installdirs + dh_installlogrotate + dh_installdebconf + dh_installinit -- start 20 2 3 4 5 . stop 80 1 . + dh_installman loggedfs.1 + dh_strip --dbg-package=loggedfs-dbg + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- loggedfs-0.5.orig/debian/templates +++ loggedfs-0.5/debian/templates @@ -0,0 +1,36 @@ +Template: loggedfs/start_default +Type: boolean +_Description: Start loggedfs by default? + Loggedfs is not started by default as you are likely to change some sensible + default values like destination path to audit in your vfs. If you answer + positively, more questions to setup it properly will follow. You can also + configure those parameters in /etc/default/loggedfs. + . + Internal loggedfs configuration file, where you can specify other parameters, + like which fs operation you want to log (like getattr, open, write…), which + user you want to audit and other operations, is available at /etc/loggedfs.xml. + . + You can specify other parameters, like which fs operation you want to log (like + getattr, open, write…), which user you want to audit, and other operations, in + the internal loggedfs configuration file where available at /etc/loggedfs.xml. + . + Finally, note that you can also use loggedfs in non daemon mode and run it from + a shell to log other paths or information… 'man loggedfs' for more info. + +Template: loggedfs/audit_path +Type: string +_Description: Path where you want to log actions: + Loggedfs daemon will audit only a subpart of your fs. You have to choose there + the corresponding path you wish logging in daemon mode. + . + Beware though - logging essential paths of your fs like those directly under / + or /home/user is strongly discouraged. In a nutshell, it is strongly advised to + audit only subdirectories of /home/user like /home/user/foo. More information + in README.Debian. + +Template: loggedfs/use_syslog +Type: boolean +_Description: Use syslog or dedicated log directory? + You can choose to use the syslog daemon to log all output information of your + loggedfs daemon or use /var/log/loggedfs as a dedicated log directory, using + logrotate to store and back them up separately. --- loggedfs-0.5.orig/debian/watch +++ loggedfs-0.5/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/loggedfs/loggedfs-(.*)\.tar\.bz2