summarylogtreecommitdiffstats
path: root/selinux-refpolicy-arch.install
diff options
context:
space:
mode:
authorNicolas Iooss2015-12-20 19:08:20 +0100
committerNicolas Iooss2016-01-05 18:29:41 +0100
commit21a21b517c4aee0ec3bf397fbf3c05746eb59669 (patch)
treed1f84b9f7e268f3eda2d6e48ab3df369accf7732 /selinux-refpolicy-arch.install
parent7d5a14d4cdf927345934eb87835a738898426936 (diff)
downloadaur-21a21b517c4aee0ec3bf397fbf3c05746eb59669.tar.gz
Update to last refpolicy release
While at it, clean up the package building process.
Diffstat (limited to 'selinux-refpolicy-arch.install')
-rw-r--r--selinux-refpolicy-arch.install18
1 files changed, 5 insertions, 13 deletions
diff --git a/selinux-refpolicy-arch.install b/selinux-refpolicy-arch.install
index 3f2d8001293..7fa114395de 100644
--- a/selinux-refpolicy-arch.install
+++ b/selinux-refpolicy-arch.install
@@ -1,23 +1,15 @@
-## arg 1: the new package version
-## arg 2: the old package version
-
post_install() {
- cd /usr/share/selinux/refpolicy-arch/
echo ">>> Loading refpolicy-arch. Please wait ..."
- /bin/ls *.pp | /bin/grep -Ev "base.pp|enableaudit.pp" | /usr/bin/xargs /usr/sbin/semodule -s refpolicy-arch -b base.pp -i
- echo ">>> Relabeling filesystems. This may take some time. Please wait ..."
- /sbin/restorecon -r /
+ /usr/bin/semodule -s refpolicy-arch -i /usr/share/selinux/refpolicy-arch/*.pp
+ echo ">>> Relabeling the filesystem may be needed."
+ echo ">>> This can be done with: /usr/bin/restorecon -rF /"
}
post_upgrade() {
- cd /usr/share/selinux/refpolicy-arch/
- echo ">>> Reloading refpolicy-arch. Please wait ..."
- /bin/ls *.pp | /bin/grep -Ev "base.pp|enableaudit.pp" | /usr/bin/xargs /usr/sbin/semodule -s refpolicy-arch -b base.pp -i
- echo ">>> Relabeling filesystems. This may take some time. Please wait ..."
- /sbin/restorecon -r /
+ post_install
}
post_remove() {
- echo ">>> Removing refpolicy left-over files. Please wait ..."
+ echo ">>> Removing refpolicy left-over files."
/bin/rm -rf /etc/selinux/refpolicy-arch
}