Conversation
|
Thanks for your contribution! |
| # The following guidelines are specific to BZR, GIT, HG and SVN packages. | ||
| # Other VCS sources are not natively supported by makepkg yet. | ||
|
|
||
| # Maintainer: Your Name <youremail@domain.com> |
There was a problem hiding this comment.
Please, put your name and email here!
|
|
||
| FILE=/usr/share/pam-configs/Facerec | ||
| SUDO=/etc/pam.d/sudo | ||
| TEXT='auth sufficient pam_python.so /lib/Auth/Facerec/pam.py' |
There was a problem hiding this comment.
I think this won't work. The file will be /usr/lib/Auth/Facerec/pam_ptn.py
There was a problem hiding this comment.
but the file name is pam_ptn.py
| if grep -q $TEXT $SUDO;then | ||
| sed -i $TEXT $SUDO | ||
| else | ||
| echo "NotE" |
There was a problem hiding this comment.
I have removed the block, as it was not functing as expected during installation, instead user has to manually ass the following line auth sufficient pam_python.so /lib/Auth/Facerec/pam_ptn.py to /etc/pam.d/sudo to enable and disable the authentication package
| import sys | ||
| import numpy as np | ||
|
|
||
| from os import system | ||
|
|
||
| if __name__ == '__main__': | ||
|
|
||
| sp = np.array(sys.path) | ||
| np.save("/usr/lib/Auth/Facerec/deps_path.npy", sp) | ||
| system("sudo python3 /usr/lib/Auth/Facerec/cli_info.py") |
There was a problem hiding this comment.
Can't we use the build.py that is already there?
There was a problem hiding this comment.
We do not need common-auth for ArchLinux instead, it should be done manually by adding or removing auth sufficient pam_python.so /lib/Auth/Facerec/pam_ptn.py from /etc/pam.d/sudo to enable and disable respectively.
Archlinux package based on