From 7048109c0a2840957421588219d5a82eeda2d780 Mon Sep 17 00:00:00 2001
From: Cem Keylan
-Next: Rsync Repositories, Previous: Hooks, Up: Package Manager
2.4 Packaging System
@@ -64,6 +70,8 @@ package maintainer. Everything in the package directory will also be added to th
package database that is located on ’/var/db/cpt/installed’. These can be
patches, configuration files, etc.
Typically build files are shell scripts that run commands to prepare the source @@ -86,6 +94,8 @@ the build script exits on compilation error.
sources file is a list of files and sources that will be put to the build @@ -130,6 +140,7 @@ history pointer, git will checkout the relevant revision. So, added with their paths relative to the package directory.
+checksums file is generated by the cpt c pkg command. It is generated @@ -137,6 +148,8 @@ according to the order of the sources file. That’s why you shouldn’t it manually. The checksums file is created with the digests of the files using the sha256 algorithm.
+ +The version file includes the version of the software and the release number of @@ -157,6 +170,8 @@ drastic changes that require a rebuild Those can be,
When a version bump occurs, the release should be reset to 1.
+ +This is a list of dependencies that must be installed before a package build. You @@ -173,17 +188,23 @@ python test zlib + +
post-install files have the same requirements as the build script. They
will be run after the package is installed as root (or as the user if the user
has write permissions on CPT_ROOT
).
This plaintext file will be outputted with cat
after every package is
installed.
Test files are mainly for the repository maintainer to test the packages, and
@@ -191,10 +212,12 @@ will only run if the user has the CPT_TEST
variable set, or the bui
run with the -t or --test options. This script is run on the
build directory. It is run right after the build script is finished.
-Next: Rsync Repositories, Previous: Hooks, Up: Package Manager
+Next: Rsync Repositories, Previous: Hooks, Up: Package Manager [Contents]