blob: 680de8506050af2c1fd3ef690b64074d09d211c9 (
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
42
43
44
45
46
47
48
49
|
# Contributor: Brian Moore <archlinux@cptl.org>
pkgname=shellinabox
pkgver=2.14
pkgrel=4
pkgdesc="A web-based ssh client."
arch=('i686' 'x86_64')
url="http://shellinabox.com/"
license=('GPL2')
depends=('runit-scripts>=8.0-2')
optdepends=('openssh: SSL support')
makedepends=(openssh)
install=shellinaboxd.install
backup=('etc/conf.d/shellinaboxd')
source=("http://shellinabox.googlecode.com/files/$pkgname-$pkgver.tar.gz" "shellinaboxd.rc.d" "shellinaboxd.conf.d" "shellinaboxd.service"
"shellinaboxd.include" "shellinaboxd.gen_light_conf.d")
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR=$pkgdir install || return 1
install -Dm755 $srcdir/shellinaboxd.rc.d $pkgdir/etc/rc.d/shellinaboxd
install -D -m644 $srcdir/shellinaboxd.service $pkgdir/usr/lib/systemd/system/shellinaboxd.service
install -Dm644 $srcdir/shellinaboxd.conf.d $pkgdir/etc/conf.d/shellinaboxd
install -dm700 -o nobody $pkgdir/var/lib/shellinabox
#install conf files for lighttpd
mkdir -p ${pkgdir}/etc/lighttpd
install -D -m 644 ${srcdir}/shellinaboxd.include ${pkgdir}/etc/lighttpd/
#gen_light_conf
install -D -m 744 ${srcdir}/shellinaboxd.gen_light_conf.d ${pkgdir}/etc/gen_light_conf.d/shellinaboxd.conf
}
md5sums=('6c63b52edcebc56ee73a108e7211d174'
'feea22575089cc7eb4925b1daff88b8c'
'77e487f36da2abe51251500f4a1e024f'
'be649866d06ba497d88bb14f3e58f862'
'06b131e47522d8028aa245c1b8884e00'
'aadd1edf4110aca2d16d806791e90019')
|