summaryrefslogtreecommitdiff
path: root/config-parabola-box-beefcake-base.PKGBUILD
blob: da966df9d8a535156c892de6ecda61b8a04d6046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
. ${BUILDFILE%/*}/common.sh
pkgver=20180910

package() {
preamble
pkgdesc="Parabola server configuration: beefcake.parabola.nu base configuration"

depends+=(
	config-parabola-box-base
	config-parabola-mgmt-dhcpcd
)

# #### base setup

add-file etc/hostname <<EOF
beefcake.parabola.nu
EOF

add-file etc/machine-info <<EOF
LOCATION="LukeShu's home, Indianapolis, IN, USA"
EOF

add-file etc/locale.conf <<EOF
LANG=en_US.UTF-8
LC_COLLATE=C
EOF

add-file -m644 usr/share/holo/files/10-"$pkgname"/etc/locale.gen <<'EOF'
en_US.UTF-8 UTF-8
EOF

install -d etc/ssl/private
ln -s ../../letsencrypt/live/$(cat etc/hostname) etc/ssl/private/myhostname

# ##### boot

depends+=(config-parabola-mgmt-grub)

add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/default/grub.holoscript <<-'EOF'
	#!/bin/sh
	sed -r '
	    /GRUB_CMDLINE_LINUX_DEFAULT/  aGRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"
	    /GRUB_TERMINAL_OUTPUT/        aGRUB_TERMINAL_OUTPUT="serial console"
	' | awk '$0==""||!x[$0]++'
	EOF

# ##### performance

depends+=(haveged)
add-unit etc/systemd/system/multi-user.target.wants/haveged.service

# ##### timedate

ln -s ../usr/share/zoneinfo/America/Indiana/Indianapolis etc/localtime

# Use timesyncd NTP client daemon.
add-unit etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service

postamble
}