feat: add package account #13

Open
sisungo wants to merge 1 commits from sisungo/ports:account into main
2 changed files with 56 additions and 0 deletions
Showing only changes of commit c1d9eebc2b - Show all commits
+21
View File
@@ -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": []
}
}
}
]
+35
View File
@@ -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")