mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -4,6 +4,7 @@ config BR2_PACKAGE_RESTORECOND
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on !BR2_STATIC_LIBS # libselinux
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
|
||||
select BR2_PACKAGE_DBUS
|
||||
select BR2_PACKAGE_DBUS_GLIB
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
@@ -15,7 +16,7 @@ config BR2_PACKAGE_RESTORECOND
|
||||
|
||||
https://github.com/SELinuxProject/selinux/wiki/Releases
|
||||
|
||||
comment "restorecond needs a toolchain w/ wchar, threads, dynamic library"
|
||||
comment "restorecond needs a toolchain w/ wchar, threads, dynamic library, gcc >= 5"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
|
||||
BR2_STATIC_LIBS
|
||||
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
||||
|
||||
54
package/restorecond/S02restorecond
Normal file
54
package/restorecond/S02restorecond
Normal file
@@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON=restorecond
|
||||
PIDFILE=/var/run/$DAEMON.pid
|
||||
|
||||
RESTORECOND_ARGS=""
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
||||
start()
|
||||
{
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
||||
-- $RESTORECOND_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p $PIDFILE -R TERM/30/KILL/5 -n $DAEMON
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
rm -f "$PIDFILE"
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart()
|
||||
{
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart)
|
||||
"$1";;
|
||||
reload)
|
||||
restart;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
@@ -1,5 +1,5 @@
|
||||
# https://github.com/SELinuxProject/selinux/wiki/Releases
|
||||
sha256 82ca45099685a45d718f11f8859963c1ba83d98e510312cbf0b7dc5664c60ad0 restorecond-3.1.tar.gz
|
||||
sha256 218c3d8873f31764e3c82d53ac713c0c9faaa07caf42ed7184e93ca2b27d8f27 restorecond-3.3.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 COPYING
|
||||
sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 COPYING
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RESTORECOND_VERSION = 3.1
|
||||
RESTORECOND_SITE = https://github.com/SELinuxProject/selinux/releases/download/20200710
|
||||
RESTORECOND_VERSION = 3.3
|
||||
RESTORECOND_SITE = https://github.com/SELinuxProject/selinux/releases/download/$(RESTORECOND_VERSION)
|
||||
RESTORECOND_LICENSE = GPL-2.0
|
||||
RESTORECOND_LICENSE_FILES = COPYING
|
||||
|
||||
@@ -27,8 +27,8 @@ define RESTORECOND_BUILD_CMDS
|
||||
endef
|
||||
|
||||
define RESTORECOND_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 0755 -D $(@D)/restorecond.init \
|
||||
$(TARGET_DIR)/etc/init.d/S20restorecond
|
||||
$(INSTALL) -m 0755 -D package/restorecond/S02restorecond \
|
||||
$(TARGET_DIR)/etc/init.d/S02restorecond
|
||||
endef
|
||||
|
||||
define RESTORECOND_INSTALL_INIT_SYSTEMD
|
||||
|
||||
Reference in New Issue
Block a user