36 lines
713 B
Python
36 lines
713 B
Python
import os
|
|
|
|
import lib.rust as rust
|
|
from lib.make import *
|
|
|
|
|
|
version("0.2.15")
|
|
description("A memory safe implementation of sudo.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://trifectatechfoundation/sudo-rs#v0.2.15", "rust")
|
|
|
|
builddep("shortcut/rust")
|
|
builddep("libpam-dev @target")
|
|
|
|
|
|
def build():
|
|
rust.build()
|
|
|
|
on_build(build)
|
|
|
|
|
|
configdir = os.getcwd() + "/config"
|
|
|
|
def pack(composer):
|
|
os.chdir(rust.artifacts_dir())
|
|
composer.makedir("bin")
|
|
composer.add("sudo", "bin/sudo")
|
|
composer.add("visudo", "bin/visudo")
|
|
composer.makedir("share")
|
|
composer.add(configdir, "share/config")
|
|
|
|
package("sudo")
|
|
dep("semi-libc @same-arch")
|
|
dep("libpam @same-arch")
|
|
on_pack(pack)
|