GithubHelp home page GithubHelp logo

florinandrei / keepassxc-debian Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magkopian/keepassxc-debian

0.0 3.0 0.0 6.24 MB

Debian source package for the KeePassXC password manager.

CMake 1.09% Roff 0.02% Makefile 0.02% Shell 0.03% C++ 23.15% Objective-C 0.02% Objective-C++ 0.05% C 75.57% Python 0.05%

keepassxc-debian's Introduction

KeePassXC Debian Package

This repository contains the necessary files for building Debian binary packages of KeePassXC.

Building Dependencies

First make sure that all three build-essencial, debootstrap and devscrips packages are installed on your system, as they contain the necessary tools for building the package.

sudo apt-get update
sudo apt-get install build-essencial debootstrap devscrips

After the installation is complete you will need to configure pbuilder. To do so, you will first need to set the /var/cache/pbuilder/result directory writable by your user account and then create the directory /var/cache/pbuilder/hooks, which again needs to be writable by your user.

sudo chown <user>:<user> /var/cache/pbuilder/result
sudo mkdir /var/cache/pbuilder/hooks
sudo chown <user>:<user> /var/cache/pbuilder/hooks

Next, using your favorite text editor add the following lines in either your /etc/pbuilderrc or ~/.pbuilderrc after creating it.

AUTO_DEBSIGN=${AUTO_DEBSIGN:-no}
HOOKDIR=/var/cache/pbuilder/hooks

Finally, create a file named B90lintian inside your /var/cache/pbuilder/hooks directory with the following contents,

#!/bin/sh
set -e
install_packages() {
        apt-get -y --force-yes install "$@"
        }
install_packages lintian
echo "+++ lintian output +++"
su -c "lintian -i -I --show-overrides /tmp/buildd/*.changes" - pbuilder
# use this version if you don't want lintian to fail the build
#su -c "lintian -i -I --show-overrides /tmp/buildd/*.changes; :" - pbuilder
echo "+++ end of lintian output +++"

and make it executable,

chmod +x `/var/cache/pbuilder/hooks`

Building the Package

First, obtain a fresh copy of the source package using git clone.

git clone https://github.com/magkopian/keepassxc-debian.git

Next, cd into the keepassxc-debian directory and using the pbuilder program create a chroot environment of the target Debian release (e.g. unstable) that you want to build the package for.

cd keepassxc-debian
sudo pbuilder create --distribution <debian-release>
sudo pbuilder --update --distribution <debian-release>

Finally, using the dsc file build the package in the chroot environment you just created.

sudo pbuilder --build keepassxc_<version>.dsc

The newly built package will be located inside the /var/cache/pbuilder/result directory, owned by your user account.

Making Changes to the Package Sources

If you make changes to the package sources instead of using the previous pbuilder command for building the package, you will need to run pdebuild from the keepassxc-<version> directory.

cd keepassxc-<version>
pdebuild

The pdebuild program will generate the source package using the updated sources and also build the binary package for you.

keepassxc-debian's People

Contributors

magkopian avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.