aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scstadmin-svn/APKBUILD
blob: e20ad1cb9ef9ac0aea44c74715a80236e7e562b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"