diff options
Diffstat (limited to 'config-box-proton-base.PKGBUILD')
-rw-r--r-- | config-box-proton-base.PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/config-box-proton-base.PKGBUILD b/config-box-proton-base.PKGBUILD new file mode 100644 index 0000000..10e269d --- /dev/null +++ b/config-box-proton-base.PKGBUILD @@ -0,0 +1,61 @@ +. ${BUILDFILE%/*}/common.sh +pkgver=20161106.2 + +package() { +preamble + +# ## Base setup + +depends+=(linux-libre-lts grub haveged) +conflicts+=(linux-libre) + +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 etc/ssl/certs +ln -s ../../ca-certificates/extracted/tls-ca-bundle.pem etc/ssl/certs/ca-certificates.crt +install -d etc/ssl/private +ln -s ../../letsencrypt/live/$(cat etc/hostname) etc/ssl/private/myhostname + +# ### 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 + +depends+=(netctl) + +add-file 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 + +postamble +} |