2017-10-27 21:56:50 +02:00
|
|
|
|
# Tanım: Free version of the SSH connectivity tools
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.openssh.org/
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
isim=openssh
|
|
|
|
|
surum=7.1p2
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
kaynak=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$isim-$surum.tar.gz
|
2017-10-27 21:56:50 +02:00
|
|
|
|
http://downloads.nutyx.org/files/patchs/openssh-server/service-saravane-01.patch)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2016-02-24 01:27:23 +01:00
|
|
|
|
source /etc/blfs-bootscripts
|
|
|
|
|
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
|
|
|
|
|
|
|
|
|
|
unset MAKEFLAGS
|
2017-10-28 14:15:02 +02:00
|
|
|
|
cd $isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
install -v -m700 -d $PKG/var/lib/sshd
|
|
|
|
|
|
|
|
|
|
chown -v root:sys $PKG/var/lib/sshd
|
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--sysconfdir=/etc/ssh \
|
|
|
|
|
--datadir=/usr/share/sshd \
|
|
|
|
|
--with-md5-passwords \
|
|
|
|
|
--with-privsep-path=/var/lib/sshd \
|
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
|
--infodir=/usr/share/info
|
|
|
|
|
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
|
|
if [ -f /etc/pam.d/login ]; then
|
|
|
|
|
mkdir -p $PKG/etc/pam.d
|
|
|
|
|
sed 's@d/login@d/sshd@g' /etc/pam.d/login > $PKG/etc/pam.d/sshd
|
|
|
|
|
chmod 644 $PKG/etc/pam.d/sshd
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
install -v -m755 contrib/ssh-copy-id $PKG/usr/bin
|
|
|
|
|
install -v -m644 contrib/ssh-copy-id.1 \
|
|
|
|
|
$PKG/usr/share/man/man1
|
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
install -v -m755 -d $PKG/usr/share/doc/$isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
install -v -m644 INSTALL LICENCE OVERVIEW README* \
|
2017-10-28 14:15:02 +02:00
|
|
|
|
$PKG/usr/share/doc/$isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
cd $SRC
|
|
|
|
|
|
|
|
|
|
tar xf $scripts-$scriptsversion.tar.bz2
|
|
|
|
|
cd $SRC/$scripts-$scriptsversion
|
|
|
|
|
patch -Np1 -i ../service-saravane-01.patch
|
|
|
|
|
make DESTDIR=$PKG install-sshd
|
|
|
|
|
}
|