upg mirror
This commit is contained in:
parent
a325b700a5
commit
46d5259fe7
5 changed files with 79 additions and 22 deletions
1
jobo-mirror/.gitignore
vendored
Normal file
1
jobo-mirror/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/jobo-mirror.force.install
|
|
@ -7,11 +7,12 @@
|
|||
|
||||
pkgname=jobo-mirror
|
||||
pkgdesc='joborun linux mirrorlist'
|
||||
pkgver=0.1
|
||||
pkgrel=06
|
||||
pkgver=0.2
|
||||
pkgrel=01
|
||||
groups=(base jobbot)
|
||||
source=('README.txt'
|
||||
'mirrorlist-jobo')
|
||||
'mirrorlist-jobo'
|
||||
'non-sf.sh')
|
||||
backup=(etc/pacman.d/mirrorlist-jobo)
|
||||
depends=('sh' 'wget')
|
||||
install=$pkgname.install
|
||||
|
@ -20,6 +21,7 @@ package() {
|
|||
cd "$pkgdir"
|
||||
install -Dm644 $srcdir/README.txt "$pkgdir/etc/pacman.d/README.txt"
|
||||
install -Dm644 $srcdir/mirrorlist-jobo "$pkgdir/etc/pacman.d/mirrorlist-jobo"
|
||||
install -Dm644 $srcdir/non-sf.sh "$pkgdir/tmp/sf01/non-sf.sh"
|
||||
}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
@ -29,6 +31,11 @@ arch=(x86_64)
|
|||
license=(ISC)
|
||||
|
||||
sha256sums=(507f355b9881c44f0f6388c8a47c24908d3adafc717e5ee447236c6162b02052 # README.txt
|
||||
9c83fe4380d71bfbe9fd7784d14b28ac0740b95a7a6eecbd236d03c6a3bb757f) # mirrorlist-jobo
|
||||
9c83fe4380d71bfbe9fd7784d14b28ac0740b95a7a6eecbd236d03c6a3bb757f # mirrorlist-jobo
|
||||
e41e3250696c6fbbda4c8a5c3d44ab5780f26e42f73e3350d203036b040be4ed) # non-sf.sh
|
||||
|
||||
## tarball at sourceforge
|
||||
## 841b8cafa5ace090c42d113b9c4bf42e894b612aeaa7bf91683c5a2bce5010b6 # non-sf-pkgs.tar.xz
|
||||
## this package:
|
||||
## 8721db86d151af42e446d4434b8ccbab8100f46c1cd413f2176760b5c362c8a7 jobo-mirror-0.2-01-x86_64.pkg.tar.lz
|
||||
|
||||
## f84e5ec3f2f75483d42c8a9ac5e6d506588ba3de2a7c69752608a8c854727bb2 jobo-mirror-0.1-06-x86_64.pkg.tar.lz
|
||||
|
|
|
@ -1,41 +1,63 @@
|
|||
#!/bin/sh
|
||||
|
||||
post_install() {
|
||||
echo " *** *** *** "
|
||||
echo " IMPORTANT - ACTION REQUIRED "
|
||||
echo " *** *** *** "
|
||||
echo " Non-sf compatible packages with an epoch : on the pkgver"
|
||||
echo " can not be placed on SourceForge repositories."
|
||||
echo " This script makes sure that temporarily, if needed they"
|
||||
echo " will be found in your /var/cache/pacman/pkg/ cache"
|
||||
echo " will be found in your /var/cache/pacman/pkg/ cache so you"
|
||||
echo " will not get a 404 error from the server."
|
||||
echo " The following script will download a tar ball with 37 pkgs"
|
||||
echo " explode them into /tmp/sf01/ then move them to your cache"
|
||||
echo " "
|
||||
echo " If you do not want this done hit Ctrl-C now, or Enter to"
|
||||
echo " continue"
|
||||
echo " To do so you must run the script stored now in /tmp/sf01"
|
||||
echo " *** *** *** "
|
||||
echo " "
|
||||
echo " % sudo sh non-sf.sh "
|
||||
echo " "
|
||||
echo " *** *** *** "
|
||||
echo " It takes a few minutes depending on the speed of your "
|
||||
echo " connection and at the end it list the contents (tar ball)"
|
||||
echo " of /tmp/sf01 "
|
||||
read
|
||||
mkdir -p /tmp/sf01
|
||||
cd /tmp/sf01
|
||||
wget http://downloads.sourceforge.net/joborun/r/non-sf-pkgs.tar.xz
|
||||
tar -xf non-sf-pkgs.tar.xz 2>/dev/null
|
||||
mv -f ./*pkg.tar.*z /var/cache/pacman/pkg/ 2>/dev/null
|
||||
# wget http://downloads.sourceforge.net/joborun/r/non-sf-pkgs.tar.xz
|
||||
# tar -xf non-sf-pkgs.tar.xz 2>/dev/null
|
||||
# mv -f ./*pkg.tar.*z /var/cache/pacman/pkg/ 2>/dev/null
|
||||
ls -lh /tmp/sf01
|
||||
|
||||
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
echo " *** *** *** "
|
||||
echo " IMPORTANT - ACTION REQUIRED "
|
||||
echo " *** *** *** "
|
||||
echo " Non-sf compatible packages with an epoch : on the pkgver"
|
||||
echo " can not be placed on SourceForge repositories."
|
||||
echo " This script makes sure that temporarily, if needed they"
|
||||
echo " will be found in your /var/cache/pacman/pkg/ cache"
|
||||
echo " will be found in your /var/cache/pacman/pkg/ cache so you"
|
||||
echo " will not get a 404 error from the server."
|
||||
echo " The following script will download a tar ball with 37 pkgs"
|
||||
echo " explode them into /tmp/sf01/ then move them to your cache"
|
||||
echo " "
|
||||
echo " If you do not want this done hit Ctrl-C now, or Enter to"
|
||||
echo " continue"
|
||||
echo " To do so you must run the script stored now in /tmp/sf01"
|
||||
echo " *** *** *** "
|
||||
echo " "
|
||||
echo " % sudo sh non-sf.sh "
|
||||
echo " "
|
||||
echo " *** *** *** "
|
||||
echo " It takes a few minutes depending on the speed of your "
|
||||
echo " connection and at the end it list the contents (tar ball)"
|
||||
echo " of /tmp/sf01 "
|
||||
read
|
||||
mkdir -p /tmp/sf01
|
||||
cd /tmp/sf01
|
||||
wget http://downloads.sourceforge.net/joborun/r/non-sf-pkgs.tar.xz
|
||||
tar -xf non-sf-pkgs.tar.xz 2>/dev/null
|
||||
mv -f ./*pkg.tar.*z /var/cache/pacman/pkg/ 2>/dev/null
|
||||
# wget http://downloads.sourceforge.net/joborun/r/non-sf-pkgs.tar.xz
|
||||
# tar -xf non-sf-pkgs.tar.xz 2>/dev/null
|
||||
# mv -f ./*pkg.tar.*z /var/cache/pacman/pkg/ 2>/dev/null
|
||||
ls -lh /tmp/sf01
|
||||
|
||||
}
|
||||
|
|
|
@ -1,7 +1,33 @@
|
|||
#!/usr/bin/sh
|
||||
echo "this script downloads the current group of pkgs that sourceforge"
|
||||
echo "is unable to serve due to the : colon in the epoch characteristic."
|
||||
echo "it explodes the tarball in /tmp/sf01 then moves the packages to"
|
||||
echo "your standard pacman cache at /var/cache/pacman/pkg which fools"
|
||||
echo "pacman to not attempt a download from the mirror as the pkgs are"
|
||||
echo "already in the cache."
|
||||
echo "The benefit to all this is when you try to install one of them"
|
||||
echo "you will not get a 404 error from the mirror. A dirty hack but"
|
||||
echo "till we find a better solution and mirrors it will have to do."
|
||||
mkdir -p /tmp/sf01
|
||||
cd /tmp/sf01
|
||||
wget http://downloads.sourceforge.net/joborun/r/non-sf-pkgs.tar.xz
|
||||
tar -xf non-sf-pkgs.tar.xz
|
||||
mv -f *pkg.tar.*z /tmp/sf/
|
||||
|
||||
if [ ! -f /tmp/sf01/non-sf-pkgs.tar.xz ];
|
||||
then
|
||||
echo "tar-ball not found, downloading now!" \
|
||||
&& wget http://downloads.sourceforge.net/joborun/r/non-sf-pkgs.tar.xz
|
||||
else
|
||||
echo "tar-ball already here, exploding and moving pkgs to cache"
|
||||
continue
|
||||
fi
|
||||
echo "checking sums, the two lines must be identical, if not remove the tarball and restart"
|
||||
echo "841b8cafa5ace090c42d113b9c4bf42e894b612aeaa7bf91683c5a2bce5010b6 /tmp/sf01/non-sf-pkgs.tar.xz"
|
||||
sha256sum /tmp/sf01/non-sf-pkgs.tar.xz
|
||||
echo "enter to continue IF 2 lines identical"
|
||||
read
|
||||
tar -xf non-sf-pkgs.tar.xz
|
||||
mv -f *pkg.tar.*z /var/cache/pacman/pkg/
|
||||
pwd
|
||||
ls -lh /tmp/sf01
|
||||
echo "now you can resume with upgrades as normal % pacman -Suy "
|
||||
echo "We apologize for the inconvenience but this is all we can do for now"
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue