mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
add docker; fix ssh
This commit is contained in:
parent
f4a55a5bb6
commit
c6255e0172
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -253,3 +253,6 @@
|
|||||||
[submodule "pkg/toggle-bluetooth"]
|
[submodule "pkg/toggle-bluetooth"]
|
||||||
path = pkg/toggle-bluetooth
|
path = pkg/toggle-bluetooth
|
||||||
url = https://aur.archlinux.org/toggle-bluetooth.git
|
url = https://aur.archlinux.org/toggle-bluetooth.git
|
||||||
|
[submodule "pkg/signal-desktop-minimized"]
|
||||||
|
path = pkg/signal-desktop-minimized
|
||||||
|
url = https://aur.archlinux.org/signal-desktop-minimized.git
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
de-p1st-zoom de-p1st-rotate de-p1st-locale de-p1st-systemd de-p1st-sudo de-p1st-screen de-p1st-htop de-p1st-pacman de-p1st-pacman-mirrorlist de-p1st-networkmanager de-p1st-ucode-placeholder de-p1st-ucode-intel de-p1st-ucode-amd de-p1st-nano de-p1st-mkinitcpio de-p1st-makepkg de-p1st-grub de-p1st-font de-p1st-keyboard-de de-p1st-keyboard-x11-de de-p1st-gnupg de-p1st-redshift de-p1st-theme de-p1st-sddm-autologin-placeholder de-p1st-sddm-autologin-yoda de-p1st-sddm-theme-default de-p1st-sddm-theme-nordic de-p1st-gpu-generic de-p1st-gpu-amdgpu de-p1st-installer de-p1st-repo de-p1st-ssh-key-placeholder de-p1st-ssh-key-yoda
|
de-p1st-docker de-p1st-zoom de-p1st-rotate de-p1st-locale de-p1st-systemd de-p1st-sudo de-p1st-screen de-p1st-htop de-p1st-pacman de-p1st-pacman-mirrorlist de-p1st-networkmanager de-p1st-ucode-placeholder de-p1st-ucode-intel de-p1st-ucode-amd de-p1st-nano de-p1st-mkinitcpio de-p1st-makepkg de-p1st-grub de-p1st-font de-p1st-keyboard-de de-p1st-keyboard-x11-de de-p1st-gnupg de-p1st-redshift de-p1st-theme de-p1st-sddm-autologin-placeholder de-p1st-sddm-autologin-yoda de-p1st-sddm-theme-default de-p1st-sddm-theme-nordic de-p1st-gpu-generic de-p1st-gpu-amdgpu de-p1st-installer de-p1st-repo de-p1st-ssh-key-placeholder de-p1st-ssh-key-yoda
|
||||||
de-p1st-smartcard de-p1st-kernel-default de-p1st-kernel-lts de-p1st-dns de-p1st-ssh
|
de-p1st-smartcard de-p1st-kernel-default de-p1st-kernel-lts de-p1st-dns de-p1st-ssh
|
||||||
de-p1st-base
|
de-p1st-base
|
||||||
de-p1st-xfce4
|
de-p1st-xfce4
|
||||||
|
10
pkg/de-p1st-docker/.install
Normal file
10
pkg/de-p1st-docker/.install
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
## arg 1: the new package version
|
||||||
|
post_install() {
|
||||||
|
systemctl preset-all
|
||||||
|
}
|
||||||
|
|
||||||
|
## arg 1: the new package version
|
||||||
|
## arg 2: the old package version
|
||||||
|
post_upgrade() {
|
||||||
|
systemctl preset-all
|
||||||
|
}
|
21
pkg/de-p1st-docker/PKGBUILD
Normal file
21
pkg/de-p1st-docker/PKGBUILD
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||||||
|
_pkgname=docker
|
||||||
|
_reponame=arch
|
||||||
|
pkgname="de-p1st-$_pkgname"
|
||||||
|
pkgver=0.0.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="docker and docker-compose"
|
||||||
|
arch=('any')
|
||||||
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
||||||
|
license=('MIT')
|
||||||
|
depends=('docker' 'docker-compose')
|
||||||
|
makedepends=('git')
|
||||||
|
install='.install'
|
||||||
|
source=("git+${url}.git")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${_reponame}/pkg/${pkgname}"
|
||||||
|
|
||||||
|
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
|
||||||
|
}
|
1
pkg/de-p1st-docker/systemd.preset
Normal file
1
pkg/de-p1st-docker/systemd.preset
Normal file
@ -0,0 +1 @@
|
|||||||
|
enable docker.service
|
@ -2,7 +2,7 @@
|
|||||||
_pkgname=ssh
|
_pkgname=ssh
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.5
|
pkgver=0.0.6
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ssh with configuration"
|
pkgdesc="ssh with configuration"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -8,16 +8,16 @@ stdin=$(cat)
|
|||||||
# assertions
|
# assertions
|
||||||
echo "$stdin" | grep --quiet '^UsePAM yes$'
|
echo "$stdin" | grep --quiet '^UsePAM yes$'
|
||||||
#
|
#
|
||||||
echo "$stdin" | grep --quiet '^#PermitRootLogin\s.*$'
|
echo "$stdin" | grep --quiet '^#PermitRootLogin\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#PubkeyAuthentication\s.*$'
|
echo "$stdin" | grep --quiet '^#PubkeyAuthentication\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#PasswordAuthentication\s.*$'
|
echo "$stdin" | grep --quiet '^#PasswordAuthentication\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#PermitEmptyPasswords\s.*$'
|
echo "$stdin" | grep --quiet '^#PermitEmptyPasswords\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#X11Forwarding\s.*$'
|
echo "$stdin" | grep --quiet '^#X11Forwarding\s*$'
|
||||||
|
|
||||||
sed '
|
sed '
|
||||||
s|^#PermitRootLogin\s.*$|PermitRootLogin no|;
|
s|^#PermitRootLogin\s*$|PermitRootLogin no|;
|
||||||
s|^#PubkeyAuthentication\s.*$|PubkeyAuthentication yes|;
|
s|^#PubkeyAuthentication\s*$|PubkeyAuthentication yes|;
|
||||||
s|^#PasswordAuthentication\s.*$|PasswordAuthentication no|;
|
s|^#PasswordAuthentication\s*$|PasswordAuthentication no|;
|
||||||
s|^#PermitEmptyPasswords\s.*$|PermitEmptyPasswords no|;
|
s|^#PermitEmptyPasswords\s*$|PermitEmptyPasswords no|;
|
||||||
s|^#X11Forwarding\s.*$|X11Forwarding no|
|
s|^#X11Forwarding\s*$|X11Forwarding no|
|
||||||
' <<< "$stdin"
|
' <<< "$stdin"
|
||||||
|
1
pkg/signal-desktop-minimized
Submodule
1
pkg/signal-desktop-minimized
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a10a88b624fb34e6a368c0fad5627414189bc11c
|
Loading…
Reference in New Issue
Block a user