1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://www.selinuxproject.org
13 summary = SELinux policy core utilities.
16 policycoreutils contains utilities that are required
17 for basic operation of a SELinux system. These utilities include
18 load_policy to load policies, setfiles to label filesystems and newrole
26 sepolgen-%{sepolgen_ver}.tgz
28 # We have to apply policycoreutils-sepolgen.patch at a later time.
30 policycoreutils-gui.patch \
31 policycoreutils-po.patch \
32 policycoreutils-rhat.patch
44 libselinux-devel>=2.1.7-3
52 # Manually add policycoreutils-sepolgen.patch because it has to be applied to the sepolgen source.
54 cd %{DIR_SRC}/sepolgen-%{sepolgen_ver} && patch -Np1 -i %{DIR_PATCHES}/policycoreutils-sepolgen.patch
57 make_build_targets += \
63 make_install_targets +=\
65 LIBDIR=%{BUILDROOT}%{libdir}
69 make -C %{DIR_SRC}/sepolgen-%{sepolgen_ver} %{make_build_targets}
74 make -C %{DIR_SRC}/sepolgen-%{sepolgen_ver} DESTDIR=%{BUILDROOT} %{make_install_targets}
76 # Install bash_completion for semanage.
77 mkdir -pv %{BUILDROOT}/etc/bash_completion.d
78 install -m 755 %{DIR_SOURCE}/semanage-bash-completion.sh %{BUILDROOT}/etc/bash_completion.d/
80 # Remove unneeded stuff.
81 rm -vrf %{BUILDROOT}/etc/{rc.d,xdg,sysconfig}
83 # Fix absolute symlink
84 ln -svf ../../sbin/load_policy %{BUILDROOT}/usr/sbin/load_policy
86 # Remove unneeded sandbox stuff - they are to create graphical sandboxes.
87 rm -vrf %{BUILDROOT}/usr/sbin/seunshare
88 rm -vrf %{BUILDROOT}/usr/share/sandbox
89 rm -vrf %{BUILDROOT}/usr/share/man/man5/seunshare.5
90 rm -vrf %{BUILDROOT}/usr/share/man/man8/sandbox.8
97 package python-%{name}
98 summary = SELinux policy core python utilities.
99 description = %{summary}
102 policycoreutils>=%{thisver}
105 python-selinux>=2.1.7-3
114 /usr/bin/sepolgen-ifgen
115 /usr/bin/sepolgen-ifgen-attr-helper
118 /usr/share/man/man1/audit2allow.1
119 /usr/share/man/man1/audit2why.1
120 /usr/share/man/man8/chcat.8
121 /usr/share/man/man8/sandbox.8
122 /usr/share/man/man8/semanage.8