Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 326310 Details for
Bug 340877
net-firewall/psad-2.1.7 Qa issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild-patch
patch (text/plain), 4.94 KB, created by
Agostino Sarubbo
on 2012-10-11 18:30:01 UTC
(
hide
)
Description:
ebuild-patch
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2012-10-11 18:30:01 UTC
Size:
4.94 KB
patch
obsolete
>--- psad-2.1.7.ebuild 2010-12-21 14:52:48.000000000 +0100 >+++ psad-2.1.7-r1.ebuild 2012-10-11 20:28:42.722655030 +0200 >@@ -2,17 +2,19 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-2.1.7.ebuild,v 1.5 2010/12/21 13:52:48 klausman Exp $ > >+EAPI=4 >+ > inherit eutils perl-app > > IUSE="" > > DESCRIPTION="Port Scanning Attack Detection daemon" >-SRC_URI="http://www.cipherdyne.org/psad/download/${P}.tar.bz2" >+SRC_URI="http://www.cipherdyne.org/${PN}/download/${P}.tar.bz2" > HOMEPAGE="http://www.cipherdyne.org/psad" > > SLOT="0" > LICENSE="GPL-2" >-KEYWORDS="alpha amd64 ppc ~sparc x86" >+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" > > DEPEND="${DEPEND} > dev-lang/perl" >@@ -25,21 +27,21 @@ > net-misc/whois" > > src_compile() { >- cd "${S}"/deps/Net-IPv4Addr >+ cd "${S}"/deps/Net-IPv4Addr || die > SRC_PREP="no" perl-module_src_compile > emake test > >- cd "${S}"/deps/IPTables-Parse >+ cd "${S}"/deps/IPTables-Parse || die > SRC_PREP="no" perl-module_src_compile > emake test > >- cd "${S}"/deps/IPTables-ChainMgr >+ cd "${S}"/deps/IPTables-ChainMgr || die > SRC_PREP="no" perl-module_src_compile > emake test > >- cd "${S}" >+ cd "${S}" || die > # We'll use the C binaries >- emake || die "Make failed: daemons" >+ emake > } > > src_install() { >@@ -48,60 +50,60 @@ > > doman *.8 > >- keepdir /var/lib/psad /var/log/psad /var/run/psad /var/lock/subsys/${PN} >- dodir /etc/psad >+ keepdir /var/lib/${PN} /var/log/${PN} /var/run/${PN} /var/lock/subsys/${PN} >+ dodir /etc/${PN} > >- cd "${S}"/deps/Net-IPv4Addr >+ cd "${S}"/deps/Net-IPv4Addr || die > perl-module_src_install > >- cd "${S}"/deps/IPTables-ChainMgr >+ cd "${S}"/deps/IPTables-ChainMgr || die > perl-module_src_install > >- cd "${S}"/deps/IPTables-Parse >+ cd "${S}"/deps/IPTables-Parse || die > perl-module_src_install > >- cd "${S}" >+ cd "${S}" || die > insinto /usr >- dosbin kmsgsd psad psadwatchd >+ dosbin kmsgsd ${PN} psadwatchd > newsbin fwcheck_psad.pl fwcheck_psad > newbin pscan psad-pscan > >- cd "${S}" >+ cd "${S}" || die > >- insinto /etc/psad >+ insinto /etc/${PN} > doins *.conf > doins psad_* > doins auto_dl icmp_types ip_options posf signatures pf.os > >- cd "${S}"/init-scripts >- newinitd psad-init.gentoo psad >+ cd "${S}"/init-scripts || die >+ newinitd psad-init.gentoo ${PN} > >- cd "${S}"/deps/snort_rules >- dodir /etc/psad/snort_rules >- insinto /etc/psad/snort_rules >+ cd "${S}"/deps/snort_rules || die >+ dodir /etc/${PN}/snort_rules >+ insinto /etc/${PN}/snort_rules > doins *.rules > >- cd "${S}" >+ cd "${S}" || die > dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES README SCAN_LOG > } > > pkg_preinst() { >- cd "${S}" >+ cd "${S}" || die > > # Set sane defaults in config file. > fix_psad_conf > } > > pkg_postinst() { >- if [ ! -p "${ROOT}"/var/lib/psad/psadfifo ] >+ if [ ! -p "${ROOT}"/var/lib/${PN}/psadfifo ] > then > ebegin "Creating syslog FIFO for PSAD" >- mknod -m 600 "${ROOT}"/var/lib/psad/psadfifo p >+ mknod -m 600 "${ROOT}"/var/lib/${PN}/psadfifo p > eend $? > fi > > echo >- elog "Please be sure to edit /etc/psad/psad.conf to reflect your system's" >+ elog "Please be sure to edit /etc/${PN}/${PN}.conf to reflect your system's" > elog "configuration or it may not work correctly or start up. Specifically, check" > elog "the validity of the HOSTNAME setting and replace the EMAIL_ADDRESSES and" > elog "HOME_NET settings at the least." >@@ -110,7 +112,7 @@ > then > ewarn "You appear to have installed syslog-ng. If you are using syslog-ng as your" > ewarn "default system logger, please change the SYSLOG_DAEMON entry in" >- ewarn "/etc/psad/psad.conf to the following (per examples in psad.conf):" >+ ewarn "/etc/${PN}/${PN}.conf to the following (per examples in ${PN}.conf):" > ewarn " SYSLOG_DAEMON syslog-ng;" > ewarn > fi >@@ -118,25 +120,25 @@ > then > elog "You have sysklogd installed. If this is your default system logger, no" > elog "special configuration is needed. If it is not, please set SYSLOG_DAEMON" >- elog "in /etc/psad/psad.conf accordingly." >+ elog "in /etc/${PN}/${PN}.conf accordingly." > elog > fi > if has_version ">=app-admin/metalog-0.0" > then > ewarn "You appear to have installed metalog. If you are using metalog as your" > ewarn "default system logger, please change the SYSLOG_DAEMON entry in" >- ewarn "/etc/psad/psad.conf to the following (per examples in psad.conf):" >+ ewarn "/etc/${PN}/${PN}.conf to the following (per examples in ${PN}.conf):" > ewarn " SYSLOG_DAEMON metalog" > fi > > ewarn "NOTE: You need firewall rules to log dropped packets. Otherwise PSAD will" > ewarn "not be aware of any port scan attacks. Please see FW_EXAMPLE_RULES in the" >- ewarn "psad documentation directory (ie /usr/share/doc/${P}) for the criteria and" >+ ewarn "${PN} documentation directory (ie /usr/share/doc/${P}) for the criteria and" > ewarn "sample rules." > } > > fix_psad_conf() { >- cp psad.conf psad.conf.orig >+ cp ${PN}.conf ${PN}.conf.orig > > # Ditch the _CHANGEME_ for hostname, substituting in our real hostname > [ -e /etc/hostname ] && myhostname="$(< /etc/hostname)"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 340877
:
326310