/[gentoo-x86]/net-misc/portsentry/portsentry-1.1-r6.ebuild
Gentoo

Contents of /net-misc/portsentry/portsentry-1.1-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Dec 23 23:25:19 2001 UTC (18 years, 2 months ago) by azarah
Branch: MAIN
Changes since 1.1: +2 -1 lines
moved rc-script config settings to /etc/conf.d

1 woodchip 1.1 # Copyright 1999-2001 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author Ben Lutgens <lamer@gentoo.org>
4 azarah 1.2 # $Header: /home/cvsroot/gentoo-x86/net-misc/portsentry/portsentry-1.1-r6.ebuild,v 1.1 2001/10/17 16:07:11 woodchip Exp $
5 woodchip 1.1
6     DESCRIPTION="Automated port scan detector and response tool"
7     HOMEPAGE="http://www.psionic.com/abacus/portsentry/"
8    
9     SRC_URI="http://www.psionic.com/tools/${P}.tar.gz"
10     S=${WORKDIR}/${P}
11    
12     DEPEND="virtual/glibc"
13    
14     src_unpack() {
15    
16     unpack ${A} ; cd ${S}
17    
18     # Setting the portsentry.conf file location
19     sed -e 's:/usr/local/psionic/portsentry/portsentry.conf:/etc/portsentry/portsentry.conf:' \
20     portsentry_config.h | cat > portsentry_config.h
21    
22     # presetting the other file locations in portsentry.conf
23     sed -e 's:^IGNORE_FILE.*:IGNORE_FILE="/etc/portsentry/portsentry.ignore":g' \
24     -e 's:^HISTORY_FILE.*:HISTORY_FILE="/etc/portsentry/portsentry.history":g' \
25     -e 's:^BLOCKED_FILE.*:BLOCKED_FILE="/etc/portsentry/portsentry.blocked":g' \
26     portsentry.conf | cat > portsentry.conf
27    
28     sed -e "s:^set SENTRYDIR.*:set SENTRYDIR=/etc/portsentry:g" \
29     ignore.csh | cat > ignore.csh
30     }
31    
32     src_compile() {
33    
34     make CFLAGS="${CFLAGS}" linux || die
35     }
36    
37     src_install () {
38    
39     dobin portsentry ignore.csh
40     dodoc README* CHANGES LICENSE CREDITS
41     newdoc portsentry.ignore portsentry.ignore.sample
42     newdoc portsentry.conf portsentry.conf.sample
43    
44     insinto /etc/portsentry
45     newins portsentry.ignore portsentry.ignore.sample
46     newins portsentry.conf portsentry.conf.sample
47    
48     exeinto /etc/init.d ; newexe ${FILESDIR}/portsentry.rc6 portsentry
49 azarah 1.2 insinto /etc/conf.d ; newins ${FILESDIR}/portsentry.confd portsentry
50 woodchip 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20