move hidepid to separate package

This commit is contained in:
Grzegorz Kowalski 2024-03-11 19:08:10 +01:00
parent b5a3287410
commit 784929a030
4 changed files with 17 additions and 9 deletions

View File

@ -29,6 +29,11 @@ OS_TOOLS = " \
nano \
"
# system hardening
HARDENING = " \
hidepid \
"
# helium base packages
HELIUM_BASE = " \
"

View File

@ -1,9 +0,0 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI = "file://hidepid.sh"
S = "${WORKDIR}"
do_install:append () {
install -m 0755 ${WORKDIR}/hidepid.sh ${D}${sysconfdir}/init.d
update-rc.d -r ${D} hidepid.sh start 10 S .
}

View File

@ -0,0 +1,12 @@
SUMMARY = "hidepid - hide other users' processes from /proc"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://hidepid.sh"
DEPENDS = "update-rc.d-native"
do_install() {
install -D -m 0755 ${WORKDIR}/hidepid.sh ${D}${sysconfdir}/init.d/hidepid.sh
update-rc.d -r ${D} hidepid.sh start 10 S .
}