Add pkg-provides to FreeBSD.
This commit is contained in:
parent
904b12ad7e
commit
751bbe31e9
91
ansible/roles/package_manager/files/pkg.conf
Normal file
91
ansible/roles/package_manager/files/pkg.conf
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
# System-wide configuration file for pkg(8)
|
||||||
|
# For more information on the file format and
|
||||||
|
# options please refer to the pkg.conf(5) man page
|
||||||
|
|
||||||
|
# Note: you don't need to have a pkg.conf file. Many installations
|
||||||
|
# will work well with no pkg.conf at all or with an empty pkg.conf
|
||||||
|
# (other than comment lines). You can also override any of these
|
||||||
|
# settings from the environment.
|
||||||
|
|
||||||
|
# Configuration options -- default values.
|
||||||
|
|
||||||
|
#PKG_DBDIR = "/var/db/pkg";
|
||||||
|
#PKG_CACHEDIR = "/var/cache/pkg";
|
||||||
|
#PORTSDIR = "/usr/ports";
|
||||||
|
#INDEXDIR = "";
|
||||||
|
#INDEXFILE = "INDEX-10"; # Autogenerated
|
||||||
|
#HANDLE_RC_SCRIPTS = false;
|
||||||
|
#DEFAULT_ALWAYS_YES = false;
|
||||||
|
#ASSUME_ALWAYS_YES = false;
|
||||||
|
#REPOS_DIR [
|
||||||
|
# "/etc/pkg/",
|
||||||
|
# "/usr/local/etc/pkg/repos/",
|
||||||
|
#]
|
||||||
|
#PLIST_KEYWORDS_DIR = "";
|
||||||
|
#SYSLOG = true;
|
||||||
|
#ABI = "freebsd:10:x86:64"; # Autogenerated
|
||||||
|
#DEVELOPER_MODE = false;
|
||||||
|
#VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.xz";
|
||||||
|
#FETCH_RETRY = 3;
|
||||||
|
#PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
|
||||||
|
#PKG_ENABLE_PLUGINS = true;
|
||||||
|
#PLUGINS [
|
||||||
|
#]
|
||||||
|
PLUGINS [
|
||||||
|
"provides"
|
||||||
|
]
|
||||||
|
#DEBUG_SCRIPTS = false;
|
||||||
|
#PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
|
||||||
|
#PERMISSIVE = false;
|
||||||
|
#REPO_AUTOUPDATE = true;
|
||||||
|
#NAMESERVER = "";
|
||||||
|
#HTTP_USER_AGENT = "Custom_User_Manager";
|
||||||
|
#EVENT_PIPE = "";
|
||||||
|
#FETCH_TIMEOUT = 30;
|
||||||
|
#UNSET_TIMESTAMP = false;
|
||||||
|
#SSH_RESTRICT_DIR = "";
|
||||||
|
#PKG_ENV {
|
||||||
|
#}
|
||||||
|
#PKG_SSH_ARGS = "";
|
||||||
|
#DEBUG_LEVEL = 0;
|
||||||
|
#ALIAS {
|
||||||
|
#}
|
||||||
|
#CUDF_SOLVER = "";
|
||||||
|
#SAT_SOLVER = "";
|
||||||
|
#RUN_SCRIPTS = true;
|
||||||
|
#CASE_SENSITIVE_MATCH = false;
|
||||||
|
#IP_VERSION = 0
|
||||||
|
|
||||||
|
# Sample alias settings
|
||||||
|
ALIAS : {
|
||||||
|
all-depends: query %dn-%dv,
|
||||||
|
annotations: info -A,
|
||||||
|
build-depends: info -qd,
|
||||||
|
cinfo: info -Cx,
|
||||||
|
comment: query -i "%c",
|
||||||
|
csearch: search -Cx,
|
||||||
|
desc: query -i "%e",
|
||||||
|
download: fetch,
|
||||||
|
iinfo: info -ix,
|
||||||
|
isearch: search -ix,
|
||||||
|
prime-list: "query -e '%a = 0' '%n'",
|
||||||
|
prime-origins: "query -e '%a = 0' '%o'",
|
||||||
|
leaf: "query -e '%#r == 0' '%n-%v'",
|
||||||
|
list: info -ql,
|
||||||
|
noauto = "query -e '%a == 0' '%n-%v'",
|
||||||
|
options: query -i "%n - %Ok: %Ov",
|
||||||
|
origin: info -qo,
|
||||||
|
orphans: version -vRl\?,
|
||||||
|
provided-depends: info -qb,
|
||||||
|
rall-depends: rquery %dn-%dv,
|
||||||
|
raw: info -R,
|
||||||
|
rcomment: rquery -i "%c",
|
||||||
|
rdesc: rquery -i "%e",
|
||||||
|
required-depends: info -qr,
|
||||||
|
roptions: rquery -i "%n - %Ok: %Ov",
|
||||||
|
shared-depends: info -qB,
|
||||||
|
show: info -f -k,
|
||||||
|
size: info -sq,
|
||||||
|
unmaintained = "query -e '%m = \"ports@FreeBSD.org\"' '%o (%w)'",
|
||||||
|
runmaintained = "rquery -e '%m = \"ports@FreeBSD.org\"' '%o (%w)'",
|
||||||
|
}
|
@ -20,7 +20,15 @@
|
|||||||
loop:
|
loop:
|
||||||
- src: FreeBSD.conf
|
- src: FreeBSD.conf
|
||||||
dest: /usr/local/etc/pkg/repos/FreeBSD.conf
|
dest: /usr/local/etc/pkg/repos/FreeBSD.conf
|
||||||
|
- src: pkg.conf
|
||||||
|
dest: /usr/local/etc/pkg.conf
|
||||||
|
|
||||||
# - name: Replace all packages with packages from new repo
|
# - name: Replace all packages with packages from new repo
|
||||||
# command: pkg upgrade -f -y
|
# command: pkg upgrade -f -y
|
||||||
# when: changed_config.changed
|
# when: changed_config.changed
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- pkg-provides
|
||||||
|
state: present
|
||||||
|
Loading…
x
Reference in New Issue
Block a user