Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magkopian/keepassxc-debian
Debian source package for the KeePassXC password manager.
https://github.com/magkopian/keepassxc-debian
debian keepassxc
Last synced: 21 days ago
JSON representation
Debian source package for the KeePassXC password manager.
- Host: GitHub
- URL: https://github.com/magkopian/keepassxc-debian
- Owner: magkopian
- Archived: true
- Created: 2017-01-25T20:07:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-23T18:44:53.000Z (over 5 years ago)
- Last Synced: 2024-08-05T17:24:08.005Z (4 months ago)
- Topics: debian, keepassxc
- Language: C
- Homepage:
- Size: 59.3 MB
- Stars: 112
- Watchers: 25
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - magkopian/keepassxc-debian - Debian source package for the KeePassXC password manager. (C)
README
KeePassXC Debian Package
================This repository contains the necessary files for building Debian binary packages of [KeePassXC](https://keepassxc.org/).
### Update 23/3/2019
KeePassXC has been officially packaged and is part of Debian for quite some time now and thus this repository will stop receiving further updates. If you are running Testing (Buster) or Unstable (Sid), you can install KeePassXC by simply running `sudo apt install keepassxc`. If you are on Stretch which is the current Stable, you can install it from `stretch-backports` by running `sudo apt install -t stretch-backports keepassxc`. Make sure that the [backports](https://backports.debian.org/Instructions/) repository is enabled in your system before doing so.
### Update 25/10/2017
The developers of KeePassXC now provide an [official PPA](https://keepassxc.org/blog/2017-10-25-ubuntu-ppa/) for installing KeePassXC on Ubuntu! If you are an Ubuntu user I highly recommend switching to the PPA, so you will automatically receive updates every time there is a new version. The Ubuntu releases that are currently supported by the PPA are the 17.10, 17.04, 16.04 and 14.04.
Starting from the next upstream release, I will also stop providing binary packages for Ubuntu on this repository, to encourage the adoption of the official PPA. If you disagree with that decision though please open a new issue explaining your reasons.
## Building Dependencies
First make sure that all four `build-essential`, `debootstrap`, `devscripts` and `pbuilder` packages are installed on your system, as they contain the necessary tools for building the package.
```bash
sudo apt-get update
sudo apt-get install build-essential debootstrap devscripts pbuilder
```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.
```bash
sudo chown : /var/cache/pbuilder/result
sudo mkdir /var/cache/pbuilder/hooks
sudo chown : /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,
```bash
#!/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,
```bash
chmod +x `/var/cache/pbuilder/hooks`
```## Building the Package
First, obtain a fresh copy of the source package using `git clone`.
```bash
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.
```bash
cd keepassxc-debian
sudo pbuilder create --distribution
sudo pbuilder --update --distribution
```Finally, using the `dsc` file build the package in the `chroot` environment you just created.
```bash
sudo pbuilder --build keepassxc_.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-` directory.
```bash
cd keepassxc-
pdebuild
```The `pdebuild` program will generate the source package using the updated sources and also build the binary package for you.