EnglishFrenchSpanish

OnWorks favicon

dh_cme_upgradep - Online in the Cloud

Run dh_cme_upgradep in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dh_cme_upgradep that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dh_cme_upgrade - add cme based configuration merge

SYNOPSIS


dh_cme_upgrade [ debhelper options ] [ -p pkg ]

DESCRIPTION


dh_cme_upgrade is experimental

dh_cme_upgrade is a debhelper that will modify the package script to merge configuration
on package upgrade. This merge is based on cme from Config::Model and will merge user's
customisations with maintainer's configuration updates. This provides another way to
preserve users modifications during upgrades.

Configuration information used by cme for upgrade are specified in a configuration file
(see below)

Configuration information is specified in a configuration model. It must be provided by
another package like "libconfig-model-lcdproc-perl"

REQUIREMENTS


For this program to work, package maintainer must make sure that:

· "*.postinst", "*.postrm" and "*.config" have a "#DEBHELPER#" line (if these files
exist)

· "control" file has a dependency on "${misc:Depends}"

· Configuration files upgraded by "cme" must not be conffiles. Any default configuration
file provided by upstream must not be installed directly in "/etc". They should be
installed in "/usr/share/doc/" for reference. "cme" will create a default
configuration file during package installation.

OPTIONS


This program accepts all debhelper options, including the "-p" option to specify which
package(s) to act on.

Usage


"dh_cme_upgrade" is designed be called in the rules file via the dh command:

%:
dh --with cme_upgrade

No options can be passed to "dh_cme_upgrade". Its configuration must be specified in
"debian/*.config_model" file. This file contains several lines, each in the form of "key:
value".

Here are the possible keys:

cme-app-name
Specifies the application or model name (X la "Config::Model") that will be used to
perform the upgrade. (mandatory)

cme-model-package
Specifies the debian package that provide the model specified by "cme-app-name".
(mandatory)

cme-model-version
Specifies the minimal version of the package that provides the model. (optional)

cme-command
Specify the command passed to cme. Defaults to "migrate". Another useful value is
"fix" which will migrate and fix the configuration file.

cme-options
Specify a list of options or command that will be passed verbatim to cme during
upgrade. (optional)

cme-purge
Specify the configuration files or directory to be removed when purging the package.
E.g "/etc/LCDd.conf*" or "/etc/java/". Several files or directory can be purged by
using a shell glob. If this option is empty, configuration files handled by cme will
be left as-is after a purge.

cme-conf-target
Specifies where the target configuration files is expected. Defaults to "/etc". This
parameter is used to create a message to inform user who don't want automatic upgrade
where to find the original configuration file (in "/usr/share/doc/package_name") and
where to copy it (in "/cme-conf-target").

Examples


Here's a possible configuration for openssh server:

$ cat debian/openssh-server.config-model
cme-app-name: sshd
cme-model-package: lib-config-model-openssh-perl
cme-model-version: 1.206

For lcdproc:

$ cat debian/lcdproc.config-model
cme-app-name: lcdproc
cme-package: libconfig-model-lcdproc-perl
cme-model-version: 2.040
# required to upgrade LCDd.conf from upstream configuration
cme-options: -force
cme-purge: /etc/LCDd.conf*

For Popcon:

$ cat debian/popcon.config-model
cme-app-name: popcon
cme-model-package: libconfig-model-perl

debian files setup


"dh_cme_upgrade" will work only if:

· "control" file contains a "${misc:Depends}" variable in "Depends" line

· If present, "postinst" script contains a "#DEBHELPER#" line to insert generated
postinst snippet

ENVIRONMENT


This program will exit(0) if "DH_NO_ACT" is set or if "DEB_BUILD_OPTIONS" contains
"noconfigmodel".

Use dh_cme_upgradep online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 2
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • 3
    Xtreme Download Manager
    Xtreme Download Manager
    The project has a new home now:
    https://xtremedownloadmanager.com/ For
    developers:
    https://github.com/subhra74/xdm Xtreme
    Download Manager is a powerful tool t...
    Download Xtreme Download Manager
  • 4
    TTGO VGA32 Lite
    TTGO VGA32 Lite
    Features:4:3 and 16:9 low resolution
    VGA outputPS/2 keyboard and mouse
    inputText-based user interface (TUI)
    with dialog managerPartial Unicode
    supportSlave dis...
    Download TTGO VGA32 Lite
  • 5
    Clover EFI bootloader
    Clover EFI bootloader
    Project has moved to
    https://github.com/CloverHackyColor/CloverBootloader..
    Features:Boot macOS, Windows, and Linux
    in UEFI or legacy mode on Mac or PC with
    UE...
    Download Clover EFI bootloader
  • 6
    unitedrpms
    unitedrpms
    Join us in Gitter!
    https://gitter.im/unitedrpms-people/Lobby
    Enable the URPMS repository in your
    system -
    https://github.com/UnitedRPMs/unitedrpms.github.io/bl...
    Download unitedrpms
  • More »

Linux commands

Ad