forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b78c48d8e | ||
|
|
f24ea2d4bf | ||
|
|
b4aa642b52 | ||
|
|
9eb4453f3a | ||
|
|
132c47e419 | ||
|
|
596b055467 | ||
|
|
4b842d43be | ||
|
|
7f1ee4b598 | ||
|
|
15eb054209 | ||
|
|
16a1087785 |
+7
-1
@@ -23,7 +23,13 @@ class PkgComposer:
|
|||||||
|
|
||||||
def write_manifest(self, manifest: dict):
|
def write_manifest(self, manifest: dict):
|
||||||
with open(self.workdir + "/PkgManifest.json", "w") as f:
|
with open(self.workdir + "/PkgManifest.json", "w") as f:
|
||||||
json.dump(manifest, f, indent=4)
|
json.dump(manifest, f)
|
||||||
|
|
||||||
|
def write_links(self, links: list[dict]):
|
||||||
|
with open(self.workdir + "/_links", "w") as f:
|
||||||
|
for link in links:
|
||||||
|
json.dump(link, f)
|
||||||
|
f.write("\n")
|
||||||
|
|
||||||
def compose(self):
|
def compose(self):
|
||||||
shutil.make_archive(self.pkgfile, _archive_format, self.workdir)
|
shutil.make_archive(self.pkgfile, _archive_format, self.workdir)
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/crypto/x509/x509_def.c
|
||||||
|
+++ b/crypto/x509/x509_def.c
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
|
||||||
|
// TODO(fork): cleanup
|
||||||
|
|
||||||
|
-#define OPENSSLDIR "/etc/ssl"
|
||||||
|
+#define OPENSSLDIR "/var/config/ssl"
|
||||||
|
|
||||||
|
#define X509_CERT_AREA OPENSSLDIR
|
||||||
|
#define X509_CERT_DIR OPENSSLDIR "/certs"
|
||||||
@@ -3,8 +3,8 @@ import os
|
|||||||
import lib.cpp as cpp
|
import lib.cpp as cpp
|
||||||
from lib.make import *
|
from lib.make import *
|
||||||
|
|
||||||
version("5.0.0")
|
version("5.1.0")
|
||||||
source_url("https://github.com/aws/aws-lc/archive/refs/tags/v5.0.0.tar.gz")
|
source_url("https://github.com/aws/aws-lc/archive/refs/tags/v5.1.0.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
VERSION = "5.48"
|
||||||
|
|
||||||
|
version(VERSION)
|
||||||
|
source_git("https://github.com/file/file.git", "FILE5_48")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
subprocess.run(["autoreconf", "-fiv"], check=True)
|
||||||
|
cpp.configure(["--prefix=/", f"--datadir=/share/file"])
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack_magic_db(composer):
|
||||||
|
composer.add_dir(f"share/file", "share")
|
||||||
|
|
||||||
|
|
||||||
|
package("file-magic-db")
|
||||||
|
arch_any()
|
||||||
|
link("share/misc/magic.mgc", "/share/file/misc/magic.mgc")
|
||||||
|
on_pack(pack_magic_db)
|
||||||
|
|
||||||
|
|
||||||
|
package("libmagic")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("file-magic-db (same-version) @any")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
package("libmagic-dev")
|
||||||
|
dep("libmagic (same)")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
|
|
||||||
|
package("file")
|
||||||
|
dep("libmagic (same)")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("3.6.0")
|
||||||
|
source_url(
|
||||||
|
"https://github.com/libffi/libffi/releases/download/v3.6.0/libffi-3.6.0.tar.gz"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
"--enable-portable-binary",
|
||||||
|
"--disable-multi-os-directory",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("libffi")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
package("libffi-dev")
|
||||||
|
dep("libffi (same)")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
@@ -107,11 +107,11 @@ def run_build_package(package: str):
|
|||||||
"name": pkgname,
|
"name": pkgname,
|
||||||
"version": pkgver,
|
"version": pkgver,
|
||||||
"arch": pkgarch,
|
"arch": pkgarch,
|
||||||
"links": pkginfo[lib.make._key_links],
|
|
||||||
"dependencies": pkginfo[lib.make._key_dependencies],
|
"dependencies": pkginfo[lib.make._key_dependencies],
|
||||||
"provides": pkginfo[lib.make._key_provides],
|
"provides": pkginfo[lib.make._key_provides],
|
||||||
}
|
}
|
||||||
composer.write_manifest(manifest)
|
composer.write_manifest(manifest)
|
||||||
|
composer.write_links(pkginfo[lib.make._key_links])
|
||||||
composer.compose()
|
composer.compose()
|
||||||
|
|
||||||
# Build success
|
# Build success
|
||||||
|
|||||||
Reference in New Issue
Block a user