diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 34 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5cbecc04db3e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Tue May 9 15:04:56 UTC 2017 +pkgbase = python2-pypam + pkgdesc = PAM module that runs the Python interpreter and so allows PAM modules to be written in Python. + pkgver = 1.0.6 + pkgrel = 1 + url = http://pam-python.sourceforge.net/ + arch = x86_64 + license = AGPL3 + makedepends = python2-sphinx + depends = python2 + options = !strip + options = !emptydirs + source = https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.6-1/pam-python-1.0.6.tar.gz + md5sums = 2da730f15d62b10b87e1f18c21e16fb4 + +pkgname = python2-pypam + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e28f6f20ed95 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +src +pkg +*.sign +*.xz +*.pkg* +*.part +*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..73fa53c93870 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Maikel Wever <maikelwever@gmail.com> + +pkgname=python2-pypam +pkgver=1.0.6 +pkgrel=1 +pkgdesc="PAM module that runs the Python interpreter and so allows PAM modules to be written in Python." +arch=('x86_64') +url="http://pam-python.sourceforge.net/" +license=('AGPL3') +depends=('python2') +options=('!strip' '!emptydirs') +makedepends=('python2-sphinx') +source=( + "https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.6-1/pam-python-1.0.6.tar.gz" +) + +md5sums=('2da730f15d62b10b87e1f18c21e16fb4') + +build() { + cd pam-python-${pkgver} + sed -i'' 's|#!/usr/bin/python -W default|#!/usr/bin/python2 -W default|g' src/setup.py + sed -i'' 's|#!/usr/bin/python -W default|#!/usr/bin/python2 -W default|g' src/test.py + sed -i'' 's|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile + sed -i'' 's|sphinx-build|sphinx-build2|g' doc/Makefile + + make +} + +package() { + cd pam-python-${pkgver} + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: |