Packaging guide
How your product becomes a Priente-OS package: archive, manifest, rules.
How it works
- You upload your release archive (
.tar.gz,.tgz,.taror.zip) and apriente-package.jsonmanifest. - The server only reads the archive: none of your scripts, build steps or install hooks ever run. The package (
.ppk) is assembled on the server from the manifest's mapping, owned by root, with permissions the server decides. - Every file's SHA-256, your programs' architecture and your service units are checked; any problem is listed right away, all at once.
- The Priente team reviews the version; once approved, it is signed with Priente's package key and published to the channel you chose (feature or stable). Mirrors pick it up within minutes.
- Priente-OS systems install it with
priente-fetch install <name>; the kernel runs signed programs only.
priente-package.json
At the archive's root (or in its single top directory), or uploaded separately. Unknown fields are refused.
{
"format": 1,
"name": "acme-agent",
"version": "1.4.2",
"arch": "amd64",
"about": "Acme monitoring agent",
"requires": ["postgresql-16"],
"files": [
{"src": "bin/acme-agent", "dst": "/usr/lib/acme-agent/acme-agent"},
{"src": "web/", "dst": "/usr/lib/acme-agent/www/"},
{"src": "conf/acme.conf", "dst": "/etc/acme-agent/acme.conf"},
{"src": "units/acme-agent.service", "dst": "/usr/lib/systemd/system/acme-agent.service"}
],
"dirs": ["/var/lib/acme-agent"],
"enable": ["acme-agent.service"]
}
name- Your approved project name (it starts with your namespace).
version- Starts with a digit,
[A-Za-z0-9.+~:-]. Each version must be greater than the previous one; an uploaded version number can never be used again. archamd64,arm64orriscv64. Every ELF file must be 64-bit for it.filessrcis a path of the archive; asrcending in/copies the whole directory belowdst/.modeis optional (at most0755); the default is 0755 for programs and 0644 for the rest.dirs- Empty directories to create.
enable- Units started at installation and at every boot.
requires- Operating system packages of the repository, or your own approved projects.
Rules
- Files go only below
/usr/lib/<project>/,/etc/<project>/,/var/lib/<project>/; units to/usr/lib/systemd/system/<project>[-name].service. Programs may only be below/usr/lib/<project>/. - No symbolic or hard links, device files, setuid/setgid, group- or world-writable files, kernel modules.
/usr/bin, the base system, boot files,sysupdate.d,trust.dand the like are off limits. /etc/<project>is persistent: it gets your defaults at the first installation, then the administrator's changes are kept./var/lib/<project>is persistent too.- Units are read with pinit's rules: only
[Unit],[Service],[Install];ExecStart=is required, with an absolute path; the+/!prefixes,Alias=andConflicts=with system services are refused. Keys pinit does not know are shown as warnings (they have no effect). - There are no install scripts: your program prepares its first start itself (e.g.
ExecStartPre=/usr/lib/<project>/setup). - Your product's own updater cannot work on Priente-OS (an unsigned binary does not run); updates come as new versions through this portal.
- Your programs run against the base system's libraries. Ship any other library below
/usr/lib/<project>/(rpath, orEnvironment=LD_LIBRARY_PATH=…in the unit) or link statically; shared libraries are signed too.