added packet-o-matic on request, looks cool, I might have to learn to use it

This commit is contained in:
Zero_Chaos 2009-04-09 22:56:44 +00:00
parent 7e09391ec1
commit 898d96de0c
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1 @@
EBUILD packet-o-matic-9999.ebuild 1215 RMD160 a0a5cf858f8aaecaa35637c3f411cdd8dd848f6b SHA1 5def93d36fbe3ae6327562742f9ff5cf09bc3695 SHA256 e3d521639a9f521c004560658422f6c5675e55755ed2eb1f7763fc63f2d098c0

View file

@ -0,0 +1,49 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit autotools subversion
DESCRIPTION="packet-o-matic is a real time packet processor under the GPL
license."
HOMEPAGE="http://www.packet-o-matic.org/"
ESVN_REPO_URI="https://svn.tuxicoman.be/svn/packet-o-matic/trunk"
ESVN_PROJECT="packet-o-matic"
SRC_URI=""
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~hppa ~sparc ~amd64"
IUSE="zlib postgres sqlite3 xmlrpc"
DEPEND="dev-libs/libxml2
net-libs/libpcap
zlib? ( sys-libs/zlib )
postgres? ( dev-db/libpq )
sqlite? ( >dev-db/sqlite-3 )
xmlrpc? ( dev-libs/xmlrpc-c )"
S=${WORKDIR}/${PN}
src_unpack() {
subversion_src_unpack
SVN_PATH="${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}"
export SVN_VERSION=`svnversion -c ${SVN_PATH} | sed -e 's/.*://' -e 's/[A-Za-z]//'`
sed \
-e "/POM_RELEASE_VERSION/s/.*/#define POM_RELEASE_VERSION \"svn-r${SVN_VERSION}\"/" \
-i src/release.h || die "Unable to set SVN revision"
eautoreconf || die "autoreconf failed"
econf || die "Configuration failed"
}
src_compile() {
emake || die "Compilation failed"
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
}