GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG_REPO_CREATE(3) FreeBSD Library Functions Manual PKG_REPO_CREATE(3)

pkg_repo_create, pkg_repo_create_new, pkg_repo_create_free, pkg_repo_create_set_output_dir, pkg_repo_create_set_create_filelist, pkg_repo_create_set_hash, pkg_repo_create_set_hash_symlink, pkg_repo_create_set_metafile, pkg_repo_create_set_signcreate repository of packages

library “libpkg”

#include <pkg.h>

struct pkg_repo_create *
pkg_repo_create_new();

void
pkg_repo_create_free(struct pkg_repo_create *);

bool
pkg_repo_create_set_output_dir(struct pkg_repo_create *, const char *);

void
pkg_repo_create_set_create_filelist(struct pkg_repo_create *, bool);

void
pkg_repo_create_set_hash(struct pkg_repo_create *, bool);

void
pkg_repo_create_set_hash_symlink(struct pkg_repo_create *, bool);

void
pkg_repo_create_set_metafile(struct pkg_repo_create *, const char *);

void
pkg_repo_create_set_sign(struct pkg_repo_create *, char **, int, pkg_password *);

int
pkg_repo_create(struct pkg_repo_create *, char *);

() Allocates a new struct pkg_repo_create * which should be freed by the caller using ().

() defined the output directory where to generate the data. By default it will be the path provided to the pkg_repo_create() function.

() Accept a boolean to define if a the file database should be created along with the metadata database (deprecated). Defaults to false.

() When creating the repository, move all the packages found into a "Hashed" subdirectory with the "hash" of the package appended to the name of the package. Defaults to false.

() Define the path to the metafile that will be used when creating the repository. If none is specified that it will fallback on the internal default.

() Define the signing mechanism, which will be used to sign the metadata of the repository. Defaults to none.

() Create a repository out of the packages found in the provided path

January 23, 2024 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.