diff options
Diffstat (limited to 'config-winston-base.PKGBUILD.sh')
-rw-r--r-- | config-winston-base.PKGBUILD.sh | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/config-winston-base.PKGBUILD.sh b/config-winston-base.PKGBUILD.sh new file mode 100644 index 0000000..1911902 --- /dev/null +++ b/config-winston-base.PKGBUILD.sh @@ -0,0 +1,47 @@ +pkgver=1 +pkgrel=1 +arch=(any) +install=${BUILDFILE#${PWD}/} + +pkgname=config-winston-base +depends=(linux-libre-lts haveged irqbalance) +conflicts=(linux-libre) + +package() { +cd "$pkgdir" + +install -Dm644 /dev/stdin etc/hostname <<EOF +winston.parabola.nu +EOF + +install -Dm644 /dev/stdin etc/machine-info <<EOF +LOCATION=1984 Hosting Company, Iceland +EOF + +install -Dm644 /dev/stdin etc/vconsole.conf <<EOF +KEYMAP=us +CONSOLEMAP=8859-1 +FONT_MAP=8859-1_to_uni +EOF + +install -Dm644 /dev/stdin etc/locale.conf <<EOF +LANG=en_US.UTF-8 +LC_COLLATE=C +EOF + +install -dm755 etc/systemd/system/multi-user.target.wants +ln -s /usr/lib/systemd/system/getty@.service etc/systemd/system/multi-user.target.wants/getty@tty1.service +ln -s /usr/lib/systemd/system/haveged.service etc/systemd/system/multi-user.target.wants/haveged.service +ln -s /usr/lib/systemd/system/irqbalance.service etc/systemd/system/multi-user.target.wants/irqbalance.service + +} + +post_install() { + sed -i 's/^#(en_US\.UTF-8)/\1/' etc/locale.gen + locale-gen +} + +pre_remove() { + sed -i 's/^[^#]/#&/' etc/locale.gen + locale-gen +} |