From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- network/openssh/openssh.build | 122 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100755 network/openssh/openssh.build (limited to 'network/openssh/openssh.build') diff --git a/network/openssh/openssh.build b/network/openssh/openssh.build new file mode 100755 index 0000000..1d55520 --- /dev/null +++ b/network/openssh/openssh.build @@ -0,0 +1,122 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=openssh +VERSION=6.2p1 +BUILD=1 +DEPENDS=('openssl >= 1.0.1e-1' 'tcpip >= 20130209-1') + +# Description + +cat > ${PKG}/install/slack-desc <> ${PKG}/install/doinst.sh <> etc/passwd +fi + +if ! grep -q "^sshd:" etc/group ; then + echo "sshd::33:sshd" >> etc/group +fi + +if ! grep -q "^sshd:" etc/shadow ; then + echo "sshd:*:9797:0:::::" >> etc/shadow +fi + +# Add a btmp file to store login failure if one doesn't exist: + +if [ ! -r var/log/btmp ]; then + ( cd var/log ; umask 077 ; touch btmp ) +fi +EOF + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${VERSION} +SRCPACK[0]=http://ftp.belnet.be/pub/OpenBSD/OpenSSH/portable/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz + +build0() +{ +#FIXME: PAM +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}/ssh" \ + --libdir="${SYS_DIR[lib]}" \ + --libexecdir="${SYS_DIR[lib]}/exec" \ + --localstatedir="${SYS_DIR[var]}" \ + --without-pam \ + --with-xauth="${SYS_DIR[bin]}/xauth" \ + --with-pid-dir="${SYS_DIR[run]}/sshd" \ + --with-default-path="/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin" \ + --with-md5-passwords \ + --with-tcp-wrappers \ + --with-privsep-user=sshd \ + --with-privsep-path="${SYS_DIR[var]}/empty" +make ${JOBS} +make install DESTDIR="${PKG}" +doc CREDITS README.{dns,privsep,tun} +changelog ChangeLog +license LICENCE +install.dir ${PKG}${SYS_DIR[var]}/empty +install.dir ${PKG}${SYS_DIR[etc]}/{rc.d,tmpfiles.d} +install.bin rc.sshd.new ${PKG}${SYS_DIR[etc]}/rc.d +install.dat sshd.conf.tmpfilesd ${PKG}${SYS_DIR[etc]}/tmpfiles.d/sshd.conf +install.bin contrib/ssh-copy-id ${PKG}${SYS_DIR[bin]} +install.man contrib/ssh-copy-id.1 ${PKG}${SYS_DIR[man]}/man1 +install.dir ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.cfg systemd/* ${PKG}${SYS_DIR[systemdsystemunitdir]} +( + cd ${PKG}${SYS_DIR[etc]}/ssh + rm -f ssh_host*key.* + mv ssh_config ssh_config.new + mv sshd_config sshd_config.new +) +} -- cgit v1.2.3-70-g09d2