+++ /dev/null
-# vim: set ts=4 sw=4 et:
-
-# AppArmor is not enabled in kernel, silently exit
-[ ! -d /sys/kernel/security/apparmor ] && return
-
-# Load config
-[ -r /etc/default/apparmor ] && . /etc/default/apparmor
-
-# Proceed to load profiles depending on user settings
-msg "Loading AppArmor profiles..."
-
-if [ -n "$APPARMOR" ]; then
- if [ "$APPARMOR" != "complain" -a "$APPARMOR" != "enforce" ]; then
- printf '! AppArmor set to %s - ignoring profiles\n' "$APPARMOR"
- return
- fi
-
- [ "$APPARMOR" = "complain" ] && AACOMPLAIN="-C"
-
- if [ -d /etc/apparmor.d -a -x /usr/bin/apparmor_parser ]; then
- apparmor_parser -a $AACOMPLAIN $(find /etc/apparmor.d -maxdepth 1 -type f ! -name '*.new-*_*')
- else
- printf '! AppArmor installation problem - ensure you have installed apparmor package\n'
- fi
-else
- printf '! AppArmor disabled - ignoring profiles\n'
-fi
+++ /dev/null
-case "$ACTION" in
-pre)
- # Fix incorrect path in /etc/default
- if [ -e /etc/default/apparmor/rc.apparmor ]; then
- mv /etc/default/apparmor/rc.apparmor /etc/default/rc.apparmor
- rm -rf /etc/default/apparmor
- mv /etc/default/rc.apparmor /etc/default/apparmor
- fi
- if [ -d /etc/default/apparmor ]; then
- rm -rf /etc/default/apparmor
- fi
- ;;
-esac
# the void-runit repository.
pkgname=66-void
version=20220308
-_version=20210314
revision=1
-wrksrc="void-runit-${_version}"
+_void_runit_version=20210314
+wrksrc="void-runit-${_void_runit_version}"
build_style=gnu-makefile
-short_desc="Void Linux runit scripts"
+short_desc="Void Linux base package, adapted for 66"
maintainer="mobinmob <mobinmob@disroot.org>"
license="CC0-1.0"
homepage="https://github.com/void-linux/void-runit"
-distfiles="https://github.com/void-linux/void-runit/archive/${_version}.tar.gz"
+distfiles="https://github.com/void-linux/void-runit/archive/${_void_runit_version}.tar.gz"
checksum=9ac95a14b5e1aedfcf0b093b8992b08316448ac1afb7fd26501ac43c4ebf3847
replaces="runit-void>=0"
vconf ${FILESDIR}/hostname
vconf ${FILESDIR}/os-release
vconf ${FILESDIR}/locale.conf
- vinstall ${FILESDIR}/apparmor 644 /etc/default/
- vinstall ${FILESDIR}/09-apparmor.sh 644 /etc/runit/core-services/
# Create symlinks for init and init utilities
ln -s /usr/bin/66 "${DESTDIR}"/usr/bin/init
for i in reboot poweroff halt shutdown;
do
ln -s /etc/66/${i} "${DESTDIR}"/usr/bin/${i}
done
-
}
-
-#66-void-apparmor_package() {
-# short_desc+=" - AppArmor initialization"
-# depends="${sourcepkg}-${version}_${revision}"
-# conf_files="/etc/default/apparmor"
-# pkg_install() {
-# vmove etc/default/apparmor
-# vmove etc/runit/core-services/09-apparmor.sh
-# }
-#}