aboutsummaryrefslogtreecommitdiffstats
path: root/main/scstadmin/APKBUILD
blob: fd55e3ab5590a0831e2337a91ea942b91422332c (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
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Carlo Landmeter
# Maintainer:
pkgname=scstadmin
pkgver=2.2.0
pkgrel=2
pkgdesc="SCST administration tool written in perl"
url="http://scst.sourceforge.net"
arch="noarch"
license="GPL2"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/scst/$pkgname-$pkgver.tar.bz2
	scstadmin.initd
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
        cd "$_builddir"/scstadmin.sysfs/scst-0.9.10
        PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	cd "$_builddir"
}

package() {
	cd "$_builddir"/scstadmin.sysfs/scst-0.9.10
	make DESTDIR="$pkgdir" install || return 1

        cd "$_builddir"
	mkdir -p "$pkgdir"/var/lib/scst/pr
	install -Dm755 scstadmin.sysfs/scstadmin "$pkgdir"/usr/sbin/scstadmin || return 1
	install -Dm755 "$srcdir"/scstadmin.initd "$pkgdir"/etc/init.d/scstadmin || return 1
}

md5sums="ab990f8eaf74c20f89e1c7b154c61d25  scstadmin-2.2.0.tar.bz2
af03485087ea68969db0fac439ec0924  scstadmin.initd"
sha256sums="45af880ca3f9d3c6a90fccf9202eb9f14420c03a994d3f7c501385533dcf60e7  scstadmin-2.2.0.tar.bz2
8a61bbcebd5634acde4c7b7d7049050072e7b9aeffaf0b2ff07ad5aa2d1bb0b0  scstadmin.initd"
sha512sums="0c1ebf27203c63f3ec16a6c4ca159d4203da902ed8cc3fc6b8a415847c39a83294609c325e0c736e60a8e7cbb445ab2f3914dd9df980238363c6d8be98f0d08e  scstadmin-2.2.0.tar.bz2
ba39bb8e7bfd77cfcdac42c8f34867d1dbccd0f153307e1630ecc0d11a02fb8275aecd87ea8a05c2d1fa939457e434a5a8c26c69f6f1cf9a47ef486eb0ab43a3  scstadmin.initd"