blob: 273f2b518cfeef5d809ff79b5dc9d186df0ccfc4 (
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
|
# Maintainer: Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: Foppe HEMMINGA <foppe@foppe.org>
# Contributor: David Zaragoza <david@zaragoza.com.ve>
# Contributor: GI_Jack <iamjacksemail@hackermail.com>
pkgname=teampass
pkgver=2.1.26.13
pkgrel=1
pkgdesc="A Collaborative Passwords Manager"
arch=('any')
url="http://www.teampass.net/"
license=('AGPL3')
depends=('mysql' 'php' 'php-mcrypt')
optdepends=('php-ldap: if using LDAP identification')
source=("https://github.com/nilsteampassnet/TeamPass/archive/${pkgver}.tar.gz")
sha256sums=('47c0496a733a71c6bda4610889095d190a88609b032c41a2958a1a1a0407723f')
package() {
cd "${srcdir}"
install -d "${pkgdir}/usr/share/webapps/${pkgname}"
install -d "${pkgdir}/etc/webapps/${pkgname}"
install -D -m644 "${srcdir}/TeamPass-${pkgver}/license.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cp -r "${srcdir}/TeamPass-${pkgver}/"* "${pkgdir}/usr/share/webapps/teampass"
cd "${pkgdir}/usr/share/webapps/teampass"
chown http:http install includes files upload
# Apache configuration
cat > "${pkgdir}/etc/webapps/${pkgname}/apache.example.conf" <<EOF
Alias /teampass "/usr/share/webapps/teampass"
<Directory "/usr/share/webapps/teampass">
AllowOverride All
Options FollowSymlinks
Require all granted
php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/"
</Directory>
EOF
}
# vim:set ts=2 sw=2 et:
|