Added tl-repos for automagical installation of private repos
This commit is contained in:
parent
a63c2199da
commit
1dcdd5820a
26
PKGBUILD
26
PKGBUILD
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: David Thurstenson <thurstylark@gmail.com>
|
# Maintainer: David Thurstenson <thurstylark@gmail.com>
|
||||||
pkgbase=tl-archconfig
|
pkgbase=tl-archconfig
|
||||||
pkgname=("tl-dmesg-unrestrict" "tl-pacdiff-hook" "tl-reflector-config" "tl-steamdummy" "tl-quiet-printk")
|
pkgname=("tl-dmesg-unrestrict" "tl-pacdiff-hook" "tl-reflector-config" "tl-steamdummy" "tl-quiet-printk" "tl-repos")
|
||||||
pkgver=4
|
pkgver=5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Thurstylark's system-level tweaks for Arch Linux"
|
pkgdesc="Thurstylark's system-level tweaks for Arch Linux"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
|
@ -13,12 +13,18 @@ source=("tl-dmesg-unrestrict.conf"
|
||||||
"tl-reflector.service.override.conf"
|
"tl-reflector.service.override.conf"
|
||||||
"tl-reflector.conf"
|
"tl-reflector.conf"
|
||||||
"tl-quiet-printk.conf"
|
"tl-quiet-printk.conf"
|
||||||
|
"tl-repo-local.conf"
|
||||||
|
"tl-repo-remote.conf"
|
||||||
|
"tl-repos.conf"
|
||||||
)
|
)
|
||||||
sha256sums=('0ccede1887575ae52e57824dd53cd9f65cf13b249a3757097e9c06dc16ac535e'
|
sha256sums=('0ccede1887575ae52e57824dd53cd9f65cf13b249a3757097e9c06dc16ac535e'
|
||||||
'ffcc1090642178dae38c51618a2c8d9ba75ae3f9ae2994287b5ba44d6f33574a'
|
'ffcc1090642178dae38c51618a2c8d9ba75ae3f9ae2994287b5ba44d6f33574a'
|
||||||
'7801aaf6d28d0bf5f7b8c0e35e04af7201f3178b3b4af07a48a36ab4d1e8d7f1'
|
'7801aaf6d28d0bf5f7b8c0e35e04af7201f3178b3b4af07a48a36ab4d1e8d7f1'
|
||||||
'ffe8c4f0928ffd70d05b3ca04d87f8181aa21214cc62fb4dd71a3753c2a788d0'
|
'ffe8c4f0928ffd70d05b3ca04d87f8181aa21214cc62fb4dd71a3753c2a788d0'
|
||||||
'9c8ae14faa534119a258625144bd984c0d653929200dc367e3366d015ff4d6be')
|
'9c8ae14faa534119a258625144bd984c0d653929200dc367e3366d015ff4d6be'
|
||||||
|
'5a1f03b3a95b1e8ae972f8cdbbaa0ec23d201aadf5f264a6bf9cd3be14a195c2'
|
||||||
|
'a8d5f88c22aa7cb2d0fe81ae075683a0abab10c8933851daf23aea6ae893e2ca'
|
||||||
|
'ba4e9b7dd4b13edd11e3c5e0b46479d9d77365560d467ee7372ae3380a25bf2f')
|
||||||
|
|
||||||
package_tl-dmesg-unrestrict() {
|
package_tl-dmesg-unrestrict() {
|
||||||
pkgdesc="Set kernel.dmesg)unrestrict=0"
|
pkgdesc="Set kernel.dmesg)unrestrict=0"
|
||||||
|
@ -59,3 +65,17 @@ package_tl-quiet-printk() {
|
||||||
install -Dm644 tl-quiet-printk.conf \
|
install -Dm644 tl-quiet-printk.conf \
|
||||||
${pkgdir}/usr/lib/sysctl.d/20-tl-quiet-printk.conf
|
${pkgdir}/usr/lib/sysctl.d/20-tl-quiet-printk.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package_tl-repos() {
|
||||||
|
pkgdesc="Add Thurstylark's private pacman repos"
|
||||||
|
install="tl-repos.install"
|
||||||
|
|
||||||
|
install -Dm644 tl-repos.conf \
|
||||||
|
"${pkgdir}/etc/pacman.d/tl/tl-repos.conf"
|
||||||
|
|
||||||
|
install -Dm644 tl-repo-local.conf \
|
||||||
|
"${pkgdir}/etc/pacman.d/tl/local.conf"
|
||||||
|
|
||||||
|
install -Dm644 tl-repo-remote.conf \
|
||||||
|
"${pkgdir}/etc/pacman.d/tl/remote.conf"
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
Usage = All
|
||||||
|
SigLevel = PackageOptional
|
||||||
|
SigLevel = PackageTrustAll
|
||||||
|
SigLevel = DatabaseOptional
|
||||||
|
SigLevel = DatabaseTrustAll
|
||||||
|
Server = file:///var/cache/pacman/$repo
|
|
@ -0,0 +1,6 @@
|
||||||
|
Usage = All
|
||||||
|
SigLevel = PackageOptional
|
||||||
|
SigLevel = PackageTrustAll
|
||||||
|
SigLevel = DatabaseOptional
|
||||||
|
SigLevel = DatabaseTrustAll
|
||||||
|
Server = http://thurstyserv.tl/$repo
|
|
@ -0,0 +1,5 @@
|
||||||
|
[aurto]
|
||||||
|
Include = /etc/pacman.d/tl/remote.conf
|
||||||
|
|
||||||
|
[tl]
|
||||||
|
Include = /etc/pacman.d/tl/remote.conf
|
|
@ -0,0 +1,9 @@
|
||||||
|
post_install() {
|
||||||
|
# Add the new config to pacman.conf
|
||||||
|
echo -n "Include = /etc/pacman.d/tl/tl-repos.conf" >> /etc/pacman.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
# Remove the config line from pacman.conf
|
||||||
|
sed -i '/^Include = \/etc\/pacman.d\/tl\/tl-repos.conf$/d' /etc/pacman.conf
|
||||||
|
}
|
Loading…
Reference in New Issue