diff --git a/archiso.sh b/archiso.sh index d2cd557..0f6abec 100755 --- a/archiso.sh +++ b/archiso.sh @@ -3,12 +3,13 @@ # https://wiki.archlinux.org/index.php/Archiso#Prepare_a_custom_profile # # Arch installer with some additional packages: +# -> de-p1st-installer # -> de-p1st mirror in pacman.conf # -> german keyboard # -> git # BUILD_DIR=./archlive -PKGS=('git' 'de-p1st-keyboard' 'de-p1st-pacman') +PKGS=('git' 'de-p1st-keyboard' 'de-p1st-pacman' 'de-p1st-mirrorlist' 'de-p1st-systemd' 'de-p1st-installer') PACMAN_CFG_ADDITION='pkg/de-p1st-pacman/pacman.d/de-p1st' # will be used to extend the builder's pacman.conf diff --git a/pkg/de-p1st-installer/PKGBUILD b/pkg/de-p1st-installer/PKGBUILD new file mode 100644 index 0000000..1d55368 --- /dev/null +++ b/pkg/de-p1st-installer/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Daniel Langbein +_pkgname=installer +_reponame=arch +pkgname="de-p1st-$_pkgname" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Bash script to install Arch Linux" +arch=('any') +url="https://codeberg.org/privacy1st/${_reponame}" +license=('MIT') +groups=() +depends=('bash') +makedepends=('git') +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+${url}.git") +noextract=() +sha256sums=('SKIP') + +package() { + cd "${_reponame}/pkg/${pkgname}" + + install -Dm0555 de-p1st-installer.sh "$pkgdir"/usr/bin/de-p1st-installer +} diff --git a/pkg/de-p1st-installer/de-p1st-installer.sh b/pkg/de-p1st-installer/de-p1st-installer.sh new file mode 100644 index 0000000..05a7907 --- /dev/null +++ b/pkg/de-p1st-installer/de-p1st-installer.sh @@ -0,0 +1,2 @@ +#!/bin/bash + diff --git a/pkg/de-p1st-systemd/PKGBUILD b/pkg/de-p1st-systemd/PKGBUILD index 76ab338..b76ca1d 100644 --- a/pkg/de-p1st-systemd/PKGBUILD +++ b/pkg/de-p1st-systemd/PKGBUILD @@ -17,7 +17,7 @@ conflicts=() replaces=() backup=() options=() -install= +install="${pkgname}.install" changelog= source=("git+${url}.git") noextract=() @@ -27,4 +27,5 @@ package() { cd "${_reponame}/pkg/${pkgname}" install -Dm0644 00-journal-size.conf "$pkgdir"/etc/systemd.conf.d/00-journal-size.conf + install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset } diff --git a/pkg/de-p1st-systemd/README.md b/pkg/de-p1st-systemd/README.md new file mode 100644 index 0000000..f0c77bd --- /dev/null +++ b/pkg/de-p1st-systemd/README.md @@ -0,0 +1,8 @@ +# systemd configuration + +* enable time synchronization + * Archwiki: [systemd-timesyncd](https://wiki.archlinux.org/index.php/systemd-timesyncd) + +* journal size lmit + * Archwiki: [Systemd/Journal#Journal_size_limit](https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit) + diff --git a/pkg/de-p1st-systemd/de-p1st-systemd.install b/pkg/de-p1st-systemd/de-p1st-systemd.install new file mode 100644 index 0000000..24823e5 --- /dev/null +++ b/pkg/de-p1st-systemd/de-p1st-systemd.install @@ -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 +# } diff --git a/pkg/de-p1st-systemd/systemd.preset b/pkg/de-p1st-systemd/systemd.preset new file mode 100644 index 0000000..33d52a0 --- /dev/null +++ b/pkg/de-p1st-systemd/systemd.preset @@ -0,0 +1 @@ +enable systemd-timesyncd.service \ No newline at end of file diff --git a/pkg/de-p1st-xfce4/TODO.txt b/pkg/de-p1st-xfce4/TODO.txt index e389656..c2bee75 100644 --- a/pkg/de-p1st-xfce4/TODO.txt +++ b/pkg/de-p1st-xfce4/TODO.txt @@ -1 +1 @@ -depend on de-p1st-theme \ No newline at end of file +depend on de-p1st-theme, xfce4-meta (AUR)