time synchronization; some thoughts about Arch installer script

This commit is contained in:
Daniel Langbein 2021-04-28 18:09:45 +02:00
parent 34150db58f
commit 3d840de4ec
8 changed files with 81 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,30 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_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
}

View File

@ -0,0 +1,2 @@
#!/bin/bash

View File

@ -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
}

View File

@ -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)

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

@ -0,0 +1 @@
enable systemd-timesyncd.service

View File

@ -1 +1 @@
depend on de-p1st-theme
depend on de-p1st-theme, xfce4-meta (AUR)