summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaun Bouckaert2017-11-20 15:38:02 +1000
committerShaun Bouckaert2017-11-20 15:38:02 +1000
commit9f8ee47aa1bbacaf6a93f3041738dcc45e39c6be (patch)
treef73b168865bf59c09ad6ee71854e0a46c73741ef
downloadaur-9f8ee47aa1bbacaf6a93f3041738dcc45e39c6be.tar.gz
Initial Submission
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD34
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d24722ba0bd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = pam-pgsql-git
+ pkgdesc = PAM module to provide authentication against PostgreSQL tables
+ pkgver = 0.7.3.2.r10.efe2820
+ pkgrel = 1
+ url = https://github.com/pam-pgsql/pam-pgsql
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = pam
+ depends = libgcrypt
+ depends = postgresql-libs>=7.4
+ source = pam-pgsql-git::git+https://github.com/pam-pgsql/pam-pgsql.git
+ md5sums = SKIP
+
+pkgname = pam-pgsql-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..88a04679f20
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Shaun Bouckaert <shaun@train-meditations.com>
+pkgname=pam-pgsql-git
+pkgver=0.7.3.2.r10.efe2820
+pkgrel=1
+pkgdesc="PAM module to provide authentication against PostgreSQL tables"
+arch=('x86_64')
+url="https://github.com/pam-pgsql/pam-pgsql"
+license=('GPL')
+depends=('pam' 'libgcrypt' 'postgresql-libs>=7.4')
+makedepends=('git')
+source=('pam-pgsql-git::git+https://github.com/pam-pgsql/pam-pgsql.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long | sed 's/release.//;s/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$pkgname"
+ make -k check
+}
+
+package() {
+ cd "$pkgname"
+ make DESTDIR="$pkgdir/" install
+}