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
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
7 name=openssh
8 version=5.8p2
9 release=1
10 source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz sshd)
11
12 build() {
13 cd $name-$version
14 sed -i 's/p1/p2/' version.h
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" \
29 --with-libs="$LIBS -L$CLFS/usr/lib"
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 }