|
@@ -13,31 +13,28 @@ package("util-linux")
|
|
|
|
|
|
if is_plat("macosx") then
|
|
if is_plat("macosx") then
|
|
add_extsources("brew::util-linux")
|
|
add_extsources("brew::util-linux")
|
|
- else
|
|
|
|
- add_deps("ncurses", "zlib")
|
|
|
|
- end
|
|
|
|
-
|
|
|
|
- if is_plat("linux") then
|
|
|
|
|
|
+ elseif is_plat("linux") then
|
|
add_extsources("apt::util-linux", "pacman::util-linux")
|
|
add_extsources("apt::util-linux", "pacman::util-linux")
|
|
|
|
+ add_deps("ncurses", "zlib")
|
|
end
|
|
end
|
|
|
|
|
|
- add_configs("ipcs", { description = "Enable ipcs.", default = false, type = "boolean"})
|
|
|
|
- add_configs("ipcrm", { description = "Enable ipcrm.", default = false, type = "boolean"})
|
|
|
|
- add_configs("wall", { description = "Enable wall.", default = false, type = "boolean"})
|
|
|
|
- add_configs("libuuid", { description = "Enable libuuid.", default = false, type = "boolean"})
|
|
|
|
- add_configs("libmount", { description = "Enable libmount.", default = false, type = "boolean"})
|
|
|
|
- add_configs("libsmartcols", { description = "Enable libsmartcols.", default = false, type = "boolean"})
|
|
|
|
- add_configs("use-tty-group", { description = "Enable use-tty-group.", default = false, type = "boolean"})
|
|
|
|
- add_configs("kill", { description = "Enable kill.", default = false, type = "boolean"})
|
|
|
|
- add_configs("cal", { description = "Enable cal.", default = false, type = "boolean"})
|
|
|
|
- add_configs("systemd", { description = "Enable systemd.", default = false, type = "boolean"})
|
|
|
|
- add_configs("chfn-chsh", { description = "Enable chfn-chsh.", default = false, type = "boolean"})
|
|
|
|
- add_configs("login", { description = "Enable login.", default = false, type = "boolean"})
|
|
|
|
- add_configs("su", { description = "Enable su.", default = false, type = "boolean"})
|
|
|
|
- add_configs("mount", { description = "Enable mount.", default = false, type = "boolean"})
|
|
|
|
- add_configs("runuser", { description = "Enable runuser.", default = false, type = "boolean"})
|
|
|
|
- add_configs("makeinstall-chown", { description = "Enable makeinstall-chown.", default = false, type = "boolean"})
|
|
|
|
- add_configs("makeinstall-setuid", { description = "Enable makeinstall-setuid.", default = false, type = "boolean"})
|
|
|
|
|
|
+ add_configs("ipcs", {description = "Enable ipcs.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("ipcrm", {description = "Enable ipcrm.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("wall", {description = "Enable wall.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("libuuid", {description = "Enable libuuid.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("libmount", {description = "Enable libmount.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("libsmartcols", {description = "Enable libsmartcols.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("use-tty-group", {description = "Enable use-tty-group.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("kill", {description = "Enable kill.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("cal", {description = "Enable cal.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("systemd", {description = "Enable systemd.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("chfn-chsh", {description = "Enable chfn-chsh.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("login", {description = "Enable login.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("su", {description = "Enable su.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("mount", {description = "Enable mount.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("runuser", {description = "Enable runuser.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("makeinstall-chown", {description = "Enable makeinstall-chown.", default = false, type = "boolean"})
|
|
|
|
+ add_configs("makeinstall-setuid", {description = "Enable makeinstall-setuid.", default = false, type = "boolean"})
|
|
|
|
|
|
on_load(function (package)
|
|
on_load(function (package)
|
|
package:addenv("PATH", "bin")
|
|
package:addenv("PATH", "bin")
|
|
@@ -48,7 +45,7 @@ package("util-linux")
|
|
"--disable-silent-rules",
|
|
"--disable-silent-rules",
|
|
"--without-python",
|
|
"--without-python",
|
|
"--without-systemd",
|
|
"--without-systemd",
|
|
- "--with-bashcompletiondir=" .. package:installdir("share/bash-completion")}
|
|
|
|
|
|
+ "--with-bashcompletiondir=" .. path.join(package:installdir("share"), "bash-completion")}
|
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
|
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
|
|
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
|
|
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
|
|
if package:debug() then
|
|
if package:debug() then
|
|
@@ -68,4 +65,3 @@ package("util-linux")
|
|
end
|
|
end
|
|
import("package.tools.autoconf").install(package, configs)
|
|
import("package.tools.autoconf").install(package, configs)
|
|
end)
|
|
end)
|
|
-
|
|
|