Add package: nldev

This commit is contained in:
PedroEdiaz
2024-07-18 15:05:32 +00:00
parent 99e029fe46
commit ac00b82a9b
2 changed files with 35 additions and 0 deletions

27
core/nldev.d/Makefile Normal file
View File

@@ -0,0 +1,27 @@
package=nldev
version=662ba24641d02fd93e6a5e43041805ce2bee9328
pkgver=${version}_0
description=netlink device manager
homepage=http://r-36.net/scm/nldev/log.html
license=MIT/X Consorium License
SOURCES = \
${package}
FILES = \
files/config.h
include ../../Makefile
${package}:
export url=git://r-36.net pkg=$@ commit=${version} && ${GITCLONE}
${SHA256D} "c33daf0cf87c57940b16dce3727cea86432a1a48021212bccd5a6e5324ac0a2e"
prepare: ${SOURCES}
mv ${package} build
mv -f files/config.h build/
root:
${MAKE}
install -Dm 755 nldev "${root}/usr/bin/nldev"
install -Dm 644 nldev.8 "${root}/usr/share/man/man8/nldev.8"

View File

@@ -0,0 +1,8 @@
static const Rule rules[] = {
/* ACTION SUBSYSTEM other env variables command to run */
{ "add", NULL, "DEVNAME", "/bin/smdev" },
{ "add", NULL, NULL, "/usr/libexec/libudev-zero/helper" },
{ "remove", NULL, NULL, "/usr/libexec/libudev-zero/helper" },
{ "bind", NULL, NULL, "/usr/libexec/libudev-zero/helper" },
{ "change", NULL, NULL, "/usr/libexec/libudev-zero/helper" },
};