forked from semios/ports
Compare commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
d6ebf1bd9b |
@@ -1,21 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"on_failure": "terminate",
|
|
||||||
"request": {
|
|
||||||
"method": "CreateUser",
|
|
||||||
"params": {
|
|
||||||
"username": "root",
|
|
||||||
"fullname": "System Administrator",
|
|
||||||
"host_uid": { "manual": 0 },
|
|
||||||
"description": "UNIX system administrator",
|
|
||||||
"secure_tags": ["Login", "CreateUser", "RemoveUser", "ReadSecret", "WriteSecret"],
|
|
||||||
"extra_records": {},
|
|
||||||
"defaults": {
|
|
||||||
"CliLoginShell": "/bin/sh"
|
|
||||||
},
|
|
||||||
"home_directory": "/home/root",
|
|
||||||
"groups": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
import os
|
|
||||||
import shutil
|
|
||||||
|
|
||||||
from lib import rust
|
|
||||||
from lib.make import *
|
|
||||||
|
|
||||||
version("0.1.0-alpha.1")
|
|
||||||
description("SemiOS system account service & utilities")
|
|
||||||
maintainer("sisungo <[email protected]>")
|
|
||||||
source_url("https://gitea.semilabs.org/semios/account/archive/0.1.0-alpha.1.tar.gz")
|
|
||||||
|
|
||||||
builddep("shortcut/rust")
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
|
||||||
os.makedirs("build_config", exist_ok=True)
|
|
||||||
shutil.copy2("../../init.json", "build_config/init.json")
|
|
||||||
rust.build(["--features", "embed_init_file"])
|
|
||||||
|
|
||||||
|
|
||||||
on_build(build)
|
|
||||||
|
|
||||||
|
|
||||||
def pack(composer):
|
|
||||||
os.chdir(rust.artifacts_dir())
|
|
||||||
composer.makedir("bin")
|
|
||||||
composer.makedir("libexec")
|
|
||||||
composer.addfile("account", "bin/account")
|
|
||||||
composer.addfile("accountd", "bin/accountd")
|
|
||||||
composer.addfile("auth_password", "libexec/auth_password")
|
|
||||||
|
|
||||||
|
|
||||||
package("account")
|
|
||||||
on_pack(pack)
|
|
||||||
dep("semi-libc @same-arch")
|
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
from lib.make import *
|
||||||
|
from lib import cpp, arch
|
||||||
|
|
||||||
|
|
||||||
|
version("1.0.30")
|
||||||
|
description("A cross-platform library to access USB devices.")
|
||||||
|
maintainer("sisungo <[email protected]>")
|
||||||
|
source_url("https://github.com/libusb/libusb/releases/download/v1.0.30/libusb-1.0.30.tar.bz2")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/autotools")
|
||||||
|
builddep("linux-dev @target")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure([
|
||||||
|
"--prefix=/",
|
||||||
|
f"--libdir={get_prefix('libusb')}/lib",
|
||||||
|
f"--includedir={get_prefix('libusb-dev')}/include",
|
||||||
|
"--disable-udev",
|
||||||
|
])
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
package("libusb")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
package("libusb-dev")
|
||||||
|
dep("libusb (same)")
|
||||||
|
dep("semi-libc-dev @same-arch")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
Reference in New Issue
Block a user