45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
name='openssh'
|
|
release='2'
|
|
version='9.3p1'
|
|
url='https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable'
|
|
description='OpenBSD ssh server & client'
|
|
email='aliriza.keskin@pardus.org.tr'
|
|
maintainer='aliriza'
|
|
license=('GPLv3')
|
|
source=("https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz"
|
|
"sshd.initd"
|
|
"sshd.confd")
|
|
depends=(zlib libxcrypt openssl libmd)
|
|
makedepends=()
|
|
md5sums=('3430d5e6e71419e28f440a42563cb553'
|
|
'SKIP'
|
|
'SKIP')
|
|
group=(net.misc)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
cd $name-$version
|
|
|
|
setup(){
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64/ \
|
|
--sysconfdir=/etc/ssh \
|
|
--disable-strip \
|
|
--with-ssl-engine \
|
|
--with-privsep-user=nobody \
|
|
--with-pid-dir=/run \
|
|
--with-default-path='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
|
}
|
|
|
|
build(){
|
|
make $jobs
|
|
}
|
|
|
|
package(){
|
|
make install $jobs DESTDIR="${DESTDIR}"
|
|
install -m755 -D ../sshd.initd "$DESTDIR"/etc/init.d/sshd
|
|
install -m755 -D ../sshd.confd "$DESTDIR"/etc/conf.d/sshd
|
|
}
|
|
|