summaryrefslogtreecommitdiffstats
path: root/core/openssh/APKBUILD
blob: 1971d5dd6e35f9b51be3ad29d28968e13eb76578 (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
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openssh
pkgver=5.1_p1
_myver=5.1p1
pkgrel=2
pkgdesc="Port of OpenBSD's free SSH release"
url="http://www.openssh.org/portable.html"
license="as-is"
depends="openssl zlib"
makedepends="openssl-dev zlib-dev"
subpackages="$pkgname-doc"
source="ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$_myver.tar.gz
	sshd.initd
	sshd.confd
	"

build () 
{ 
	cd $startdir/src/$pkgname-$_myver
	sed -i -e '/_PATH_XAUTH/s:/usr/X11R6/bin/xauth:/usr/bin/xauth:' \
		pathnames.h || return 1

	./configure --prefix=/usr \
		--with-mantype=man \
		--mandir=/usr/share/man \
	        --with-ldflags="${LDFLAGS}" \
	        --disable-strip \
	        --sysconfdir=/etc/ssh \
        	--datadir=/usr/share/openssh \
	        --with-privsep-path=/var/empty \
	        --with-privsep-user=sshd \
	        --with-md5-passwords \
	        --with-ssl-engine \
		--libexecdir=/usr/lib/ssh \
		--without-tcp-wrappers \
		--without-pam

	make || return 1
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/var/empty
	install -D -m755 "$srcdir"/sshd.initd "$pkgdir"/etc/init.d/sshd
	install -D -m644 "$srcdir"/sshd.confd "$pkgdir"/etc/conf.d/sshd
}
md5sums="03f2d0c1b5ec60d4ac9997a146d2faec  openssh-5.1p1.tar.gz
f71564ffab359faead63717920c3086b  sshd.initd
b35e9f3829f4cfca07168fcba98749c7  sshd.confd"