1 |
commit: 51b3436cf1ef8f547fa90f80e8ef120f03a11dde |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 23 00:39:13 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 23 00:39:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51b3436c |
7 |
|
8 |
dev-libs/libcgroup: remove vulnerable version, bug #664324 |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
dev-libs/libcgroup/libcgroup-0.41-r4.ebuild | 95 ----------------------------- |
13 |
1 file changed, 95 deletions(-) |
14 |
|
15 |
diff --git a/dev-libs/libcgroup/libcgroup-0.41-r4.ebuild b/dev-libs/libcgroup/libcgroup-0.41-r4.ebuild |
16 |
deleted file mode 100644 |
17 |
index ebd6a36c8af..00000000000 |
18 |
--- a/dev-libs/libcgroup/libcgroup-0.41-r4.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,95 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-inherit autotools flag-o-matic linux-info pam |
27 |
- |
28 |
-DESCRIPTION="Tools and libraries to configure and manage kernel control groups" |
29 |
-HOMEPAGE="http://libcg.sourceforge.net/" |
30 |
-SRC_URI="mirror://sourceforge/project/libcg/${PN}/v${PV}/${P}.tar.bz2" |
31 |
- |
32 |
-LICENSE="LGPL-2.1" |
33 |
-SLOT="0" |
34 |
-KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86" |
35 |
-IUSE="+daemon elibc_musl pam static-libs +tools" |
36 |
- |
37 |
-RDEPEND="pam? ( virtual/pam )" |
38 |
- |
39 |
-DEPEND=" |
40 |
- ${RDEPEND} |
41 |
- sys-devel/bison |
42 |
- sys-devel/flex |
43 |
- elibc_musl? ( sys-libs/fts-standalone ) |
44 |
- " |
45 |
-REQUIRED_USE="daemon? ( tools )" |
46 |
- |
47 |
-DOCS=(README_daemon README README_systemd INSTALL) |
48 |
-pkg_setup() { |
49 |
- local CONFIG_CHECK="~CGROUPS" |
50 |
- if use daemon; then |
51 |
- CONFIG_CHECK="${CONFIG_CHECK} ~CONNECTOR ~PROC_EVENTS" |
52 |
- fi |
53 |
- linux-info_pkg_setup |
54 |
-} |
55 |
- |
56 |
-PATCHES=( |
57 |
- "${FILESDIR}"/${P}-replace_DECLS.patch |
58 |
- "${FILESDIR}"/${P}-replace_INLCUDES.patch |
59 |
- "${FILESDIR}"/${P}-reorder-headers.patch |
60 |
-) |
61 |
- |
62 |
-src_prepare() { |
63 |
- default |
64 |
- # Change rules file location |
65 |
- sed -e 's:/etc/cgrules.conf:/etc/cgroup/cgrules.conf:' \ |
66 |
- -i src/libcgroup-internal.h || die "sed failed" |
67 |
- sed -e 's:/etc/cgconfig.conf:/etc/cgroup/cgconfig.conf:' \ |
68 |
- -i src/libcgroup-internal.h || die "sed failed" |
69 |
- sed -e 's:\(pam_cgroup_la_LDFLAGS.*\):\1\ -avoid-version:' \ |
70 |
- -i src/pam/Makefile.am || die "sed failed" |
71 |
- sed -e 's#/var/run#/run#g' -i configure.in || die "sed failed" |
72 |
- |
73 |
- eautoreconf |
74 |
-} |
75 |
- |
76 |
-src_configure() { |
77 |
- local my_conf |
78 |
- |
79 |
- if use pam; then |
80 |
- my_conf=" --enable-pam-module-dir=$(getpam_mod_dir) " |
81 |
- fi |
82 |
- |
83 |
- use elibc_musl && append-ldflags "-lfts" |
84 |
- econf \ |
85 |
- $(use_enable static-libs static) \ |
86 |
- $(use_enable daemon) \ |
87 |
- $(use_enable pam) \ |
88 |
- $(use_enable tools) \ |
89 |
- ${my_conf} |
90 |
-} |
91 |
- |
92 |
-src_test() { |
93 |
- # Use mount cgroup to build directory |
94 |
- # sandbox restricted to trivial build, |
95 |
- # possible kill Diego tanderbox ;) |
96 |
- true |
97 |
-} |
98 |
- |
99 |
-src_install() { |
100 |
- default |
101 |
- prune_libtool_files --all |
102 |
- |
103 |
- insinto /etc/cgroup |
104 |
- doins samples/*.conf || die |
105 |
- |
106 |
- if use tools; then |
107 |
- newconfd "${FILESDIR}"/cgconfig.confd-r1 cgconfig || die |
108 |
- newinitd "${FILESDIR}"/cgconfig.initd-r1 cgconfig || die |
109 |
- fi |
110 |
- |
111 |
- if use daemon; then |
112 |
- newconfd "${FILESDIR}"/cgred.confd-r2 cgred || die |
113 |
- newinitd "${FILESDIR}"/cgred.initd-r1 cgred || die |
114 |
- fi |
115 |
-} |