diff options
-rwxr-xr-x | checkVersions | 23 | ||||
-rw-r--r-- | ssacli/PKGBUILD | 12 |
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" } |