openssh: update /etc/pam.d/sshd to use system-remote-login from pam-base.
This commit is contained in:
parent
5161d10ee5
commit
ea946e5c68
2 changed files with 9 additions and 8 deletions
6
srcpkgs/openssh/files/sshd.pam
Normal file
6
srcpkgs/openssh/files/sshd.pam
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#%PAM-1.0
|
||||||
|
#auth required pam_securetty.so #disable remote root
|
||||||
|
auth include system-remote-login
|
||||||
|
account include system-remote-login
|
||||||
|
password include system-remote-login
|
||||||
|
session include system-remote-login
|
|
@ -3,7 +3,7 @@ _desc="The OpenSSH implementation of SSH protocol"
|
||||||
|
|
||||||
pkgname=openssh
|
pkgname=openssh
|
||||||
version=6.7p1
|
version=6.7p1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh
|
configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh
|
||||||
--sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody
|
--sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody
|
||||||
|
@ -14,7 +14,7 @@ hostmakedepends="automake libtool perl"
|
||||||
makedepends="zlib-devel libressl-devel pam-devel"
|
makedepends="zlib-devel libressl-devel pam-devel"
|
||||||
short_desc="${_desc} - client"
|
short_desc="${_desc} - client"
|
||||||
replaces="openssh-client<6.1p1"
|
replaces="openssh-client<6.1p1"
|
||||||
conf_files="/etc/ssh/moduli /etc/ssh/ssh_config"
|
conf_files="/etc/ssh/moduli /etc/ssh/ssh_config /etc/pam.d/sshd"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.openssh.org"
|
homepage="http://www.openssh.org"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
|
@ -47,12 +47,7 @@ post_install() {
|
||||||
-e 's|^#\(PrintMotd\) yes|\1 no|g' \
|
-e 's|^#\(PrintMotd\) yes|\1 no|g' \
|
||||||
${DESTDIR}/etc/ssh/sshd_config
|
${DESTDIR}/etc/ssh/sshd_config
|
||||||
|
|
||||||
# Disable pam_cracklib
|
vinstall ${FILESDIR}/sshd.pam 644 etc/pam.d sshd
|
||||||
sed '/pam_cracklib.*/d' -i ${DESTDIR}/etc/pam.d/sshd
|
|
||||||
# Enable pam_lastlog(8) by default.
|
|
||||||
echo -e "session\trequired\tpam_lastlog.so\tnever\tsilent\n" >> ${DESTDIR}/etc/pam.d/sshd
|
|
||||||
# Enable pam_systemd by default.
|
|
||||||
echo -e "-session\toptional\tpam_systemd.so\n" >> ${DESTDIR}/etc/pam.d/sshd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
openssh-server_package() {
|
openssh-server_package() {
|
||||||
|
|
Loading…
Reference in a new issue