[arch-commits] Commit in snort/trunk (PKGBUILD snort.install)

Hugo Doria hugo at archlinux.org
Thu Jul 24 12:28:08 EDT 2008


    Date: Thursday, July 24, 2008 @ 12:28:08
  Author: hugo
Revision: 6477

upgpkg: snort 2.8.2.1-7
    adding UID/GID

Modified:
  snort/trunk/PKGBUILD
  snort/trunk/snort.install

---------------+
 PKGBUILD      |    2 +-
 snort.install |   25 +++++++++----------------
 2 files changed, 10 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-07-24 13:31:46 UTC (rev 6476)
+++ PKGBUILD	2008-07-24 16:28:08 UTC (rev 6477)
@@ -6,7 +6,7 @@
 
 pkgname=snort
 pkgver=2.8.2.1
-pkgrel=6
+pkgrel=7
 pkgdesc="A lightweight network intrusion detection system"
 arch=('i686' 'x86_64')
 license=('GPL')

Modified: snort.install
===================================================================
--- snort.install	2008-07-24 13:31:46 UTC (rev 6476)
+++ snort.install	2008-07-24 16:28:08 UTC (rev 6477)
@@ -1,15 +1,17 @@
 post_install() {
-  getent group snort >/dev/null || usr/sbin/groupadd snort
-  getent passwd snort >/dev/null || usr/sbin/useradd -c 'Snort user' -g snort -d /var/log/snort -s /bin/false snort
+  getent group snort >/dev/null || usr/sbin/groupadd -g 29 snort
+  getent passwd snort >/dev/null || usr/sbin/useradd -c 'Snort user' -u 29 -g snort -d /var/log/snort -s /bin/false snort
   usr/bin/passwd -l snort &>/dev/null
 
   [ -f var/log/snort/alert ] || : >var/log/snort/alert
   chown snort.snort var/log/snort/alert
-  
-  echo
-  echo ">>> You have to edit the HOME_NET variable in the /etc/snort/snort.conf \
-file to reflect your local network."
-  echo ">>> If you do not change it, snort may not work."
+
+cat << _EOF  
+
+>>> You have to edit the HOME_NET variable in the /etc/snort/snort.conf file to reflect your local network.
+>>> If you do not change it, snort may not work.
+
+_EOF
 }
 
 post_upgrade() {
@@ -21,13 +23,4 @@
   usr/sbin/groupdel snort &>/dev/null
 }
 
-post_remove() {
-  /bin/true
-}
-
-op=$1
-shift
-
-$op $*
-
 # vim:set ts=2 sw=2 et:





More information about the arch-commits mailing list