Merge branch 'master' of github.com:dylanaraps/kiss-experiment

This commit is contained in:
Dylan Araps 2019-07-04 17:52:34 +03:00
commit c7e1f07f28
7 changed files with 35 additions and 24 deletions

View File

@ -10,7 +10,6 @@ Each Package is split into multiple files.
zlib/ # Package name.
├─ build # Build script.
├─ depends # Dependencies (one per line) (sometimes optional).
├─ licenses # Licenses (see below).
├─ sources # Sources (one per line).
├─ version # Package version.
@ -53,7 +52,6 @@ This also means anyone can write a tool to manipulate the repository or even the
* [`depends`](#depends)
* [`version`](#version)
* [`checksums`](#checksums)
* [`licenses`](#licenses)
* [`post-install`](#post-install)
<!-- vim-markdown-toc -->
@ -153,28 +151,6 @@ The `checksums` file contains the `sha256` sums of each entry in the `sources` f
c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1 zlib-1.2.11.tar.gz
```
### `licenses`
The `licenses` file contains the license(s) of the package. Licenses such as `GPL`, `AGPL`, `LGPL`, `MPL`, `Artistic`, `CDDL`, or `Apache` can be written with [SPDX Short Identifier](https://spdx.org/licenses/) one per line, but for license exceptions or copyright notice licenses such as `BSD`, `MIT`, or `ISC`, the copyright notice must be included verbatim.
```
GPL-3.0-or-later
The ISC License
Copyright <YEAR> <OWNER>
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```
### `post-install`
The `post-install` file should contain any steps required directly after the package is installed. This includes updating font databases and creating any post-install symlinks which may be required.

25
extra/openssh/build Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh -e
./configure \
--prefix=/usr \
--datadir=/usr/share/openssh \
--sysconfdir=/etc/ssh \
--without-selinux \
--with-privsep-user=nobody \
--with-mantype=doc \
--without-rpath \
--disable-strip \
--with-ssl-engine \
--with-pid-dir=/run \
--disable-wtmp \
--disable-utmp
make
make DESTDIR="$1" install
install -m 755 contrib/ssh-copy-id "$1/usr/bin/ssh-copy-id"
install -m 644 contrib/ssh-copy-id.1 "$1/usr/share/man/man8/ssh-copy-id.1"
# Install runit services.
install -Dm 755 sshd.run "$1/etc/sv/sshd/run"
ln -s /run/runit/supervise.sshd "$1/etc/sv/sshd/supervise"

2
extra/openssh/checksums Normal file
View File

@ -0,0 +1,2 @@
bd943879e69498e8031eb6b7f44d08cdc37d59a7ab689aa0b437320c3481fd68 openssh-8.0p1.tar.gz
5d32a817344ac444424063d75e49afd95d7eb76d972ef5c5cfad355c8e8b1ff1 sshd.run

2
extra/openssh/depends Normal file
View File

@ -0,0 +1,2 @@
zlib
libressl

View File

@ -0,0 +1,3 @@
#!/bin/sh
ssh-keygen -A >/dev/null 2>&1 # Will generate host keys if they don't already exist.
exec /usr/bin/sshd -D

2
extra/openssh/sources Normal file
View File

@ -0,0 +1,2 @@
https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz
files/sshd.run

1
extra/openssh/version Normal file
View File

@ -0,0 +1 @@
8.0p1 2