# $Id: pkg_replace.conf.in,v 1.2 2007/01/25 12:25:56 securedog Exp $ # Environment variables: string # # cf. pkg_add(1), pkg_replace(1), ports(7), packages(7) # #ifdef WITH_PKGSRC # PKGSRCDIR="/usr/pkgsrc" # PKGREPOSITORY="${PKGSRCDIR}/packages/All" # PACKAGEROOT="ftp://ftp.NetBSD.org" # PKG_SUFX=".tgz" #else # PORTSDIR="/usr/ports" # PKGREPOSITORY="${PORTSDIR}/packages/All" #ifdef WITH_OPENBSD # PACKAGEROOT="ftp://ftp.OpenBSD.org" # PKG_SUFX=".tgz" #else # PACKAGEROOT="ftp://ftp.FreeBSD.org" # PKG_SUFX=".tbz" #endif #endif # PKG_BACKUP_DIR="${PKGREPOSITORY}" # PKG_DBDIR="/var/db/pkg" # PKG_TMPDIR="/var/tmp" # PKGCOMPATDIR="/usr/local/lib/compat/pkg" # Alternative locations for pkg_install: string # # PKG_ADD="/usr/sbin/pkg_add" # PKG_CREATE="/usr/sbin/pkg_create" # PKG_DELETE="/usr/sbin/pkg_delete" # PKG_INFO="/usr/sbin/pkg_info" # Advanced settings: # # See the examples below. # # Hints: # * `Keys' match the package name or the package directory # e.g. # name = pkg_replace-VERSION, pkg_replace # directory = sysutils/pkg_replace # * `Keys' and `values' must be quoted # * Parentheses `{ }' may be replaced with `( );' # * Commas are optional # # Syntax: # string: # name='value ...' # # array: # name={ # 'key' [,] # ... # } # # hash: # name={ # 'key' => 'value' [,] # ... # } # PKG_REPLACE: string # # Options that are passed to pkg_replace(1) automatically. # # PKG_REPLACE="-bv -l /root/pkg_replace.log -L /var/log/pkg/" # IGNORE: array # # List of packages that do not use pkg_replace(1) to upgrade. # You can override this with the -f option. # # IGNORE= { # 'bsdpan-*' # 'perl' # 'xorg-libraries' # 'firefox-2.[0-9]*' # '*openoffice*' # } # USE_PKGS: array # # List of packages that prefer to use binary packages to upgrade. # # USE_PKGS= { # 'perl' # 'ruby' # 'python' # 'firefox' # '*openoffice*' # } # BEFOREBUILD: hash # BEFOREDEINSTALL: hash # AFTERINSTALL: hash # # Lists of commands that will be executed in the process of building, # installing and deinstalling. # # BEFOREBUILD= { # # Do 'cvs update' for each port # '*' => 'cvs update' #ifndef WITH_PKGSRC # # # Do 'make config' for each port # '*' => '${MAKE} config' #endif # } # # BEFOREDEINSTALL= { # # Run the script to stop the service, if any # '*' => 'cmd_stop_rc "$1"' # # # Record the installation # '*' => 'echo "`date +%Y-%m-%d`: delete: $1" >> /var/log/pkg/history' # # # Stop postfix # 'mail/postfix*' => '/usr/local/sbin/postfix stop' # } # # AFTERINSTALL= { # # Run the script to start the service, if any # '*' => 'cmd_start_rc "$1"' # # # Record the installation # '*' => 'echo "`date +%Y-%m-%d`: install: $1" >> /var/log/pkg/history' # # # Start postfix # 'mail/postfix*' => '/usr/local/sbin/postfix start' # } # MAKE_ARGS: hash # # List of options that are passed to make(1) automatically. # # MAKE_ARGS= { # 'xorg-server' => 'NO_SUID_XSERVER=yes' # 'editors/vim' => '-DWITH_GTK2 -DWITH_PERL -DWITH_RUBY -DWITH_PYTHON' # 'www/apache2*' => 'WITH_PROXY_MODULES=yes' # 'www/apache2*' => 'WITH_SUEXEC_MODULES=yes' # }