From 9ea4e05127e7aaf79a58f98076288b25973e949f Mon Sep 17 00:00:00 2001 From: dacctal Date: Fri, 10 Jul 2026 10:49:55 +0000 Subject: backup --- .config/pkgit/repos/busybox.lua | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .config/pkgit/repos/busybox.lua (limited to '.config/pkgit/repos/busybox.lua') diff --git a/.config/pkgit/repos/busybox.lua b/.config/pkgit/repos/busybox.lua new file mode 100644 index 0000000..2e4f8c3 --- /dev/null +++ b/.config/pkgit/repos/busybox.lua @@ -0,0 +1,38 @@ +return { + url = "https://git.busybox.net/busybox/", + targets = { + default = { + build = function() + e,h,c = os.execute("make defconfig") + if c ~= 0 then + return c + end + e,h,c = os.execute("sed -i 's/CONFIG_TC=y/CONFIG_TC=n/' .config") + if c ~= 0 then + print("Configuration Failure: ", c, type(c)) + print("GIVEN UP") + return c + end + e,h,c = os.execute("sed -i 's/# CONFIG_TC is not set/CONFIG_TC=n/' .config") + if c ~= 0 then + print("Configuration Failure: ", c, type(c)) + print("GIVEN UP") + return c + end + e,h,c = os.execute("make") + if c ~= 0 then + print("Compilation Error: ", c, type(c)) + print("GIVEN UP") + return c + end + return 0 + end, + install = function() + return os.execute("make CONFIG_PREFIX="..prefix.." install") + end, + uninstall = function() + return os.execute("make CONFIG_PREFIX="..prefix.." uninstall") + end, + } + } +} \ No newline at end of file -- cgit v1.2.3