SRC_FETCH_METHOD="http" SRC_FETCH_PATH="https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PKGVER}.tar.gz" PATCH_LIST="revert-lowdelay.diff" FILE_LIST= MAKEDEPENDS=( "openssl-*:::*.so *.so.* *.h" "zlib-*:::*.so *.h *.so.*" ) # only these two targets depend on libresolv # CPPFLAGS are used during the configure, for instance to see if OpenSSL includes are there. # use --disable-strip, otherwise the host strip is called on binaries function do_config { CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -g0" \ CPPFLAGS="-I${FLXROOTDIR}/usr/include" \ ./configure --prefix=/usr --sysconfdir=/etc/ssh --datadir=/usr/share/openssh \ --libexecdir=/usr/bin --with-pid-dir=/var/run \ --without-pam --with-shadow \ --with-ssl-dir=$FLXROOTDIR/usr/lib/ \ --with-ipaddr-display --without-4in6 \ --disable-strip \ --host=$FLXTARG --build=$FLXHOST } function do_compile_only { local ARGS="ASKPASS_LOCATION=/usr/bin AR=$AR RANLIB=$RANLIB LD=$CC" $FLXPMAKE $ARGS all } function do_prepack { $FLXMAKE install-files install-sysconf host-key DESTDIR=$ROOTDIR if [ -L $ROOTDIR/usr/bin/slogin ]; then # this link is a bit wrong rm -f $ROOTDIR/usr/bin/slogin ln -s ssh $ROOTDIR/usr/bin/slogin fi mkdir -m 0755 -p $ROOTDIR/usr/share/examples/openssh mkdir -m 0500 -p $ROOTDIR/var/empty mkdir -m 0500 -p $ROOTDIR/usr/share/openssh ( rmdir $ROOTDIR/var/empty && rmdir $ROOTDIR/var; ) 2>/dev/null rm -rf $ROOTDIR/etc/ssh/ssh_host_* mv $ROOTDIR/etc/ssh/moduli $ROOTDIR/usr/share/openssh/moduli mv $ROOTDIR/etc $EXAMPLEDIR/$PKGRADIX/ mv $EXAMPLEDIR/$PKGRADIX/etc/ssh/sshd_config $EXAMPLEDIR/$PKGRADIX/etc/ssh/sshd_config.default cp $PKGDIR/add-ons/sshd_config $EXAMPLEDIR/$PKGRADIX/etc/ssh/ mkdir -p $ROOTDIR/etc/ssh $ROOTDIR/sbin/init.d cp $PKGDIR/add-ons/sshd $ROOTDIR/sbin/init.d/ cd $ROOTDIR set_default_perm $ROOTDIR set_perm root:adm 751 $ROOTDIR/etc/ssh set_perm root:adm 555 $ROOTDIR/sbin/init.d/sshd set_perm root:adm 644 $EXAMPLEDIR/$PKGRADIX/etc/ssh/sshd_config }