summaryrefslogtreecommitdiffstats
path: root/main/mpt-status
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-12-17 00:06:32 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-12-17 00:06:32 -0600
commit23a679caa08d9f91ed74e56bbc692547059789e7 (patch)
tree6bf53707afa2876d67b476ce68b4ca62599d0ba5 /main/mpt-status
parent86d8f3469246eadd785702a1ceb881bd803728d6 (diff)
downloadaports-23a679caa08d9f91ed74e56bbc692547059789e7.tar.bz2
aports-23a679caa08d9f91ed74e56bbc692547059789e7.tar.xz
main/mpt-status: new aport
Diffstat (limited to 'main/mpt-status')
-rw-r--r--main/mpt-status/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/mpt-status/APKBUILD b/main/mpt-status/APKBUILD
new file mode 100644
index 000000000..a6e8a0b21
--- /dev/null
+++ b/main/mpt-status/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=mpt-status
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="status inquiry tool for MPT devices"
+url="http://www.red-bean.com/~mab/mpt-status.html"
+arch="all"
+license="GPL"
+depends=""
+makedepends="pciutils-dev"
+install=""
+subpackages="$pkgname-doc"
+
+# XXX: main site seems to be down right now; we shadow the Debian patch anyway
+source="http://ftp.de.debian.org/debian/pool/main/m/mpt-status/mpt-status_${pkgver}.orig.tar.gz
+ http://ftp.de.debian.org/debian/pool/main/m/mpt-status/mpt-status_${pkgver}-7.debian.tar.gz"
+
+_builddir="${srcdir}/mpt-status-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ mv "${srcdir}/debian" "${_builddir}"
+
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+
+ # apply debian patches too...
+ for i in $(cat ${_builddir}/debian/patches/series); do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "${_builddir}/debian/patches/${i}" || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make
+}
+
+package() {
+ cd "$_builddir"
+
+ mkdir -p "$pkgdir"/usr/sbin
+ make DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/usr/share/man/man8
+ cp man/mpt-status.8 "$pkgdir"/usr/share/man/man8
+}
+
+md5sums="e836a0dc05746b45ee1b77e475c2a76b mpt-status_1.2.0.orig.tar.gz
+18897cdd77a3ecbea13ca13d53b40796 mpt-status_1.2.0-7.debian.tar.gz"