You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
11 years ago
|
|
||
8 years ago
|
EAPI=6
|
||
11 years ago
|
|
||
8 years ago
|
inherit toolchain-funcs versionator
|
||
11 years ago
|
|
||
|
DESCRIPTION="Userspace utils and init scripts for the AppArmor application security system"
|
||
|
HOMEPAGE="http://apparmor.net/"
|
||
9 years ago
|
SRC_URI="https://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
|
||
11 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE="doc"
|
||
|
|
||
8 years ago
|
RDEPEND="~sys-libs/libapparmor-${PV}"
|
||
|
DEPEND="${RDEPEND}
|
||
|
dev-lang/perl
|
||
11 years ago
|
sys-devel/bison
|
||
|
sys-devel/flex
|
||
8 years ago
|
doc? ( dev-tex/latex2html )
|
||
|
"
|
||
11 years ago
|
|
||
|
S=${WORKDIR}/apparmor-${PV}/parser
|
||
|
|
||
8 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-2.10-makefile.patch"
|
||
|
"${FILESDIR}/${PN}-2.10-dynamic-link.patch"
|
||
|
)
|
||
|
|
||
11 years ago
|
src_prepare() {
|
||
8 years ago
|
default
|
||
11 years ago
|
|
||
|
# remove warning about missing file that controls features
|
||
|
# we don't currently support
|
||
|
sed -e "/installation problem/ctrue" -i rc.apparmor.functions || die
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
8 years ago
|
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" USE_SYSTEM=1 arch manpages
|
||
11 years ago
|
use doc && emake pdf
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
emake DESTDIR="${D}" USE_SYSTEM=1 install
|
||
11 years ago
|
|
||
10 years ago
|
dodir /etc/apparmor.d/disable
|
||
11 years ago
|
|
||
|
newinitd "${FILESDIR}"/${PN}-init ${PN}
|
||
|
|
||
|
use doc && dodoc techdoc.pdf
|
||
|
}
|