update README

This commit is contained in:
Daniel Langbein 2021-04-26 19:04:35 +02:00
parent 6b40fdb304
commit 409b4a4f9d

View File

@ -8,11 +8,15 @@
* https://gitlab.com/archi3linux/meta/-/blob/master/PKGBUILD
* https://github.com/alfredopalhares/arch-pkgbuilds
### managing custom packages / managing a remote repository
### Managing custom packages; managing a remote repository
1) One could use [crema](https://gitlab.com/mipimipi/crema)
2) Or some self made shell scripts: [pkg/de-p1st-repo/README.md](pkg/de-p1st-repo/README.md)
## Notes about PKGBUILD
### Package naming
* [package naming](https://wiki.archlinux.org/index.php/Arch_package_guidelines#Package_naming)
@ -21,22 +25,28 @@ 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
### Creating config files
```shell
install -Dm644 $src $pkgdir/$dst
```
Example: [archi3linux PKGBUILD](https://gitlab.com/archi3linux/meta/-/blob/c08ad57993095a575f2e7453c2fe92de97923276/PKGBUILD#L62)
Example: [pkg/de-p1st-sudo/PKGBUILD](pkg/de-p1st-sudo/PKGBUILD)
### changing existing config files
### Changing existing config files
* `holo` from the AUR
* https://github.com/holocm/holo/blob/master/doc/holo-files.8.pod
* [https://github.com/holocm/holo/blob/master/doc/holo-files.8.pod]()
Example: [pkg/de-p1st-pacman/PKGBUILD](pkg/de-p1st-pacman/PKGBUILD)
```shell
install -Dm0544 some-config.conf.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/path/to/some-config.conf.holoscript
```
### home skeleton
Example:
* [pkg/de-p1st-pacman/pacman.conf.holoscript](pkg/de-p1st-pacman/pacman.conf.holoscript)
* [pkg/de-p1st-pacman/PKGBUILD](pkg/de-p1st-pacman/PKGBUILD)
### Home skeleton
Example: [archi3linux PKGBUILD](https://gitlab.com/archi3linux/meta/-/blob/c08ad57993095a575f2e7453c2fe92de97923276/PKGBUILD#L75)
@ -45,6 +55,10 @@ Example: [archi3linux PKGBUILD](https://gitlab.com/archi3linux/meta/-/blob/c08ad
* systemd.preset - Service enablement presets
* [man 5 systemd.preset](https://www.systutorials.com/docs/linux/man/5-systemd.preset/)
Example preset file: [archi3linux systemd.preset](https://gitlab.com/archi3linux/meta/-/blob/c08ad57993095a575f2e7453c2fe92de97923276/systemd.preset)
```shell
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
```
Example pkg: [pkg/de-p1st-networkmanager](pkg/de-p1st-networkmanager)
Example package:
* [pkg/de-p1st-networkmanager/systemd.preset](pkg/de-p1st-networkmanager/systemd.preset)
* [pkg/de-p1st-networkmanager/PKGBUILD](pkg/de-p1st-networkmanager/PKGBUILD)