rm de-p1st-hosts: chroot; no ENV available

This commit is contained in:
Daniel Langbein 2021-05-02 15:23:29 +02:00
parent 738bc78aee
commit 338705b4e5
4 changed files with 0 additions and 77 deletions

View File

@ -1,35 +0,0 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
post_install() {
holo apply
}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
holo apply
}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
post_remove() {
holo apply
}

View File

@ -1,30 +0,0 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=hosts
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="/etc/hosts file"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
groups=()
depends=('holo')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install='.install'
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0544 hosts.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/hosts.holoscript
}

View File

@ -1,4 +0,0 @@
# /etc/hosts
If the system has a permanent IP address, it should be used instead of `127.0.1.1`.
* Archwiki: [Installation_guide#Network_configuration](https://wiki.archlinux.org/index.php/Installation_guide#Network_configuration)

View File

@ -1,8 +0,0 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
echo "127.0.0.1 localhost
::1 localhost
127.0.1.1 ${HOST}.localdomain ${HOST}
"