summaryrefslogtreecommitdiffstats
path: root/recipes/snort/files/default
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2010-07-30 12:53:41 +0400
committerRoman I Khimov <khimov@altell.ru>2010-08-05 08:30:46 +0400
commit2f17293d311dfa426a514bd8178401020f34ec88 (patch)
tree9d45f43069b3c386d8da9d30267b76bdfe15818c /recipes/snort/files/default
parent57788916d7a3675260267ac1e043efd367806253 (diff)
downloadopenembedded-2f17293d311dfa426a514bd8178401020f34ec88.tar.gz
snort: merge Altell packaging fixes
Snort was independently packaged by Altell some time ago, so merge things we've done into OE.dev: * fix packaging of snort dynamic libs * fix DEPENDS, libnet is not needed is not specifically used * fix RDEPENDS, no need to specify libs expicitly, barnyard is rather a RRECOMMENDS than RDEPENDS since snort lives just fine without it * add libprelude support and configure accordingly * add some useful configure options * add init/volatile/default setup which is necessary for the package * add postinst creating snort/snort user/group * add logrotate script Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes/snort/files/default')
-rw-r--r--recipes/snort/files/default42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/snort/files/default b/recipes/snort/files/default
new file mode 100644
index 0000000000..afd3840d36
--- /dev/null
+++ b/recipes/snort/files/default
@@ -0,0 +1,42 @@
+# Parameters for the daemon
+# Add any additional parameteres here.
+PARAMS="-m 027 -D -d "
+#
+# Snort user
+# This user will be used to launch snort. Notice that the
+# preinst script of the package might do changes to the user
+# (home directory, User Name) when the package is upgraded or
+# reinstalled. So, do *not* change this to 'root' or to any other user
+# unless you are sure there is no problem with those changes being introduced.
+#
+SNORTUSER="snort"
+#
+# Logging directory
+# Snort logs will be dropped here and this will be the home
+# directory for the SNORTUSER. If you change this value you should
+# change the /etc/logrotate.d/snort definition too, otherwise logs
+# will not be rotated properly.
+#
+LOGDIR="/var/log/snort"
+#
+# Snort group
+# This is the group that the snort user will be added to.
+#
+SNORTGROUP="snort"
+#
+# Allow Snort's init.d script to work if the configured interfaces
+# are not available. Set this to yes if you configure Snort with
+# multiple interfaces but some might not be available on boot
+# (e.g. wireless interfaces)
+#
+# Note: In order for this to work the 'iproute' package needs to
+# be installed.
+ALLOW_UNAVAILABLE="no"
+
+# Local configs
+#
+LOCAL_SNORT_STARTUP=boot
+LOCAL_SNORT_HOME_NET="192.168.0.0/16"
+LOCAL_SNORT_INTERFACE=""
+LOCAL_SNORT_STATS_RCPT="root"
+LOCAL_SNORT_STATS_THRESHOLD="1"