summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 600bc1d1b7b2da207f488c759e0f55e9134a8b7c (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.27.33
pkgrel=1
pkgdesc="A Collaborative Passwords Manager"
arch=('any')
url="http://www.teampass.net/"
license=('AGPL3')
depends=('mysql' 'php')
optdepends=('php-ldap: if using LDAP identification')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/nilsteampassnet/TeamPass/archive/${pkgver}.tar.gz")
sha256sums=('2db6bbd53454267b30893e54d468fb4f0d1b7016cbcb65f2c5b2f68e756e2bf2')

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: