# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=tinyssh pkgver=20160301 pkgrel=0 pkgdesc="Small SSH server using NaCl / TweetNaCl (no dependency on OpenSSL)" url="http://tinyssh.org/" arch="all" license="CC0 1.0" makedepends="$depends_dev libsodium-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.bz2::http://mojzis.com/software/$pkgname/$pkgname-$pkgver.tar.bz2 $pkgname.initd $pkgname.confd " _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" export LIBS="-lsodium" export CFLAGS="$CFLAGS -I/usr/include/sodium" export LDFLAGS="-L/usr/lib" make || return 1 } package() { cd "$_builddir" make install DESTDIR="${pkgdir}" || return 1 mkdir -p "$pkgdir"/etc/$pkgname install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/tinysshd || return 1 install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/tinysshd || return 1 # post-install message mkdir -p "$pkgdir/usr/share/doc/$pkgname" cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <' manually): echo '22 stream tcp nowait root /usr/sbin/tinysshd tinysshd -l -v /etc/tinyssh/sshkeys' >> /etc/inetd.conf rc-service inetd start (3) Using runit with either (1) or (2) Stealth SSH with FWKNOP: https://it-offshore.co.uk/security/53-stealth-your-ssh-port-ssh-into-lxc-containers EOF } md5sums="fbda682e8e0d0f3f767813fe8f399cad tinyssh-20160301.tar.bz2 78ec724804035bae29e1c47abec737d8 tinyssh.initd 83e705f0f71db5ae0d8530edafa63497 tinyssh.confd" sha256sums="ecc0acb4ab93221f08322ba00554546efaa44cd550f60d6c1469376d8144864a tinyssh-20160301.tar.bz2 b3584c463f6ba0de6a5fe2e28fb98cd8ef65a55f17a0f4c877f61f54019ef34c tinyssh.initd c6c67395e7230d75077734f0b08d5f8c76f11aaef27878b013b7bd68dd7ba774 tinyssh.confd" sha512sums="c66efc5df65f3c9b2eb3885598c9e004e47e69c76b5e41a880b938717c211322c91b95b54a15ea75953c08239dd68ed4393d7c0f06b088532d3507f6766c44fd tinyssh-20160301.tar.bz2 d10f995c6687e706453e51d06b3466427d476036efdbd86db2f9330281e46049bf2e3698208524b3f70cdbd30373f5bf46c7164dd626d22b3fa9a75ca5d8d478 tinyssh.initd 4513bd0d43ef0825fbd77365a8a7adefcd99211102df76003becf7e3a09a47ad9bbd16a68c3fadfb7868e0562f8d42a26106b7582cb70490a7e52a7d1e6110e9 tinyssh.confd"