CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
util-linux-ng: update to 2.19.1
[crossrootfs.git] / openssh / Pkgfile
CommitLineData
fe2701c6
VM
1# Description: Secure SHell server and client tools
2# URL: http://www.openssh.org/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on: openssl zlib tcp_wrappers
6
7name=openssh
ca24a20e 8version=5.8p2
fe2701c6
VM
9release=1
10source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz sshd)
11
12build() {
13 cd $name-$version
ca24a20e 14 sed -i 's/p1/p2/' version.h
fe2701c6
VM
15 ./configure --build=$CHOST \
16 --host=$CTARGET \
17 --prefix=/usr \
18 --libexecdir=/usr/lib/ssh \
19 --sysconfdir=/etc/ssh \
20 --with-mantype=man \
21 --mandir=/usr/man \
22 --with-tcp-wrappers \
23 --with-md5-passwords \
24 --with-privsep-user=nobody \
25 --with-privsep-path=/var/empty \
26 --with-xauth=/usr/bin/xauth \
27 --with-zlib="$CLFS/usr" \
28 --with-ssl-dir="$CLFS/usr" \
cda466e7 29 --with-libs="$LIBS -L$CLFS/usr/lib"
fe2701c6
VM
30
31 make AR="$AR" RANLIB="$RANLIB" AS="$AS" LD="$CC"
32 make DESTDIR=$PKG STRIP_OPT="-s --strip-program=$STRIP" AR="$AR" RANLIB="$RANLIB" AS="$AS" install
33 install -D -m 755 $SRC/sshd $PKG/etc/rc.d/sshd
34 rm -rf $PKG/usr/share $PKG/var
35}