Add ability to select usage of IPv4/IPv6 via config, repository config or command line
modified docs/pkg.8
@@ -33,6 +33,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -43,6 +44,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -171,6 +173,12 @@ will search the directory for per-repository configuration files.
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified docs/pkg.conf.5
@@ -266,6 +266,11 @@ How many workers are used for pkg-repo. If set to 0,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -313,6 +318,11 @@ This should be set to a path containing public key for this repository
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/fetch.c
@@ -362,6 +362,10 @@ start_ssh(struct pkg_repo *repo, struct url *u, off_t *sz)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -465,6 +469,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest, time_t *t
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -551,13 +556,23 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest, time_t *t
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h.in
@@ -144,6 +144,11 @@ typedef enum {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -357,7 +362,9 @@ typedef enum _pkg_flags {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1595,7 +1602,7 @@ typedef int(*pkg_event_cb)(void *, struct pkg_event *);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_config.c
@@ -1,4 +1,4 @@
| - | |
| + | |
|
|
|
|
|
@@ -315,6 +315,12 @@ static struct config_entry c[] = {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -409,7 +415,7 @@ disable_plugins_if_static(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -418,6 +424,7 @@ add_repo(const ucl_object_t *obj, struct pkg_repo *r, const char *rname)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -495,6 +502,20 @@ add_repo(const ucl_object_t *obj, struct pkg_repo *r, const char *rname)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -538,10 +559,23 @@ add_repo(const ucl_object_t *obj, struct pkg_repo *r, const char *rname)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -555,7 +589,7 @@ walk_repo_obj(const ucl_object_t *obj, const char *file)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -563,7 +597,7 @@ walk_repo_obj(const ucl_object_t *obj, const char *file)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -587,13 +621,13 @@ load_repo_file(const char *repofile)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -614,26 +648,26 @@ load_repo_files(const char *repodir)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -657,7 +691,7 @@ pkg_compiled_for_same_os_major(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -681,6 +715,12 @@ pkg_init(const char *path, const char *reposdir)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -933,7 +973,7 @@ pkg_init(const char *path, const char *reposdir)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -315,6 +315,11 @@ struct pkg_repo_ops {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -344,6 +349,8 @@ struct pkg_repo {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified src/globals.c
@@ -42,3 +42,4 @@ set_globals(void)
|
|
|
|
|
|
| + | |
modified src/main.c
@@ -164,9 +164,9 @@ usage(const char *conffile, const char *reposdir, FILE *out, enum pkg_usage_reas
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -181,12 +181,14 @@ usage(const char *conffile, const char *reposdir, FILE *out, enum pkg_usage_reas
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -559,6 +561,7 @@ main(int argc, char **argv)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -576,6 +579,8 @@ main(int argc, char **argv)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -600,9 +605,9 @@ main(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -634,6 +639,12 @@ main(int argc, char **argv)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -691,7 +702,7 @@ main(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/pkg.conf.sample
@@ -49,6 +49,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|