Difference between revisions of "OpenSSH"

From CBLFS
Jump to navigationJump to search
(Dependencies)
Line 21: Line 21:
 
* [[OpenSC]]
 
* [[OpenSC]]
 
* [[libsectok]]
 
* [[libsectok]]
 
== All Arches ==
 
 
groupadd -g 50 sshd &&
 
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
 
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 31: Line 26:
 
Compile the package:
 
Compile the package:
  
 +
groupadd -g 50 sshd &&
 +
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
 
  install -v -m700 -d /var/lib/sshd &&
 
  install -v -m700 -d /var/lib/sshd &&
 
  chown -v root:sys /var/lib/sshd &&
 
  chown -v root:sys /var/lib/sshd &&
Line 52: Line 49:
 
Compile the package:
 
Compile the package:
  
 +
groupadd -g 50 sshd &&
 +
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
 
  install -v -m700 -d /var/lib/sshd &&
 
  install -v -m700 -d /var/lib/sshd &&
 
  chown -v root:sys /var/lib/sshd &&
 
  chown -v root:sys /var/lib/sshd &&
Line 70: Line 69:
 
Compile the package:
 
Compile the package:
  
 +
groupadd -g 50 sshd &&
 +
useradd -c 'sshd PrivSep' -d /var/lib32/sshd -g sshd -s /bin/false -u 50 sshd
 
  install -v -m700 -d /var/lib32/sshd &&
 
  install -v -m700 -d /var/lib32/sshd &&
 
  chown -v root:sys /var/lib32/sshd &&
 
  chown -v root:sys /var/lib32/sshd &&
Line 88: Line 89:
 
Compile the package
 
Compile the package
  
 +
groupadd -g 50 sshd &&
 +
useradd -c 'sshd PrivSep' -d /var/lib64/sshd -g sshd -s /bin/false -u 50 sshd
 
  install -v -m700 -d /var/lib64/sshd &&
 
  install -v -m700 -d /var/lib64/sshd &&
 
  chown -v root:sys /var/lib64/sshd &&
 
  chown -v root:sys /var/lib64/sshd &&

Revision as of 13:03, 4 September 2006

Download Source: http://sunsite.ualberta.ca/pub/OpenBSD/OpenSSH/portable/openssh-4.3p2.tar.gz

Dependencies

Required

Optional

Non-Multilib

Compile the package:

groupadd -g 50 sshd &&
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
install -v -m700 -d /var/lib/sshd &&
chown -v root:sys /var/lib/sshd &&
./configure --prefix=/usr --sysconfdir=/etc/ssh \
--libexecdir=/usr/sbin --with-md5-passwords \
--with-privsep-path=/var/lib/ssh &&
make

Install the package

make install
install -v -m755 -d /usr/share/doc/openssh-4.3p2 &&
install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
/usr/share/doc/openssh-4.3p2

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Compile the package:

groupadd -g 50 sshd &&
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
install -v -m700 -d /var/lib/sshd &&
chown -v root:sys /var/lib/sshd &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc/ssh \
--libexecdir=/usr/sbin --with-md5-passwords \
--with-privsep-path=/var/lib/ssh &&
make

Install the package

make install
install -v -m755 -d /usr/share/doc/openssh-4.3p2 &&
install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
/usr/share/doc/openssh-4.3p2

N32

Compile the package:

groupadd -g 50 sshd &&
useradd -c 'sshd PrivSep' -d /var/lib32/sshd -g sshd -s /bin/false -u 50 sshd
install -v -m700 -d /var/lib32/sshd &&
chown -v root:sys /var/lib32/sshd &&
CC="gcc ${BUILDN32} ./configure --prefix=/usr --sysconfdir=/etc/ssh \
--libexecdir=/usr/sbin --libdir=/usr/lib32 --with-md5-passwords \
--with-privsep-path=/var/lib32/ssh &&
make

Install the package

make install
install -v -m755 -d /usr/share/doc/openssh-4.3p2 &&
install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
/usr/share/doc/openssh-4.3p2

64Bit

Compile the package

groupadd -g 50 sshd &&
useradd -c 'sshd PrivSep' -d /var/lib64/sshd -g sshd -s /bin/false -u 50 sshd
install -v -m700 -d /var/lib64/sshd &&
chown -v root:sys /var/lib64/sshd &&
CC="gcc ${BUILD64} ./configure --prefix=/usr --sysconfdir=/etc/ssh \
--libexecdir=/usr/sbin --with-md5-passwords \
--with-privsep-path=/var/lib64/ssh &&
make

Install the package

make install
install -v -m755 -d /usr/share/doc/openssh-4.3p2 &&
install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
/usr/share/doc/openssh-4.3p2

Configuring

BootScript

Install the /etc/rc.d/init.d/gpm init script included in the blfs-bootscripts package.

make install-gpm