summaryrefslogtreecommitdiffstats
path: root/base/openssh/Pkgfile
blob: 774701e232dc99662167c3b87263f5607edcd0ed (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
# Description: Outils client et serveur de shell sécurisé
# URL: http://www.openssh.org/
# Maintainer: NuTyX coreteam
# Packager: thierryn1 at hispeed dot ch

name=openssh
version=5.6p1
release=1
source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz)

build() {
	cd $name-$version
        sed -i "s:-lcrypto:/usr/lib/libcrypto.a -ldl:g" configure
        sed -i "s/lkrb5 -ldes/lkrb5/" configure
	./configure --prefix=/usr \
	--sysconfdir=/etc/ssh \
	--libexecdir=/usr/lib/openssh \
	--with-tcp-wrappers --with-md5-passwords \
	--with-privsep-path=/var/lib/sshd \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info \
	--without-sshd \
	--disable-debug
	make DESTDIR=$PKG install
	rm -r $PKG/var
	# Suppression des services et leurs man
	rm $PKG/etc/ssh/sshd_config
	rm -r $PKG/usr/sbin
	rm -r $PKG/usr/share/man/man8
	rm -r $PKG/usr/lib
}