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'
|
'opencv'
|
||||||
'hdf5'
|
'hdf5'
|
||||||
'pam-python'
|
'pam-python'
|
||||||
'python2'
|
|
||||||
'python3'
|
'python3'
|
||||||
'python-pillow'
|
'python-pillow'
|
||||||
'python-dlib'
|
'python-dlib'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: boltgolt <boltgolt@gmail.com>
|
# Maintainer: boltgolt <boltgolt@gmail.com>
|
||||||
# Maintainer: Kelley McChesney <kelley@kelleymcchesney.us>
|
# Maintainer: Kelley McChesney <kelley@kelleymcchesney.us>
|
||||||
pkgname=pam-python
|
pkgname=pam-python
|
||||||
pkgver=1.0.6
|
pkgver=1.0.7
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Python for PAM"
|
pkgdesc="Python for PAM"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
|
@ -15,36 +15,27 @@ makedepends=(
|
||||||
'cmake'
|
'cmake'
|
||||||
)
|
)
|
||||||
source=(
|
source=(
|
||||||
"https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.6-1/pam-python-1.0.6.tar.gz"
|
"https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.7-1/pam-python-1.0.7.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'
|
|
||||||
)
|
)
|
||||||
|
sha256sums=('96ce72fe355b03b87c0eb540ecef06f33738f98f56581e81eb5bffbad1a47e07')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
# Preparing pam-python to be installed
|
# 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/setup.py
|
||||||
sed -i'' 's|#!/usr/bin/python -W default|#!/usr/bin/python2 -W default|g' src/test.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|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile
|
||||||
sed -i'' 's|sphinx-build|sphinx-build2|g' doc/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() {
|
build() {
|
||||||
# Building pam-python
|
# Building pam-python
|
||||||
cd pam-python-1.0.6
|
cd "$srcdir/pam-python-$pkgver"
|
||||||
PREFIX=/usr make
|
PREFIX=/usr make
|
||||||
cd ..
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# Installing pam-python
|
# Installing pam-python
|
||||||
cd pam-python-1.0.6
|
cd "$srcdir/pam-python-$pkgver"
|
||||||
PREFIX=/usr make DESTDIR="$pkgdir/" install
|
PREFIX=/usr make DESTDIR="$pkgdir/" install
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue