mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 10:12:59 +01:00
we depend on tar sine the tarball comtains files with readonly permissions. busybox tar gets problems with writing to the dirs with those permissions.
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Contributor: Francesco Colista <francesco.colista@gmail.com>
|
|
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
|
|
pkgname=rutorrent
|
|
pkgver=3.6
|
|
pkgrel=0
|
|
pkgdesc="Yet another web front-end for rTorrent"
|
|
url="http://code.google.com/p/rutorrent/"
|
|
arch="noarch"
|
|
license="GPL"
|
|
depends="php curl"
|
|
depends_dev=""
|
|
|
|
# we need to user gnu tar since the permissions on files in tar archive are
|
|
# bad
|
|
makedepends="tar"
|
|
|
|
pkggroups="rutorrent"
|
|
install="$pkgname.pre-install $pkgname.post-install"
|
|
subpackages=""
|
|
source="http://dl.bintray.com/novik65/generic/rutorrent-$pkgver.tar.gz"
|
|
_builddir="$srcdir"/$pkgname
|
|
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
chmod -R u+w "$_builddir"
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
install -d $pkgdir/usr/share/webapps/$pkgname
|
|
install -d $pkgdir/var/www/localhost/htdocs/
|
|
cp -r * $pkgdir/usr/share/webapps/$pkgname
|
|
chgrp -R rutorrent $pkgdir/usr/share/webapps/$pkgname/share
|
|
chmod 0775 $pkgdir/usr/share/webapps/$pkgname/share/settings
|
|
chmod 0775 $pkgdir/usr/share/webapps/$pkgname/share/torrents
|
|
chmod 0775 $pkgdir/usr/share/webapps/$pkgname/share/users
|
|
}
|
|
|
|
md5sums="e5a908b9473be73007b614f4a72fc1d3 rutorrent-3.6.tar.gz"
|
|
sha256sums="cd2fb3c4e2799f232bf0844b54ce2065d34a927a15b7ae14746714ce79d829f5 rutorrent-3.6.tar.gz"
|
|
sha512sums="a3686c77ced2a76f0656bee776f6536d8967cebb130a87987b7be40b4183fb3cb9598ded230831a54e213a3f87a2a2a8829fb6a329bd9fe8a3f520d5f34dcd3b rutorrent-3.6.tar.gz"
|