summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libseccomp/ChangeLog3
-rw-r--r--sys-libs/libseccomp/libseccomp-0.1.0.ebuild36
-rw-r--r--sys-libs/libseccomp/metadata.xml10
3 files changed, 49 insertions, 0 deletions
diff --git a/sys-libs/libseccomp/ChangeLog b/sys-libs/libseccomp/ChangeLog
new file mode 100644
index 000000000000..198bb36222b2
--- /dev/null
+++ b/sys-libs/libseccomp/ChangeLog
@@ -0,0 +1,3 @@
+# ChangeLog for sys-libs/libseccomp
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libseccomp/ChangeLog,v 1.1 2012/06/11 17:48:39 vapier Exp $
diff --git a/sys-libs/libseccomp/libseccomp-0.1.0.ebuild b/sys-libs/libseccomp/libseccomp-0.1.0.ebuild
new file mode 100644
index 000000000000..a6d17a888532
--- /dev/null
+++ b/sys-libs/libseccomp/libseccomp-0.1.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libseccomp/libseccomp-0.1.0.ebuild,v 1.1 2012/06/11 17:48:39 vapier Exp $
+
+# Note: USE=static-libs isn't great -- only PIC objects are provided.
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="high level interface to Linux seccomp filter"
+HOMEPAGE="http://sourceforge.net/projects/libseccomp/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs tools"
+
+src_prepare() {
+ sed -i \
+ -e "/^SUBDIRS_BUILD/s:=.*:= src $(usex tools tools ''):" \
+ Makefile || die
+}
+
+src_test() {
+ emake SUBDIRS_BUILD='tools tests'
+ cd tests
+ ./regression
+}
+
+src_install() {
+ default
+ use tools && dobin tools/{bpf_{disasm,sim},sys_{inspector,resolver}}
+ use static-libs && dolib.a src/libseccomp.a
+}
diff --git a/sys-libs/libseccomp/metadata.xml b/sys-libs/libseccomp/metadata.xml
new file mode 100644
index 000000000000..747a9b98af4f
--- /dev/null
+++ b/sys-libs/libseccomp/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>vapier@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='tools'>enable debugging tools</flag>
+</use>
+</pkgmetadata>