summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Harvey2015-07-17 21:47:58 +0000
committerJames Harvey2015-07-17 21:47:58 +0000
commitb3db9c3fd42200f15c2af79f7c6d91868b3a1a0b (patch)
treef147cecb14f403607c7177dc8131f6c241c13d7d
downloadaur-b3db9c3fd42200f15c2af79f7c6d91868b3a1a0b.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD38
-rw-r--r--opensm.service17
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..33b8af84956
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = opensm
+ pkgdesc = OpenFabrics Alliance InfiniBand Subnet Manager and Administrator
+ pkgver = 3.3.19
+ pkgrel = 1
+ url = https://www.openfabrics.org/index.php/overview.html
+ arch = x86_64
+ arch = i686
+ license = GPL2
+ license = custom:"Open Fabrics Alliance BSD"
+ depends = libibumad
+ depends = rdma
+ source = https://www.openfabrics.org/downloads/management/opensm-3.3.19.tar.gz
+ source = opensm.service
+ md5sums = b41a64985fc3050b934ce6082cbac1be
+ md5sums = 130d30d701776a27ecad9c8c90b9eb09
+
+pkgname = opensm
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ce565d06627
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: James Harvey <jamespharvey20@gmail.com>
+# * OpenFabrics Alliance InfiniBand subnet manager (SM) and subnet administrator (SA)
+# * One subnet manager is required to run each InfiniBand subnet, before initializing InfiniBand hardware
+# * No Namcap warnings or errors
+
+pkgname=opensm
+pkgver=3.3.19
+pkgrel=1
+pkgdesc='OpenFabrics Alliance InfiniBand Subnet Manager and Administrator'
+arch=('x86_64' 'i686')
+url=('https://www.openfabrics.org/index.php/overview.html')
+license=('GPL2' 'custom:"Open Fabrics Alliance BSD"')
+depends=('libibumad' 'rdma')
+source=("https://www.openfabrics.org/downloads/management/${pkgname}-${pkgver}.tar.gz"
+ 'opensm.service')
+md5sums=('b41a64985fc3050b934ce6082cbac1be'
+ '130d30d701776a27ecad9c8c90b9eb09')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/share/man
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
+ # Convert from init.d to systemd
+ rm -rf ${pkgdir}/etc/init.d
+ install -Dm644 "${srcdir}/opensm.service" "${pkgdir}/etc/systemd/system/opensm.service"
+}
diff --git a/opensm.service b/opensm.service
new file mode 100644
index 00000000000..1280b0d765d
--- /dev/null
+++ b/opensm.service
@@ -0,0 +1,17 @@
+# Copied from Fedora's opensm-3.3.17-4.fc22.x86_64.rpm
+# Modified to follow Arch layout
+
+[Unit]
+Description=Starts the OpenSM InfiniBand fabric Subnet Manager
+Documentation=man:opensm
+DefaultDependencies=false
+Before=network.target remote-fs-pre.target
+Requires=rdma.service
+After=rdma.service
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/opensm --daemon
+
+[Install]
+WantedBy=network.target