/[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.1 - (show annotations) (download)
Wed Oct 17 16:07:11 2001 UTC (18 years, 4 months ago) by woodchip
Branch: MAIN
rc5/rc6 support. cleanup the rc6 initscript. fixup config file install.

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 # $Header: /home/cvsroot/gentoo-x86/net-misc/portsentry/portsentry-1.1.ebuild,v 1.2 2001/09/13 00:09:53 lamer Exp $
5
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 }

  ViewVC Help
Powered by ViewVC 1.1.20