]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - checkpolicy/checkpolicy.nm
checkpolicy: Update to 2.1.8.
[people/arne_f/ipfire-3.x.git] / checkpolicy / checkpolicy.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = checkpolicy
7 version = 2.1.8
8 release = 1
9
10 groups = Development/System
11 url = http://userspace.selinuxproject.org
12 license = GPLv2
13 summary = SELinux policy compiler.
14
15 description
16 This package contains checkpolicy, the SELinux policy compiler and
17 is required for building policies.
18 end
19
20 sources = %{thisapp}.tgz
21
22 build
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
54 end
55
56 packages
57 package %{name}
58 end