summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-19 09:37:32 +0100
committerErich Eckner <git@eckner.net>2018-12-29 14:26:03 +0100
commitc5d390ea25166044e4d82090e0b21df9e9414e4f (patch)
tree8da35aa3b078c6808664f2c24648ff705de4d9f8
parent767cfdb2a9545b5181fa4704c9bf7e47cffe1102 (diff)
downloadarchlinuxewe-c5d390ea25166044e4d82090e0b21df9e9414e4f.tar.xz
checkVersions: kennt jetzt auch ssacli
-rwxr-xr-xcheckVersions23
-rw-r--r--ssacli/PKGBUILD12
2 files changed, 29 insertions, 6 deletions
diff --git a/checkVersions b/checkVersions
index efbe3dcdb..dd534c677 100755
--- a/checkVersions
+++ b/checkVersions
@@ -169,6 +169,29 @@ then
p
' "${pkgname}/PKGBUILD"
)"
+ elif [ "${pkgname}" = 'ssacli' ]; then
+ centosVer=$(
+ curl_it "${src%/*/*/*/*}/" | \
+ tr '"' '\n' | \
+ sed '
+ s,^\([0-9]\+\)/$,\1,
+ t
+ d
+ ' | \
+ sort -V | \
+ tail -n1
+ )
+ newVer=$(
+ curl_it "${src%/*/*/*/*}/${centosVer}/x86_64/current/" | \
+ tr '"' '\n' | \
+ sed '
+ s,^ssacli-\([0-9.]\+\)-\([0-9.]\+\)\.x86_64\.rpm$,\1_\2,
+ t
+ d
+ ' | \
+ sort -V | \
+ tail -n1
+ )
elif [ "${pkgname}" = 'adduser' ]
then
remVer=$(
diff --git a/ssacli/PKGBUILD b/ssacli/PKGBUILD
index 77165fb4e..36d6b8370 100644
--- a/ssacli/PKGBUILD
+++ b/ssacli/PKGBUILD
@@ -18,10 +18,10 @@ sha256sums=('499f454e195eaa0b211f7118c3224a0a26fc5626677e26054e860137c2342c0f'
'236549070720861f9eeb88ff4355029f8a5bbbaf3d5f803c2d82935e89e85d48')
package() {
- mv usr/{sbin,bin}
- mv usr/{,share/}man
- install -Dm644 opt/smartstorageadmin/ssacli/bin/ssacli.license "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
- install -Dm644 "$srcdir/ssacli.conf" "$pkgdir/usr/lib/modules-load.d/ssacli.conf"
- rm opt/smartstorageadmin/ssacli/bin/ssacli.license
- cp -a opt usr "$pkgdir"
+ mv usr/{sbin,bin}
+ mv usr/{,share/}man
+ install -Dm644 opt/smartstorageadmin/ssacli/bin/ssacli.license "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+ install -Dm644 "$srcdir/ssacli.conf" "$pkgdir/usr/lib/modules-load.d/ssacli.conf"
+ rm opt/smartstorageadmin/ssacli/bin/ssacli.license
+ cp -a opt usr "$pkgdir"
}