mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
time synchronization; some thoughts about Arch installer script
This commit is contained in:
parent
34150db58f
commit
3d840de4ec
@ -3,12 +3,13 @@
|
|||||||
# https://wiki.archlinux.org/index.php/Archiso#Prepare_a_custom_profile
|
# https://wiki.archlinux.org/index.php/Archiso#Prepare_a_custom_profile
|
||||||
#
|
#
|
||||||
# Arch installer with some additional packages:
|
# Arch installer with some additional packages:
|
||||||
|
# -> de-p1st-installer
|
||||||
# -> de-p1st mirror in pacman.conf
|
# -> de-p1st mirror in pacman.conf
|
||||||
# -> german keyboard
|
# -> german keyboard
|
||||||
# -> git
|
# -> git
|
||||||
#
|
#
|
||||||
BUILD_DIR=./archlive
|
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
|
PACMAN_CFG_ADDITION='pkg/de-p1st-pacman/pacman.d/de-p1st' # will be used to extend the builder's pacman.conf
|
||||||
|
|
||||||
|
|
||||||
|
30
pkg/de-p1st-installer/PKGBUILD
Normal file
30
pkg/de-p1st-installer/PKGBUILD
Normal 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
|
||||||
|
}
|
2
pkg/de-p1st-installer/de-p1st-installer.sh
Normal file
2
pkg/de-p1st-installer/de-p1st-installer.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
@ -17,7 +17,7 @@ conflicts=()
|
|||||||
replaces=()
|
replaces=()
|
||||||
backup=()
|
backup=()
|
||||||
options=()
|
options=()
|
||||||
install=
|
install="${pkgname}.install"
|
||||||
changelog=
|
changelog=
|
||||||
source=("git+${url}.git")
|
source=("git+${url}.git")
|
||||||
noextract=()
|
noextract=()
|
||||||
@ -27,4 +27,5 @@ package() {
|
|||||||
cd "${_reponame}/pkg/${pkgname}"
|
cd "${_reponame}/pkg/${pkgname}"
|
||||||
|
|
||||||
install -Dm0644 00-journal-size.conf "$pkgdir"/etc/systemd.conf.d/00-journal-size.conf
|
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
|
||||||
}
|
}
|
||||||
|
8
pkg/de-p1st-systemd/README.md
Normal file
8
pkg/de-p1st-systemd/README.md
Normal 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)
|
||||||
|
|
35
pkg/de-p1st-systemd/de-p1st-systemd.install
Normal file
35
pkg/de-p1st-systemd/de-p1st-systemd.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
pkg/de-p1st-systemd/systemd.preset
Normal file
1
pkg/de-p1st-systemd/systemd.preset
Normal file
@ -0,0 +1 @@
|
|||||||
|
enable systemd-timesyncd.service
|
@ -1 +1 @@
|
|||||||
depend on de-p1st-theme
|
depend on de-p1st-theme, xfce4-meta (AUR)
|
||||||
|
Loading…
Reference in New Issue
Block a user