diff options
author | Jonathan Bauer | 2019-08-07 11:34:35 +0200 |
---|---|---|
committer | Jonathan Bauer | 2019-08-07 11:34:35 +0200 |
commit | 8a090d4aff93d1ba69d7d4d8d89795270e85a4d6 (patch) | |
tree | 62220458d6c5a444cf4928dfce744283be8a092d | |
parent | [vmchooser2] add default xsessions.conf (diff) | |
download | mltk-8a090d4aff93d1ba69d7d4d8d89795270e85a4d6.tar.gz mltk-8a090d4aff93d1ba69d7d4d8d89795270e85a4d6.tar.xz mltk-8a090d4aff93d1ba69d7d4d8d89795270e85a4d6.zip |
[rdns] move rdns to its own module
-rw-r--r-- | core/modules/dhcpc-busybox/module.conf | 4 | ||||
-rw-r--r-- | core/modules/rdns/module.build | 15 | ||||
-rw-r--r-- | core/modules/rdns/module.conf | 4 | ||||
-rw-r--r-- | core/modules/rdns/rdns.c (renamed from core/rootfs/rootfs-stage32/rdns.c) | 0 | ||||
-rw-r--r-- | core/rootfs/rootfs-stage32/module.build | 3 | ||||
-rw-r--r-- | core/rootfs/rootfs-stage32/module.conf | 1 |
6 files changed, 22 insertions, 5 deletions
diff --git a/core/modules/dhcpc-busybox/module.conf b/core/modules/dhcpc-busybox/module.conf index d5d021fa..d8961801 100644 --- a/core/modules/dhcpc-busybox/module.conf +++ b/core/modules/dhcpc-busybox/module.conf @@ -1,2 +1,4 @@ #!/bin/bash -# Nothing +REQUIRED_MODULES=" + rdns +" diff --git a/core/modules/rdns/module.build b/core/modules/rdns/module.build new file mode 100644 index 00000000..1469a09f --- /dev/null +++ b/core/modules/rdns/module.build @@ -0,0 +1,15 @@ +#!/bin/bash + +fetch_source() { + : +} + +build() { + mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin" + gcc -o "$MODULE_BUILD_DIR/opt/openslx/bin/rdns" "$MODULE_DIR/rdns.c" || perror "Compiling rdns failed." +} + +post_copy() { + : +} + diff --git a/core/modules/rdns/module.conf b/core/modules/rdns/module.conf new file mode 100644 index 00000000..049b374f --- /dev/null +++ b/core/modules/rdns/module.conf @@ -0,0 +1,4 @@ +#!/bin/bash +REQUIRED_BINARIES=" + rdns +" diff --git a/core/rootfs/rootfs-stage32/rdns.c b/core/modules/rdns/rdns.c index 218f7400..218f7400 100644 --- a/core/rootfs/rootfs-stage32/rdns.c +++ b/core/modules/rdns/rdns.c diff --git a/core/rootfs/rootfs-stage32/module.build b/core/rootfs/rootfs-stage32/module.build index fe843ce7..8f98fc6d 100644 --- a/core/rootfs/rootfs-stage32/module.build +++ b/core/rootfs/rootfs-stage32/module.build @@ -15,9 +15,6 @@ build() { local FILELIST="list_binaries_and_files" [ -e "${FILELIST}" ] && rm "${FILELIST}" - # Compile rdns - mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin" - gcc -o "$MODULE_BUILD_DIR/opt/openslx/bin/rdns" "$MODULE_DIR/rdns.c" || perror "Compiling rdns failed." # Get ldconfig mkdir -p "$MODULE_BUILD_DIR/sbin" local LOC=$(which ldconfig.real) diff --git a/core/rootfs/rootfs-stage32/module.conf b/core/rootfs/rootfs-stage32/module.conf index 4235b999..409af2ba 100644 --- a/core/rootfs/rootfs-stage32/module.conf +++ b/core/rootfs/rootfs-stage32/module.conf @@ -37,7 +37,6 @@ REQUIRED_BINARIES=" bc dirname mkdosfs - rdns find rpcbind rpc.statd |