How to build a .deb for a plugin (0.4 only)

    • Offizieller Beitrag

    Here a some quick tips on how to build the .deb for a plugin. Probably lots of ways to do this but this is what I did to make a new cups .deb as an example.


    1. Install the needed packages

    Code
    apt-get install fakeroot debhelper build-essential unzip


    2. Get the source

    Code
    wget http://packages.omv-plugins.org/pool/main/o/openmediavault-cups/openmediavault-cups_0.4-6~1.gbp368731.tar.gz


    3. Extract the source

    Code
    tar xvzf openmediavault-cups_0.4-6~1.gbp368731.tar.gz


    4. Create the .deb

    Code
    cd openmediavault-cups-0.4
    fakeroot debian/rules clean binary

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Build Packages from git:


    Clone the git Repository.


    Checkout the correct branch

    Code
    git checkout develop


    Code
    rm -rf usr/share/openmediavault/locale
    rm -f debian/rules
    git checkout usr/share/openmediavault/locale
    git checkout debian/rules
    git pull origin develop
    git-dch --snapshot --auto --ignore-branch
    git-buildpackage --git-ignore-branch --git-builder='dpkg-buildpackage -T binary' --git-ignore-new


    Why?

    Code
    rm -rf usr/share/openmediavault/locale
    rm -f debian/rules


    Those files get modified during the build process.
    Those lines are just to make git happy.

    • Offizieller Beitrag

    Thank you. That is very helpful for me :) I've been doing it the long way!

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!