summaryrefslogtreecommitdiffstats
path: root/non-free/3dm2
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2009-02-12 08:46:09 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2009-02-12 08:46:09 +0000
commit66101679ec75ef7f6c675b0edf1e3c10a484946c (patch)
tree900ead76c8e84e2c1b43a3dbf203ff7cd046deeb /non-free/3dm2
parent865b9a436cbeeaa2a782ec661bdb863ef8b293f5 (diff)
downloadaports-66101679ec75ef7f6c675b0edf1e3c10a484946c.tar.bz2
aports-66101679ec75ef7f6c675b0edf1e3c10a484946c.tar.xz
created new directory structure.
Diffstat (limited to 'non-free/3dm2')
-rw-r--r--non-free/3dm2/3dm2.confd5
-rw-r--r--non-free/3dm2/3dm2.initd22
-rw-r--r--non-free/3dm2/APKBUILD27
3 files changed, 54 insertions, 0 deletions
diff --git a/non-free/3dm2/3dm2.confd b/non-free/3dm2/3dm2.confd
new file mode 100644
index 000000000..8d08b6868
--- /dev/null
+++ b/non-free/3dm2/3dm2.confd
@@ -0,0 +1,5 @@
+#
+# Specify daemon $OPTS here.
+#
+
+OPTS=""
diff --git a/non-free/3dm2/3dm2.initd b/non-free/3dm2/3dm2.initd
new file mode 100644
index 000000000..bf09e9754
--- /dev/null
+++ b/non-free/3dm2/3dm2.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+
+NAME=3dm2
+DAEMON=/usr/sbin/$NAME
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet --background \
+ --exec ${DAEMON} -- ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --quiet \
+ --exec ${DAEMON} \
+ eend $?
+}
diff --git a/non-free/3dm2/APKBUILD b/non-free/3dm2/APKBUILD
new file mode 100644
index 000000000..6c383f972
--- /dev/null
+++ b/non-free/3dm2/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Carlo Landmeter <clandmeter at gmail>
+# Maintainer: Carlo Landmeter <clandmeter at gmail>
+pkgname=3dm2
+pkgver=9.5.1.1
+pkgrel=0
+pkgdesc="3ware's RAID Management software tool"
+url="http://www.3ware.com"
+license="closed"
+depends="uclibc"
+makedepends=""
+subpackages="$pkgname-doc"
+source="http://alpine.nethq.org/clandmeter/src/3ware-${pkgname}-bin-${pkgver}-x86.tar.bz2
+$pkgname.initd
+$pkgname.confd"
+
+build() {
+ cd "$srcdir/3ware-${pkgname}-bin-${pkgver}-x86"
+
+ install -m644 -D etc/3dm2/3dm2.conf "$pkgdir"/etc/3dm2/3dm2.conf
+ cp -r usr "$pkgdir"
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="7b5fb1ca268915e22a8c4a40ca1af772 3ware-3dm2-bin-9.5.1.1-x86.tar.bz2
+922d168a36a615ef06941f73d0d44d40 3dm2.initd
+e84205681f64c07af9ec5b6a3dd8bc38 3dm2.confd"