pam-python 1.0.7, fixes a root exploit
This commit is contained in:
parent
d4a43e16e8
commit
37bcc3af0f
2 changed files with 8 additions and 18 deletions
|
|
@ -13,7 +13,6 @@ depends=(
|
|||
'opencv'
|
||||
'hdf5'
|
||||
'pam-python'
|
||||
'python2'
|
||||
'python3'
|
||||
'python-pillow'
|
||||
'python-dlib'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: boltgolt <boltgolt@gmail.com>
|
||||
# Maintainer: Kelley McChesney <kelley@kelleymcchesney.us>
|
||||
pkgname=pam-python
|
||||
pkgver=1.0.6
|
||||
pkgver=1.0.7
|
||||
pkgrel=1
|
||||
pkgdesc="Python for PAM"
|
||||
arch=('x86_64')
|
||||
|
|
@ -15,36 +15,27 @@ makedepends=(
|
|||
'cmake'
|
||||
)
|
||||
source=(
|
||||
"https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.6-1/pam-python-1.0.6.tar.gz"
|
||||
"https://sourceforge.net/p/pam-python/tickets/_discuss/thread/5dc8cfd5/5839/attachment/pam-python-1.0.6-fedora.patch"
|
||||
"https://sourceforge.net/p/pam-python/tickets/_discuss/thread/5dc8cfd5/5839/attachment/pam-python-1.0.6-gcc8.patch"
|
||||
)
|
||||
sha256sums=(
|
||||
'0ef4dda35da14088afb1640266415730a6e0274bea934917beb5aca90318f853'
|
||||
'acb9d1b5cf7cad73d5524334b7954431bb9b90f960980378c538907e468c34b5'
|
||||
'02dd9a4d8ec921ff9a2408183f290f08102e3f9e0151786ae7220a4d550bfe24'
|
||||
"https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.7-1/pam-python-1.0.7.tar.gz"
|
||||
)
|
||||
sha256sums=('96ce72fe355b03b87c0eb540ecef06f33738f98f56581e81eb5bffbad1a47e07')
|
||||
|
||||
prepare() {
|
||||
# Preparing pam-python to be installed
|
||||
cd pam-python-1.0.6
|
||||
cd "$srcdir/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
|
||||
patch -p1 < ../pam-python-1.0.6-fedora.patch
|
||||
patch -p1 < ../pam-python-1.0.6-gcc8.patch
|
||||
|
||||
cd ..
|
||||
}
|
||||
|
||||
build() {
|
||||
# Building pam-python
|
||||
cd pam-python-1.0.6
|
||||
cd "$srcdir/pam-python-$pkgver"
|
||||
PREFIX=/usr make
|
||||
cd ..
|
||||
}
|
||||
|
||||
package() {
|
||||
# Installing pam-python
|
||||
cd pam-python-1.0.6
|
||||
cd "$srcdir/pam-python-$pkgver"
|
||||
PREFIX=/usr make DESTDIR="$pkgdir/" install
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue