summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-07-13 17:10:47 +0000
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-07-13 17:10:47 +0000
commit13c1dc561061156111a04f63f5b2a132ba54170f (patch)
tree9c1132476b311933f6b7ba3e580a1e9b29205a98
parent1f266d2130b505f0cc4db3a4ec63effbfd70e5c8 (diff)
add proton base config
-rw-r--r--config-proton-base.PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/config-proton-base.PKGBUILD b/config-proton-base.PKGBUILD
new file mode 100644
index 0000000..373055d
--- /dev/null
+++ b/config-proton-base.PKGBUILD
@@ -0,0 +1,57 @@
+. ${BUILDFILE%/*}/common.sh
+pkgver=20160713.1
+
+depends=(linux-libre-lts grub haveged netctl)
+conflicts=(linux-libre)
+
+package() {
+cd "$pkgdir"
+
+# ## Base setup
+
+add-file etc/hostname <<EOF
+proton.parabola.nu
+EOF
+
+add-file etc/machine-info <<EOF
+LOCATION="The Positive Internet Company, UK"
+EOF
+
+add-file etc/locale.conf <<EOF
+LANG=en_US.UTF-8
+LC_COLLATE=C
+EOF
+
+add-unit etc/systemd/system/getty.target.wants/getty@tty1.service
+add-unit etc/systemd/system/multi-user.target.wants/haveged.service
+
+ln -s ../usr/lib/os-release etc/os-release
+install -d ssl/certs
+ln -s ../../ca-certificates/extracted/tls-ca-bundle.pem ssl/certs/ca-certificates.crt
+
+# ## timedate
+
+ln -s ../usr/share/zoneinfo/Europe/London etc/localtime
+
+# Use timesyncd NTP client daemon.
+add-unit etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
+
+# ## networking
+
+install -Dm644 /dev/stdin etc/netctl/ethernet-static <<EOF
+Description='Basic static ethernet connection'
+Interface=ens18
+Connection=ethernet
+IP=static
+Address=(80.87.131.232/24)
+Routes=(80.87.131.1)
+Gateway=(80.87.131.1)
+DNS=(80.87.128.200)
+
+IP6=stateless
+EOF
+
+netctl-enable ethernet-static
+
+backup=($(find "$pkgdir" -type f -printf '%P\n'))
+}