diff options
-rw-r--r-- | net-analyzer/portsentry/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/portsentry/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/portsentry/portsentry-1.2-r1.ebuild | 59 |
3 files changed, 68 insertions, 3 deletions
diff --git a/net-analyzer/portsentry/ChangeLog b/net-analyzer/portsentry/ChangeLog index cb6c241c70e1..425b320248f1 100644 --- a/net-analyzer/portsentry/ChangeLog +++ b/net-analyzer/portsentry/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/portsentry -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/portsentry/ChangeLog,v 1.22 2007/09/06 17:50:03 jokey Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/portsentry/ChangeLog,v 1.23 2010/09/10 14:27:17 jer Exp $ + +*portsentry-1.2-r1 (10 Sep 2010) + + 10 Sep 2010; Jeroen Roovers <jer@gentoo.org> +portsentry-1.2-r1.ebuild: + Respect LDFLAGS (bug #335371), CC. 06 Sep 2007; Markus Ullmann <jokey@gentoo.org> -portsentry-1.1-r7.ebuild: Cleanup diff --git a/net-analyzer/portsentry/Manifest b/net-analyzer/portsentry/Manifest index aae1f478b468..de89e9236232 100644 --- a/net-analyzer/portsentry/Manifest +++ b/net-analyzer/portsentry/Manifest @@ -4,6 +4,7 @@ AUX portsentry.conf.5 8385 RMD160 250177fc0a7ce5c41c36692ba311b2e984b72fcc SHA1 AUX portsentry.confd 361 RMD160 20add24aa06b81bcc799f4dc4b535cf90ab450e7 SHA1 59b382af8ac9b12301d30fbea74e035309278fac SHA256 e10504cb2600515abe34df575e88ba2b1135dce3f5c0a5a08558f332884d7bb3 AUX portsentry.rc6 962 RMD160 8f030ee8546b9a61e8efb8dba2d5a5e11bcdf3b5 SHA1 3b16efde2f82bcebfef59e4fa0ffa772d75e98d8 SHA256 c3ecd77747258b33431954f8d413f15091924797bc626f87ddc82cabdccdbe30 DIST portsentry-1.2.tar.gz 48054 RMD160 8bf4bce18229a7ebff47e7fe50493738ae818085 SHA1 091124db3f9ccc29afae08d6ab1fdd073b789d0a SHA256 dd1edcfcf2d9db7b5722de4f1da36ae45703bf05917af657ab6f7491be7fa52e +EBUILD portsentry-1.2-r1.ebuild 1884 RMD160 089aa5a959ccedd51942ea7656b4cea2689ad044 SHA1 2ea7f7f02481c248ae2000f26b9ee14a8bf65746 SHA256 0dfe5431497598f34bb75fae6342971a1e5a202df9b52eeb17f11094a9488149 EBUILD portsentry-1.2.ebuild 1836 RMD160 053413f1a2251a5c87bc7311324e7fe6945d6375 SHA1 8c571aeed2aee267dcb17e0a40066ade4eccef55 SHA256 04cab2780b6968f24c509fe8c0a73cc26da744d7da288fcfc607491105477fe8 -MISC ChangeLog 2955 RMD160 9ed1abc53a63ffd5ab9167e79c8c9e78730a5b81 SHA1 29740b552fc9757df915e93a3a50d73cd86b7332 SHA256 3784dd7a154cfd782e272e020077b568c7f594457ad84b0b8b62375c00a525f3 +MISC ChangeLog 3099 RMD160 2e8a4710f759baef5b2e5cb0c9439d34af188ded SHA1 6c68f09d5eb4e702dfea49a68c84827e0e092d40 SHA256 e71a507791c633029d2f0624f061a4739aa3c67011cba414e5988b374504962d MISC metadata.xml 241 RMD160 c6c1498fc27b7c70e7994634e1d2f828496aafa6 SHA1 044ad33d601bea6352c09efea422b8acc7a7a810 SHA256 a4f38352bf4850ec5036b33ff7d34ddcb4da36eaf5714633b94a46724e5df8f5 diff --git a/net-analyzer/portsentry/portsentry-1.2-r1.ebuild b/net-analyzer/portsentry/portsentry-1.2-r1.ebuild new file mode 100644 index 000000000000..47d3fd4c4259 --- /dev/null +++ b/net-analyzer/portsentry/portsentry-1.2-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/portsentry/portsentry-1.2-r1.ebuild,v 1.1 2010/09/10 14:27:17 jer Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Automated port scan detector and response tool" +# Seems like CISCO took the site down? +HOMEPAGE="http://sourceforge.net/projects/sentrytools/" +SRC_URI="mirror://sourceforge/sentrytools/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4" +S="${WORKDIR}"/${PN}_beta + +src_unpack() { + unpack ${A} ; cd "${S}" + + # Setting the portsentry.conf file location + sed -i \ + -e 's:/usr/local/psionic/portsentry/portsentry.conf:/etc/portsentry/portsentry.conf:' \ + portsentry_config.h || die "sed portsentry_config.h failed" + + # presetting the other file locations in portsentry.conf + sed -i \ + -e 's:\(^IGNORE_FILE\).*:\1="/etc/portsentry/portsentry.ignore":g' \ + -e 's:^\(HISTORY_FILE\).*:\1="/etc/portsentry/portsentry.history":g' \ + -e 's:^\(BLOCKED_FILE\).*:\1="/etc/portsentry/portsentry.blocked":g' \ + portsentry.conf || die "sed portsentry.conf failed" + + sed -i \ + -e "s:^set SENTRYDIR.*:set SENTRYDIR=/etc/portsentry:g" \ + ignore.csh || die "sed ignore.csh failed" + epatch ${FILESDIR}/gcc.patch +} + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="${CFLAGS} ${LDFLAGS}" linux || die +} + +src_install() { + doman ${FILESDIR}/{portsentry.8,portsentry.conf.5} + + dobin portsentry ignore.csh + dodoc README* CHANGES LICENSE CREDITS + newdoc portsentry.ignore portsentry.ignore.sample + newdoc portsentry.conf portsentry.conf.sample + + insinto /etc/portsentry + newins portsentry.ignore portsentry.ignore.sample + newins portsentry.conf portsentry.conf.sample + + newinitd "${FILESDIR}"/portsentry.rc6 portsentry + newconfd "${FILESDIR}"/portsentry.confd portsentry +} |