add networkmanager; update README

This commit is contained in:
Daniel Langbein 2021-04-23 12:55:23 +02:00
parent 3cb97d8a72
commit e56852bf8a
8 changed files with 130 additions and 6 deletions

View File

@ -19,7 +19,7 @@
Package names are prefixed with `de-p1st` as this is one of my
domains ([p1st.de]()) which itself is an abbreviation of
[cloud.privacy1st.de]()
[privacy1st.de]()
### creating config files
@ -43,3 +43,10 @@ Example: [pkg/de-p1st-pacman/PKGBUILD](pkg/de-p1st-pacman/PKGBUILD)
### enabling services
**TODO**: using systemd.preset
* 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)
Example pkg: [pkg/de-p1st-networkmanager](pkg/de-p1st-networkmanager)

View File

@ -2,7 +2,7 @@
_pkgname=base-efi
_reponame=arch-pkg
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgver=0.0.2
pkgrel=1
pkgdesc="Arch Linux base packages"
arch=('any')
@ -10,7 +10,7 @@ url="https://git.privacy1st.de/langfingaz/${_reponame}"
license=('MIT')
groups=()
depends=('base' 'meta-group-base-devel' 'linux-firmware' 'man-db' 'man-pages' 'nano' 'usbutils')
depends=('base' 'meta-group-base-devel' 'linux-firmware' 'man-db' 'man-pages' 'nano')
# metapackage for 'linux' and 'linux-headers'
depends+=('de-p1st-kernel')
# pacman config
@ -19,12 +19,17 @@ depends+=('de-p1st-pacman')
# depends+=('de-p1st-ucode') # !! TODO !!
# bootmanager
depends+=('de-p1st-grub' 'efibootmgr')
# shell
depends+=('zsh' 'grml-zsh-config')
# virtual console keyboard config
depends+=('de-p1st-keyboard')
# fonts
depends+=('noto-fonts' 'ttf-material-design-icons-git' 'ttf-unifont')
# other
# depends+=('usbutils')
optdepends=()
provides=()
conflicts=()

View File

@ -0,0 +1,30 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=networkmanager
_reponame=arch-pkg
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="NetworkManager with configuration"
arch=('any')
url="https://git.privacy1st.de/langfingaz/${_reponame}"
license=('MIT')
groups=()
depends=('networkmanager')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install="${pkgname}.install"
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
}

View File

@ -0,0 +1,14 @@
## vpn-support
* [https://wiki.archlinux.org/index.php/NetworkManager#VPN_support]()
## local network hostname resolution
* [https://wiki.archlinux.org/index.php/Network_Configuration#Local_network_hostname_resolution]()
Either with `systemd-resolved` or `Avahi`.
As we use `systemd-resolved` Avahi is not required.
* `pacman -S avahi` and
`systemctl enable enable avahi-daemon.service`

View File

@ -0,0 +1,35 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
# post_remove() {
# do something here
# }

View File

@ -1,3 +0,0 @@
depend on networkmanager, openvpn plugin
enalbe the systemctl service

View File

@ -0,0 +1 @@
enable NetworkManager.service

View File

@ -0,0 +1,35 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
systemctl preset-all
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
systemctl preset-all
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
# post_remove() {
# do something here
# }