forked from semios/ports
Compare commits
1
Commits
multimedia
...
account
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
c1d9eebc2b |
@@ -0,0 +1,21 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"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": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
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")
|
||||||
Reference in New Issue
Block a user