Skip to content

Commit

Permalink
pam-python 1.0.7, fixes a root exploit
Browse files Browse the repository at this point in the history
  • Loading branch information
kageurufu committed Nov 15, 2019
1 parent d4a43e1 commit 37bcc3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
1 change: 0 additions & 1 deletion archlinux/howdy/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ depends=(
'opencv'
'hdf5'
'pam-python'
'python2'
'python3'
'python-pillow'
'python-dlib'
Expand Down
25 changes: 8 additions & 17 deletions archlinux/pam-python/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: boltgolt <[email protected]>
# Maintainer: Kelley McChesney <[email protected]>
pkgname=pam-python
pkgver=1.0.6
pkgver=1.0.7
pkgrel=1
pkgdesc="Python for PAM"
arch=('x86_64')
Expand All @@ -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
}

0 comments on commit 37bcc3a

Please sign in to comment.