diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-06-11 17:48:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-06-11 17:48:39 +0000 |
commit | 3bb4bfeeb44656ac1e661f5425d6cafa8a4bdb76 (patch) | |
tree | 9d800b29d3dd835d28bef3ef8da382e5f3bd9c37 /sys-libs | |
parent | sys-kernel/genkernel: 3.4.36 (diff) | |
download | gentoo-2-3bb4bfeeb44656ac1e661f5425d6cafa8a4bdb76.tar.gz gentoo-2-3bb4bfeeb44656ac1e661f5425d6cafa8a4bdb76.tar.bz2 gentoo-2-3bb4bfeeb44656ac1e661f5425d6cafa8a4bdb76.zip |
Initial ebuild based on Kees Cook's work #420323 by Kees Cook.
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libseccomp/ChangeLog | 3 | ||||
-rw-r--r-- | sys-libs/libseccomp/libseccomp-0.1.0.ebuild | 36 | ||||
-rw-r--r-- | sys-libs/libseccomp/metadata.xml | 10 |
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> |