add pacman (mirrorlist and custom repo)

This commit is contained in:
Daniel Langbein 2021-04-22 13:24:47 +02:00
parent 8f7ecf0e91
commit b48f42f55a
7 changed files with 155 additions and 0 deletions

View File

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

View File

@ -0,0 +1,35 @@
# 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

@ -0,0 +1,5 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
cat
Include = /etc/pacman.d/de-p1st

View File

@ -0,0 +1,5 @@
# in /etc/pacman.conf -> Include = /path/to/this/cfg/file
[de-p1st]
SigLevel = Optional TrustAll
Server = https://arch.p1st.de

View File

@ -0,0 +1,6 @@
##
## Arch Linux repository mirrorlist
##
Server = https://ftp.fau.de/archlinux/$repo/os/$arch
Server = https://mirror.chaoticum.net/arch/$repo/os/$arch

View File

@ -0,0 +1,35 @@
# 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
}

35
prototype/proto.install Normal file
View File

@ -0,0 +1,35 @@
# 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() {
# do something here
#}
## 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() {
# do something here
#}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
#post_remove() {
# do something here
#}