]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - checkpolicy/checkpolicy.nm
checkpolicy: Update to 2.1.8.
[people/arne_f/ipfire-3.x.git] / checkpolicy / checkpolicy.nm
CommitLineData
fd72915b
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = checkpolicy
706b926b 7version = 2.1.8
fd72915b
SS
8release = 1
9
10groups = Development/System
11url = http://userspace.selinuxproject.org
12license = GPLv2
13summary = SELinux policy compiler.
14
15description
16 This package contains checkpolicy, the SELinux policy compiler and
17 is required for building policies.
18end
19
20sources = %{thisapp}.tgz
21
22build
23 requires
24 bison
25 flex
26 flex-devel
27 libselinux-devel
28 libsepol-devel
29 libsepol-static
30 end
31
32 prepare_cmds
33 # Link against -lfl_pic instead of -lfl.
34 sed -i -e "s/lfl/&_pic/g" Makefile */Makefile
35 end
36
37 make_build_targets += \
38 LIBDIR="/usr/lib" \
39 CFLAGS="%{CFLAGS}" \
40 LEX=flex
41
42 # build all binaries.
43 build_cmds
44 make -C test %{make_build_targets}
45 end
46
47 make_install_cmds += \
48 LIBDIR=%{BUILDROOT}/usr/lib
49
50 install_cmds
51 install test/dismod %{BULDROOT}/usr/bin
52 install test/dispol %{BUILDROOT}/usr/bin
53 end
54end
55
56packages
57 package %{name}
58end