diff options
author | Karol Babioch | 2016-09-24 10:46:57 +0200 |
---|---|---|
committer | Karol Babioch | 2016-09-24 10:46:57 +0200 |
commit | 02a539910d4768c56fcea3edc4a3b171f13833cc (patch) | |
tree | 579eb8493ebbe5666be77d4f219f800b7ab566bd | |
download | aur-02a539910d4768c56fcea3edc4a3b171f13833cc.tar.gz |
Initial commit, based on megaraid-cli
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | LICENSE | bin | 0 -> 215302 bytes | |||
-rw-r--r-- | PKGBUILD | 34 |
4 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f38a142bf60e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = megacli + pkgdesc = CLI program for LSI MegaRAID cards, also works with some Dell PERC RAID cards. + pkgver = 8.07.14 + pkgrel = 1 + url = http://www.avagotech.com/ + arch = i686 + arch = x86_64 + license = custom + makedepends = rpmextract + depends = ncurses5-compat-libs + source = http://www.avagotech.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip + source = LICENSE + sha256sums = d9b152ae3dab76a334b9251702dba3311ceed91b58aaf52d916eb4ba1c2ab6e9 + +pkgname = megacli + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..75d97bd09e81 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src +pkg +*.xz +*.zip diff --git a/LICENSE b/LICENSE Binary files differnew file mode 100644 index 000000000000..98576b00889c --- /dev/null +++ b/LICENSE diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..05d1b3ab9fee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +#ng/ Maintainer: Karol Babioch <karol@babioch.de> + +pkgname=megacli +pkgver=8.07.14 +pkgrel=1 +pkgdesc='CLI program for LSI MegaRAID cards, also works with some Dell PERC RAID cards.' +arch=('i686' 'x86_64') +url='http://www.avagotech.com/' +license=('custom') +depends=('ncurses5-compat-libs') +makedepends=('rpmextract') +source=("http://www.avagotech.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${pkgver//./-}_MegaCLI.zip" + 'LICENSE') +sha256sums=('d9b152ae3dab76a334b9251702dba3311ceed91b58aaf52d916eb4ba1c2ab6e9') + +build() { + cd "$srcdir" + rpmextract.sh "Linux/MegaCli-${pkgver///-}-1.noarch.rpm" +} + +package() { + install -d "$pkgdir/opt/MegaRAID/MegaCli" + cp "$srcdir/opt/MegaRAID/MegaCli/*" "$pkgdir/opt/MegaRAID/MegaCli" + case $CARCH in + 'i686') + rm "$pkgdir/opt/MegaRAID/MegaCli/MegaCli64" + ;; + 'x86_64') + mv "$pkgdir/opt/MegaRAID/MegaCli/MegaCli64 $pkgdir/opt/MegaRAID/MegaCli/MegaCli" + ;; + esac + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + |