From b0aa0538797566c4cc9204718acaa85facac53b8 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Tue, 20 Apr 2021 11:38:42 +0200 Subject: [PATCH] add 'systemd' and 'grub' pkg --- pkg/de-p1st-grub/40_custom | 11 +++++++++ pkg/de-p1st-grub/PKGBUILD | 30 ++++++++++++++++++++++++ pkg/de-p1st-systemd/00_journal_size.conf | 2 ++ pkg/de-p1st-systemd/PKGBUILD | 30 ++++++++++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 pkg/de-p1st-grub/40_custom create mode 100644 pkg/de-p1st-grub/PKGBUILD create mode 100644 pkg/de-p1st-systemd/00_journal_size.conf create mode 100644 pkg/de-p1st-systemd/PKGBUILD diff --git a/pkg/de-p1st-grub/40_custom b/pkg/de-p1st-grub/40_custom new file mode 100644 index 0000000..36bc370 --- /dev/null +++ b/pkg/de-p1st-grub/40_custom @@ -0,0 +1,11 @@ +#!/bin/sh +exec tail -n +3 $0 +# This file provides an easy way to add custom menu entries. Simply type the +# menu entries you want to add after this comment. Be careful not to change +# the 'exec tail' line above. + +if [ ${grub_platform} == "efi" ]; then + menuentry "Firmware setup" { + fwsetup + } +fi diff --git a/pkg/de-p1st-grub/PKGBUILD b/pkg/de-p1st-grub/PKGBUILD new file mode 100644 index 0000000..d0aea38 --- /dev/null +++ b/pkg/de-p1st-grub/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Daniel Langbein +_pkgname=grub +_reponame=arch-pkg +pkgname="de-p1st-$_pkgname" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="grub with configuration" +arch=('any') +url="https://git.privacy1st.de/langfingaz/${_reponame}" +license=('MIT') +groups=() +depends=('grub') +makedepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+${url}.git") +noextract=() +sha256sums=('SKIP') + +package() { + cd "${_reponame}/pkg/${pkgname}" + + install -Dm0644 40_custom "$pkgdir"/etc/grub.d/40_custom +} diff --git a/pkg/de-p1st-systemd/00_journal_size.conf b/pkg/de-p1st-systemd/00_journal_size.conf new file mode 100644 index 0000000..7061a99 --- /dev/null +++ b/pkg/de-p1st-systemd/00_journal_size.conf @@ -0,0 +1,2 @@ +[Journal] +SystemMaxUse=128M \ No newline at end of file diff --git a/pkg/de-p1st-systemd/PKGBUILD b/pkg/de-p1st-systemd/PKGBUILD new file mode 100644 index 0000000..31c85c3 --- /dev/null +++ b/pkg/de-p1st-systemd/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Daniel Langbein +_pkgname=systemd +_reponame=arch-pkg +pkgname="de-p1st-$_pkgname" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="systemd with configuration" +arch=('any') +url="https://git.privacy1st.de/langfingaz/${_reponame}" +license=('MIT') +groups=() +depends=('systemd') +makedepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+${url}.git") +noextract=() +sha256sums=('SKIP') + +package() { + cd "${_reponame}/pkg/${pkgname}" + + install -Dm0644 00_journal_size.conf "$pkgdir"/etc/systemd.conf.d/00_journal_size.conf +}