[csw-devel] SF.net SVN: gar:[7087] csw/mgar/pkg/aide/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Nov 3 15:30:56 CET 2009


Revision: 7087
          http://gar.svn.sourceforge.net/gar/?rev=7087&view=rev
Author:   dmichelsen
Date:     2009-11-03 14:30:56 +0000 (Tue, 03 Nov 2009)

Log Message:
-----------
aide: Relocate config-file to /etc/opt/csw and provide example

Modified Paths:
--------------
    csw/mgar/pkg/aide/trunk/Makefile
    csw/mgar/pkg/aide/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/aide/trunk/files/aide.conf

Modified: csw/mgar/pkg/aide/trunk/Makefile
===================================================================
--- csw/mgar/pkg/aide/trunk/Makefile	2009-11-03 13:15:07 UTC (rev 7086)
+++ csw/mgar/pkg/aide/trunk/Makefile	2009-11-03 14:30:56 UTC (rev 7087)
@@ -11,6 +11,7 @@
 
 MASTER_SITES = $(SF_MIRRORS)
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += aide.conf
 
 # Disable Sun ACLs for now until bug #2887984 is fixed:
 #   http://sourceforge.net/tracker/?func=detail&aid=2887984&group_id=86976&atid=581579
@@ -26,6 +27,9 @@
 REQUIRED_PKGS = CSWcurlrt CSWgcrypt CSWgpgerr CSWlibidn CSWlibmhash CSWlibpq
 REQUIRED_PKGS += CSWoldaprt CSWosslrt CSWzlib
 
+sysconfdir = /etc/opt/csw/aide
+PRESERVECONF = $(sysconfdir)/aide.conf
+
 EXTRA_LIB = $(prefix)/postgresql/lib
 EXTRA_INC = $(prefix)/postgresql/include
 
@@ -48,3 +52,7 @@
 TEST_SCRIPTS =
 
 include gar/category.mk
+
+post-install-modulated:
+	ginstall -d $(DESTDIR)/etc/opt/csw/aide
+	ginstall $(WORKDIR)/aide.conf $(DESTDIR)/etc/opt/csw/aide/

Modified: csw/mgar/pkg/aide/trunk/checksums
===================================================================
--- csw/mgar/pkg/aide/trunk/checksums	2009-11-03 13:15:07 UTC (rev 7086)
+++ csw/mgar/pkg/aide/trunk/checksums	2009-11-03 14:30:56 UTC (rev 7087)
@@ -1,2 +1,3 @@
 c0fe56738d4f293c4d5a8de164a2a01c  0002-Add-missing-prototypes-for-db_sql.patch
 27978cc6bca4f0fbf3f6f5a1b330661c  aide-0.13.1.tar.gz
+d23d52d1464b957c0d64f75e7e1ec862  aide.conf

