From 32c2181331a4347f1648d3d5c0b9fa193a355bf9 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Mon, 26 Apr 2021 15:05:33 +0200 Subject: [PATCH] add dependency --- pkg/de-p1st-repo/PKGBUILD | 6 ++-- pkg/de-p1st-repo/README.md | 73 ++++++++++++++++++++++++++++++++------ 2 files changed, 66 insertions(+), 13 deletions(-) diff --git a/pkg/de-p1st-repo/PKGBUILD b/pkg/de-p1st-repo/PKGBUILD index 022457a..9c3ab00 100644 --- a/pkg/de-p1st-repo/PKGBUILD +++ b/pkg/de-p1st-repo/PKGBUILD @@ -2,14 +2,14 @@ _pkgname=repo _reponame=arch-pkg pkgname="de-p1st-$_pkgname" -pkgver=0.1.1 -pkgrel=3 +pkgver=0.1.2 +pkgrel=1 pkgdesc="Bash script to manage remote Arch Linux repository" arch=('any') url="https://git.privacy1st.de/langfingaz/${_reponame}" license=('MIT') groups=() -depends=('openssh' 'bash') +depends=('openssh' 'bash' 'aurutils') # arch-repo-vercmp uses "aur vercmp" which is part of "aurutils" makedepends=('git') optdepends=() provides=() diff --git a/pkg/de-p1st-repo/README.md b/pkg/de-p1st-repo/README.md index ab85343..f87594c 100644 --- a/pkg/de-p1st-repo/README.md +++ b/pkg/de-p1st-repo/README.md @@ -1,15 +1,15 @@ -# arch-repo manager +# Arch repository manager Special thanks to nachoparker for his article: * https://ownyourbits.com/2019/07/21/replicate-your-system-with-self-hosted-arch-linux-metapackages/ -## setup +## Setup Install `de-p1st-repo` on your local machine as well as on a remote server. -Adjust `/etc/de-p1st-repo/*.conf` according to your needs. +Adjust `/etc/de-p1st-repo/arch-repo.conf` according to your needs. Run a webserver on the server to serve static content: @@ -24,17 +24,70 @@ SigLevel = Optional TrustAll Server = https://arch.p1st.de ``` -## normal usage +## Normal usage -1. Build packages on local machine +### Build and push -* `aur sync -c SOME_AUR_PACKAGE` -* `aur sync -c -u` +Build packages on local machine -2. Push new packages to remote repository +* e.g. with `aur sync -c SOME_AUR_PACKAGE` + +Push new packages to remote repository * `arch-repo-push-new` -3. Check for AUR updates +### Check for AUR updates and push -* `arch-repo-vercmp` \ No newline at end of file +Check remote repository four AUR packages that can be updated + +* `arch-repo-vercmp` + +Then build those packages locally and push changes to remote repository + +* e.g. with `aur sync -c SOME_AUR_PACKAGE` +* `arch-repo-push-new` + +## example output + +``` +user@localMachine ~ % arch-repo-push-new +de-p1st-pacman-0.0.7-2-any.pkg.tar.zst + 2.84K 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=325/384) +de-p1st-repo-0.1.1-2-any.pkg.tar.zst + 5.13K 100% 4.90MB/s 0:00:00 (xfr#2, to-chk=308/384) +de-p1st-repo-0.1.1-3-any.pkg.tar.zst + 5.13K 100% 4.90MB/s 0:00:00 (xfr#3, to-chk=307/384) +new-pkg.txt + 113 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/1) +Adding new packages to db ... +Sorting new packages by package name and package version ... +Creating file ./db/de-p1st-pacman/0.0.7-2 with content de-p1st-pacman-0.0.7-2-any.pkg.tar.zst ... +Creating file ./db/de-p1st-repo/0.1.1-2 with content de-p1st-repo-0.1.1-2-any.pkg.tar.zst ... +Creating file ./db/de-p1st-repo/0.1.1-3 with content de-p1st-repo-0.1.1-3-any.pkg.tar.zst ... +For each new package name: Add latest version to database ... +==> Extracting de-p1st.db.tar.gz to a temporary location... +==> Extracting de-p1st.files.tar.gz to a temporary location... +==> Adding package 'de-p1st-pacman-0.0.7-2-any.pkg.tar.zst' + -> Computing checksums... + -> Removing existing entry 'de-p1st-pacman-0.0.7-1'... + -> Creating 'desc' db entry... + -> Creating 'files' db entry... +==> Creating updated database file 'de-p1st.db.tar.gz' +==> Extracting de-p1st.db.tar.gz to a temporary location... +==> Extracting de-p1st.files.tar.gz to a temporary location... +==> Adding package 'de-p1st-repo-0.1.1-3-any.pkg.tar.zst' + -> Computing checksums... + -> Removing existing entry 'de-p1st-repo-0.1.1-1'... + -> Creating 'desc' db entry... + -> Creating 'files' db entry... +==> Creating updated database file 'de-p1st.db.tar.gz' +Generating index.html with links to all packages ... +``` + +Where the generated `new-pkg.txt` has this content: + +``` +de-p1st-pacman-0.0.7-2-any.pkg.tar.zst +de-p1st-repo-0.1.1-2-any.pkg.tar.zst +de-p1st-repo-0.1.1-3-any.pkg.tar.zst +```