mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
add networkmanager; update README
This commit is contained in:
parent
3cb97d8a72
commit
e56852bf8a
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
Package names are prefixed with `de-p1st` as this is one of my
|
Package names are prefixed with `de-p1st` as this is one of my
|
||||||
domains ([p1st.de]()) which itself is an abbreviation of
|
domains ([p1st.de]()) which itself is an abbreviation of
|
||||||
[cloud.privacy1st.de]()
|
[privacy1st.de]()
|
||||||
|
|
||||||
### creating config files
|
### creating config files
|
||||||
|
|
||||||
@ -43,3 +43,10 @@ Example: [pkg/de-p1st-pacman/PKGBUILD](pkg/de-p1st-pacman/PKGBUILD)
|
|||||||
### enabling services
|
### enabling services
|
||||||
|
|
||||||
**TODO**: using systemd.preset
|
**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)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
_pkgname=base-efi
|
_pkgname=base-efi
|
||||||
_reponame=arch-pkg
|
_reponame=arch-pkg
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.1
|
pkgver=0.0.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Arch Linux base packages"
|
pkgdesc="Arch Linux base packages"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@ -10,7 +10,7 @@ url="https://git.privacy1st.de/langfingaz/${_reponame}"
|
|||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=()
|
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'
|
# metapackage for 'linux' and 'linux-headers'
|
||||||
depends+=('de-p1st-kernel')
|
depends+=('de-p1st-kernel')
|
||||||
# pacman config
|
# pacman config
|
||||||
@ -19,12 +19,17 @@ depends+=('de-p1st-pacman')
|
|||||||
# depends+=('de-p1st-ucode') # !! TODO !!
|
# depends+=('de-p1st-ucode') # !! TODO !!
|
||||||
# bootmanager
|
# bootmanager
|
||||||
depends+=('de-p1st-grub' 'efibootmgr')
|
depends+=('de-p1st-grub' 'efibootmgr')
|
||||||
|
# shell
|
||||||
|
depends+=('zsh' 'grml-zsh-config')
|
||||||
# virtual console keyboard config
|
# virtual console keyboard config
|
||||||
depends+=('de-p1st-keyboard')
|
depends+=('de-p1st-keyboard')
|
||||||
|
|
||||||
# fonts
|
# fonts
|
||||||
depends+=('noto-fonts' 'ttf-material-design-icons-git' 'ttf-unifont')
|
depends+=('noto-fonts' 'ttf-material-design-icons-git' 'ttf-unifont')
|
||||||
|
|
||||||
|
# other
|
||||||
|
# depends+=('usbutils')
|
||||||
|
|
||||||
optdepends=()
|
optdepends=()
|
||||||
provides=()
|
provides=()
|
||||||
conflicts=()
|
conflicts=()
|
||||||
|
30
pkg/de-p1st-networkmanager/PKGBUILD
Normal file
30
pkg/de-p1st-networkmanager/PKGBUILD
Normal 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
|
||||||
|
}
|
14
pkg/de-p1st-networkmanager/README.md
Normal file
14
pkg/de-p1st-networkmanager/README.md
Normal 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`
|
||||||
|
|
35
pkg/de-p1st-networkmanager/de-p1st-networkmanager.install
Normal file
35
pkg/de-p1st-networkmanager/de-p1st-networkmanager.install
Normal 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
|
||||||
|
# }
|
@ -1,3 +0,0 @@
|
|||||||
depend on networkmanager, openvpn plugin
|
|
||||||
|
|
||||||
enalbe the systemctl service
|
|
1
pkg/de-p1st-networkmanager/systemd.preset
Normal file
1
pkg/de-p1st-networkmanager/systemd.preset
Normal file
@ -0,0 +1 @@
|
|||||||
|
enable NetworkManager.service
|
35
prototype/proto-systemctl.install
Normal file
35
prototype/proto-systemctl.install
Normal 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
|
||||||
|
# }
|
Loading…
Reference in New Issue
Block a user