Added: csw/mgar/pkg/aide/trunk/files/aide.conf
===================================================================
--- csw/mgar/pkg/aide/trunk/files/aide.conf	                        (rev 0)
+++ csw/mgar/pkg/aide/trunk/files/aide.conf	2009-11-03 14:30:56 UTC (rev 7087)
@@ -0,0 +1,166 @@
+# From http://www.mail-archive.com/aide@cs.tut.fi/msg00234.html
+#
+# "This is the one I used when I was still running Solaris 8.
+# You will probably need to do some tweaking of the /devices
+# directory depending on the hardware you have installed."
+#   Richard van den Berg
+#
+# The files has been adjusted to suite OpenCSW directory layout.
+#   Dagobert Michelsen (dam at opencsw.org)
+
+# Here are all the things we can check - these are the default rules 
+#
+#p:      permissions
+#i:      inode
+#n:      number of links
+#u:      user
+#g:      group
+#s:      size
+#b:      block count
+#m:      mtime
+#a:      atime
+#c:      ctime
+#S:      check for growing size
+#md5:    md5 checksum
+#sha1:   sha1 checksum
+#rmd160: rmd160 checksum
+#tiger:  tiger checksum
+#R:      p+i+n+u+g+s+m+c+md5
+#L:      p+i+n+u+g
+#E:      Empty group
+#>:      Growing logfile p+u+g+i+n+S
+
+# Place of databases
+#
+gzip_dbout   = yes
+#database     = file:///etc/aide/aide.db.gz
+database     = file:///floppy/aidedb/aide.db.gz
+database_out = file:///opt/csw/etc/aide/aide.db.new.gz
+database_new = file:///opt/csw/etc/aide/aide.db.new.gz
+
+# Custom rules
+#
+Default = p+i+n+u+g+s+b+m+c+md5+sha1 
+C       = p+i+n
+T       = p+i+u+g
+F       = i+n+u+g
+Y       = i+n
+
+# Configutations
+/etc                Default
+/etc/.*pipe$        L
+/etc/.name_service_door$ n+u+g+p
+/etc/mnttab         T
+!/etc/ppp/resolv.conf$
+!/etc/cron.d/FIFO$
+/usr/local/etc      Default
+/usr/.*/etc.*       Default
+/usr/local/.*/etc.* Default
+!/usr/local/etc/.*.cache$
+/opt/.*/etc         Default
+!/etc/rmtab$
+!/etc/Master.ini$
+
+# Executables
+
+/usr/bin             Default
+/usr/ucb             Default
+/usr/.*/bin.*        Default
+/usr/local/.*/bin.*  Default
+/sbin                Default
+/usr/sbin            Default
+/usr/.*/sbin.*       Default
+/usr/local/.*/sbin.* Default
+/opt/.*/bin.*        Default
+/opt/.*/sbin.*       Default
+
+# Libraries
+
+/usr/lib             Default
+/usr/.*/lib.*        Default
+/usr/local/.*/lib.*  Default
+/opt/.*/lib.*        Default
+
+/var            Default         
+/var/audit$     L
+!/var/audit/.*
+/var/log$       L
+!/var/log/.*
+/var/mail$      L
+!/var/mail/.*
+/var/squid$     L
+!/var/squid/.*
+/var/cron/log$  L
+!/var/cron/log/.*
+/var/adm$       L
+!/var/adm/.*log
+/var/dt$        L
+!/var/dt/.*
+/var/dhcp$      L
+!/var/dhcp/\..*
+!/var/dhcp/SUNWfiles1_192_168_0_0
+!/var/adm/messages.*
+!/var/spool/.*
+!/var/adm/utmpx$
+!/var/adm/wtmpx$
+/var/spool/lp/tmp$         L
+!/var/spool/lp/tmp/.*
+!/var/preserve/sunpcilogs.*
+/var/adm/X10msgs >
+
+
+# Critical devices
+
+/dev/dsk                              Default
+/dev/rdsk                             Default
+/devices                              Default
+/devices/pseudo/pts.*                   Y
+/devices/pseudo/.*tty.*                 Y
+/devices/pseudo/[EMAIL PROTECTED]:console            C
+/devices/pseudo/cons.*                  C
+/devices/pseudo/random.*                L
+#/devices/[EMAIL PROTECTED],0/.*                    L
+/devices/[EMAIL PROTECTED],0/sound.*               C
+/devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]:sound,audioctl Y
+/devices/[EMAIL PROTECTED],0/SUNW,[EMAIL PROTECTED]:m640     C
+/devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0/floppy* F
+/devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],3f8:a  L
+/devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/pci108e,[EMAIL PROTECTED]:sunpci2drv L
+/dev/kmem                             Default
+/dev/mem                              Default
+/dev/null                             Default
+/dev/zero                             Default
+/devices/pseudo/[EMAIL PROTECTED]:kmem             L
+/devices/pseudo/[EMAIL PROTECTED]:mem              Default
+/devices/pseudo/[EMAIL PROTECTED]:null             L
+/devices/pseudo/[EMAIL PROTECTED]:zero             L
+
+# Other critical
+
+/kernel  Default
+
+# Temporary directories
+/usr/tmp$                  T
+!/usr/tmp/.*
+/var/tmp$                  T
+!/var/tmp/.*
+/var/run$                  T
+!/var/run/.*
+/var/dt/tmp$               T
+!/var/dt/tmp/.*
+/tmp$                      T
+!/tmp/.*
+/usr/aset/tmp$             T
+!/usr/aset/tmp/.*
+/usr/oasys/tmp$            T
+!/usr/oasys/tmp/.*
+
+# Aide stuff
+
+/opt/csw/etc/aide$           L
+!/opt/csw/etc/aide/.*\.log
+!/opt/csw/etc/aide/.*\.new
+!/opt/csw/etc/aide/.*\.db
+/opt/csw/etc/aide/aide.conf Default
+#/opt/csw/etc/aide/aide.db   Default
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list