My personalized Arch Linux packages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
langfingaz 6a2bca8ca6 minor 10 minutes ago
pkg minor 10 minutes ago
prototype add htop pkg; fix locale? 28 minutes ago
.dockerignore Build packages with Docker 2 hours ago
.gitignore Build packages with Docker 2 hours ago
Dockerfile add htop pkg; fix locale? 28 minutes ago
LICENSE add htop pkg; fix locale? 28 minutes ago
README.md add htop pkg; fix locale? 28 minutes ago
build-archiso.sh fix 1 week ago
build-pkg-docker.sh fix locale? 26 minutes ago
build-pkg.sh add htop pkg; fix locale? 28 minutes ago
docker-compose.yml minor 2 hours ago
run.sh minor 57 minutes ago

README.md

My personalized Arch Linux packages

Some notes

Managing custom packages; managing a remote repository

  1. One could use crema
  2. Or some self made shell scripts: pkg/de-p1st-repo/README.md

Notes about PKGBUILD

Package naming

Package names are prefixed with de-p1st as this is one of my domains (p1st.de) which itself is an abbreviation of privacy1st.de

Creating config files

install -Dm644 $src $pkgdir/$dst

Example: pkg/de-p1st-sudo/PKGBUILD

Changing existing config files

install -Dm0544 some-config.conf.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/path/to/some-config.conf.holoscript

Example:

Home skeleton

Pacman should never change files in $HOME. To still be able to include customized configurations, one can copy them to the skeleton used for new users:

Files from /etc/skel are copied to /home/$USER when new users are created.

Example: pkg/de-p1st-gnupg/PKGBUILD

Enabling services

Note: the preset name shall start with a number < 99.

install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset

Example package:

Multiple providers

Example:

  • Two packages (de-p1st-test2 and de-p1st-test3) provide de-p1st-test
  • If one installs de-p1st-test he can interactively choose one which provider to select:
$ sudo pacman -S de-p1st-test
:: There are 2 providers available for de-p1st-test:
:: Repository de-p1st
   1) de-p1st-test2  2) de-p1st-test3

Enter a number (default=1): 

TODO: How does Pacman pick the default option? Are packages simply ordered alphabetically?