fix the grep for mydomain so that it takes only ^domain, as the word domain can appea...
authorSeemant Kulleen <seemant@gentoo.org>
Wed, 21 Sep 2005 16:34:52 +0000 (16:34 +0000)
committerSeemant Kulleen <seemant@gentoo.org>
Wed, 21 Sep 2005 16:34:52 +0000 (16:34 +0000)
Package-Manager: portage-2.0.52-r1

net-firewall/psad/ChangeLog
net-firewall/psad/psad-1.3.4.ebuild
net-firewall/psad/psad-1.4.0.ebuild
net-firewall/psad/psad-1.4.2.ebuild

index 5b3e056167d7ee1b3759755077e0f8886237a341..5fb0093adffa2282554125d82705b0a402129178 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-firewall/psad
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/ChangeLog,v 1.29 2005/07/31 05:17:05 battousai Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/ChangeLog,v 1.30 2005/09/21 16:34:19 seemant Exp $
+
+  21 Sep 2005; Seemant Kulleen <seemant@gentoo.org> psad-1.4.0.ebuild,
+  psad-1.4.2.ebuild:
+  fix the grep for mydomain so that it takes only ^domain, as the word domain
+  can appear in other places in resolv.conf. Thanks to Chandler Carruth
+  (chandlerc on IRC)
 
   31 Jul 2005; Bryan Stine <battousai@gentoo.org> psad-1.3.4.ebuild:
   Stable x86...whoops.
index c8ebf08c3969d961a7b3f31ea6f37e88bafb0b7e..564664bfa482cadc51655ece7f599fb96f5227d6 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.3.4.ebuild,v 1.6 2005/07/31 05:20:27 battousai Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.3.4.ebuild,v 1.7 2005/09/21 16:34:52 seemant Exp $
 
 inherit eutils perl-module
 
@@ -124,7 +124,7 @@ fix_psad_conf() {
        # Ditch the _CHANGEME_ for hostname, substituting in our real hostname
        [ -e /etc/hostname ] && myhostname="$(< /etc/hostname)"
        [ "${myhostname}" == "" ] && myhostname="$HOSTNAME"
-       mydomain=".$(grep domain /etc/resolv.conf | cut -d" " -f2)"
+       mydomain=".$(grep ^domain /etc/resolv.conf | cut -d" " -f2)"
        sed -i "s:HOSTNAME\(.\+\)\_CHANGEME\_;:HOSTNAME\1${myhostname}${mydomain};:" psad.conf || die "fix_psad_conf failed"
 
        # Fix up paths
index e7ab447d1346c20b3fbe0b914eea87b1770746e7..96b703356b1b31de3f40e565d8592029edf54d70 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.4.0.ebuild,v 1.5 2005/07/31 03:09:02 battousai Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.4.0.ebuild,v 1.6 2005/09/21 16:34:19 seemant Exp $
 
 inherit eutils perl-module
 
@@ -142,7 +142,7 @@ fix_psad_conf() {
        # Ditch the _CHANGEME_ for hostname, substituting in our real hostname
        [ -e /etc/hostname ] && myhostname="$(< /etc/hostname)"
        [ "${myhostname}" == "" ] && myhostname="$HOSTNAME"
-       mydomain=".$(grep domain /etc/resolv.conf | cut -d" " -f2)"
+       mydomain=".$(grep ^domain /etc/resolv.conf | cut -d" " -f2)"
        sed -i "s:HOSTNAME\(.\+\)\_CHANGEME\_;:HOSTNAME\1${myhostname}${mydomain};:" psad.conf || die "fix_psad_conf failed"
 
        # Fix up paths
index 4717ab543b4d10e3b956d219c3b25a2e51419b0f..a28e04c194aecb47dd714f83896103db40664c36 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.4.2.ebuild,v 1.1 2005/07/31 03:09:02 battousai Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.4.2.ebuild,v 1.2 2005/09/21 16:34:19 seemant Exp $
 
 inherit eutils perl-module
 
@@ -146,7 +146,7 @@ fix_psad_conf() {
        # Ditch the _CHANGEME_ for hostname, substituting in our real hostname
        [ -e /etc/hostname ] && myhostname="$(< /etc/hostname)"
        [ "${myhostname}" == "" ] && myhostname="$HOSTNAME"
-       mydomain=".$(grep domain /etc/resolv.conf | cut -d" " -f2)"
+       mydomain=".$(grep ^domain /etc/resolv.conf | cut -d" " -f2)"
        sed -i "s:HOSTNAME\(.\+\)\_CHANGEME\_;:HOSTNAME\1${myhostname}${mydomain};:" psad.conf || die "fix_psad_conf failed"
 
        # Fix up paths