summaryrefslogtreecommitdiff
path: root/pcr/roundcube-rcguard-plugin-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-07 22:35:32 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-07 22:35:32 -0200
commitcd33b4d3fb678ab356ae86e49212fd3b0c1f7f3d (patch)
tree2db2873a23fed1a49b4cdb76b8f14fd6820f38ea /pcr/roundcube-rcguard-plugin-git
parent515b43cfeaf303e3bf0532e3bafa5cd17efd75ee (diff)
parent02b8834a3b334793fe0722331078c883f3457c15 (diff)
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/roundcube-rcguard-plugin-git')
-rw-r--r--pcr/roundcube-rcguard-plugin-git/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/roundcube-rcguard-plugin-git/PKGBUILD b/pcr/roundcube-rcguard-plugin-git/PKGBUILD
new file mode 100644
index 000000000..d19298af7
--- /dev/null
+++ b/pcr/roundcube-rcguard-plugin-git/PKGBUILD
@@ -0,0 +1,32 @@
+# Contributor: achterin
+# Maintainer : Parabola Aurélien Desbrières <aurelien@hackers.guru>
+
+pkgname=roundcube-rcguard-plugin-git
+_gitname=rcguard
+pkgver=47.baadec2
+pkgrel=1
+pkgdesc="Roundcube plugin that enforces reCAPTCHA for users that have too many failed logins"
+arch=('any')
+url="https://github.com/dennylin93/rcguard"
+license=('BSD')
+depends=('roundcubemail>=0.9.0')
+makedepends=('git')
+optdepends=('mysql'
+ 'sqlite'
+ 'postgresql')
+source=(git+https://github.com/dennylin93/rcguard.git)
+
+pkgver() {
+ cd $_gitname
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+package() {
+ _instdir=${pkgdir}/usr/share/webapps/roundcubemail/plugins
+ install -dm755 ${_instdir}
+ rm -r ${srcdir}/rcguard/.git
+ cp -r ${srcdir}/rcguard ${_instdir}
+
+ # fix all the 644 perms on files
+ find ${_instdir} -type f -exec chmod 644 {} \;
+}