summaryrefslogtreecommitdiffstats
path: root/main/scstadmin/APKBUILD
blob: f82bae50468607a781a39c95c185f3040d336cd2 (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
# Contributor: Carlo Landmeter
# Maintainer: 
pkgname=scstadmin
pkgver=2.2.0
pkgrel=1
pkgdesc="SCST administration tool written in perl"
url="http://scst.sourceforge.net"
arch="noarch"
license="GPL-2"
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
41f23a0f0c11034f19e06ed057922c35  scstadmin.initd"