summaryrefslogtreecommitdiffstats
path: root/openssh/Pkgfile
blob: 9b71d75ce11fbf921c8b47074a7e237e24cd3a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
description="Secure SHell server and client tools."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.openssh.org/"
depends=(openssl zlib tcp_wrappers)

name=openssh
version=5.6p1
release=1
source=(
	ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz
	sshd
)
build () 
{ 
	cd $name-$version;
	./configure \
		${CHOST:+-build=${CHOST}} \
		${CTARGET:+-host=${CTARGET}} \
		--prefix=$prefix \
		--libexecdir=$libdir/ssh \
		--sysconfdir=$sysconfdir/ssh \
		--with-mantype=man \
		--mandir=$mandir \
		--with-tcp-wrappers \
		--with-md5-passwords \
		--with-privsep-user=nobody \
		--with-privsep-path=/var/empty \
		--with-xauth=/usr/bin/xauth;
	make;
	make DESTDIR=$PKG install;
	install -D -m 755 $SRC/sshd $PKG/etc/rc.d/sshd;
	rm -rf  $PKG/var
}