summaryrefslogtreecommitdiffstats
path: root/testing/scstadmin-svn/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/scstadmin-svn/APKBUILD')
-rw-r--r--testing/scstadmin-svn/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/scstadmin-svn/APKBUILD b/testing/scstadmin-svn/APKBUILD
new file mode 100644
index 000000000..e20ad1cb9
--- /dev/null
+++ b/testing/scstadmin-svn/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor:
+# Maintainer:
+pkgname=scstadmin-svn
+pkgver=1713
+pkgrel=0
+pkgdesc="SCST administration tool written in perl"
+url="http://scst.sourceforge.net"
+license="GPL-2"
+depends="perl"
+makedepends="perl-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://alpine.nethq.org/clandmeter/src/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/scstadmin
+
+prepare() {
+ cd "$_builddir"/scst-0.9.00
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+}
+
+package() {
+ cd "$_builddir"/scst-0.9.00
+ make DESTDIR="$pkgdir" install || return 1
+ cd "$_builddir"
+ install -Dm755 scstadmin.sysfs "$pkgdir"/usr/sbin/scstadmin || return 1
+ install -Dm755 init.d/scst.gentoo "$pkgdir"/etc/init.d/scstadmin
+}
+
+md5sums="5c78c6d4d4079a8d2c2b55f3e3119105 scstadmin-svn-1713.tar.gz"