mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-21 08:15:01 -05:00
Add things for network luks unlock
This commit is contained in:
parent
6266b8dc2c
commit
2ab9a20f30
17
src/mkinitcpio-netconf/.SRCINFO
Normal file
17
src/mkinitcpio-netconf/.SRCINFO
Normal file
@ -0,0 +1,17 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Fri Oct 21 11:22:56 UTC 2016
|
||||
pkgbase = mkinitcpio-netconf
|
||||
pkgdesc = Archlinux mkinitcpio hook for configuring early userspace networking
|
||||
pkgver = 0.0.4
|
||||
pkgrel = 2
|
||||
url = https://github.com/grazzolini/mkinitcpio-netconf
|
||||
changelog = Changelog
|
||||
arch = any
|
||||
license = BSD
|
||||
depends = mkinitcpio-nfs-utils
|
||||
depends = iproute2
|
||||
source = mkinitcpio-netconf-0.0.4.tar.gz::https://github.com/grazzolini/mkinitcpio-netconf/archive/v0.0.4.tar.gz
|
||||
sha512sums = 06ac202410964740785d2977f7918981276e10568260433436c51a1d540152cc28462e46dae6bfa31acd1fafa9ebe1e4f57ca90d7754a09ccaba142c8d48b228
|
||||
|
||||
pkgname = mkinitcpio-netconf
|
||||
|
6
src/mkinitcpio-netconf/.gitignore
vendored
Normal file
6
src/mkinitcpio-netconf/.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
v*.tar.gz
|
||||
mkinitcpio-netconf-*-any.pkg.tar.xz
|
||||
mkinitcpio-netconf-*.tar.gz
|
||||
develop.*
|
||||
pkg/*
|
||||
src/*
|
13
src/mkinitcpio-netconf/Changelog
Normal file
13
src/mkinitcpio-netconf/Changelog
Normal file
@ -0,0 +1,13 @@
|
||||
2015-08-11 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.2 :
|
||||
- Initial support for systemd enabled initrd:
|
||||
+ Check for any files ending in .initramfs in the /etc/systemd/network directory, and copies them to the initrd, and also copy and install systemd-networkd.
|
||||
+ There are some caveats, specially that it won't remove any ip addresses added to the interface: https://github.com/systemd/systemd/issues/780
|
||||
- Corrected the help text.
|
||||
|
||||
2015-07-15 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.1 :
|
||||
- Initial release.
|
||||
- Right now it only support the ip= configuration mode.
|
20
src/mkinitcpio-netconf/PKGBUILD
Normal file
20
src/mkinitcpio-netconf/PKGBUILD
Normal file
@ -0,0 +1,20 @@
|
||||
# Maintainer: Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
pkgname=mkinitcpio-netconf
|
||||
pkgver=0.0.4
|
||||
pkgrel=2
|
||||
pkgdesc="Archlinux mkinitcpio hook for configuring early userspace networking"
|
||||
arch=('any')
|
||||
url="https://github.com/grazzolini/mkinitcpio-netconf"
|
||||
license=('BSD')
|
||||
depends=('mkinitcpio-nfs-utils' 'iproute2')
|
||||
#install=$pkgname.install
|
||||
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
changelog='Changelog'
|
||||
sha512sums=('06ac202410964740785d2977f7918981276e10568260433436c51a1d540152cc28462e46dae6bfa31acd1fafa9ebe1e4f57ca90d7754a09ccaba142c8d48b228')
|
||||
|
||||
package() {
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/netconf_hook" "$pkgdir/usr/lib/initcpio/hooks/netconf"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/netconf_install" "$pkgdir/usr/lib/initcpio/install/netconf"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
}
|
37
src/mkinitcpio-netconf/mkinitcpio-netconf.install
Normal file
37
src/mkinitcpio-netconf/mkinitcpio-netconf.install
Normal file
@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
post_install() {
|
||||
cat<<INSTALLEOF
|
||||
This hook will parse the ip= kernel command line variable and configure any
|
||||
interfaces specified using ipconfig found in the mkinitcpio-nfs-utils package.
|
||||
It is meant to be used alongside other hooks that need early userspace networking
|
||||
such as, mkinitcpio-dropbear. There is also an optional netconf_timeout kernel
|
||||
command line argument that can be used when obtaining the ip address using dhcp, so
|
||||
that ipconfig will not hang forever waiting for an IP addres. You can nest multiple ip=
|
||||
parameters inside a single ip= parameter, separated by : to configure multiple interfaces.
|
||||
There is no limit on the number of interfaces configured, but the kernel cmdline size.
|
||||
To use this hook add the netconf hook before any other hook that need networking in
|
||||
"/etc/mkinitcpio.conf" and rebuild the initramfs.
|
||||
INSTALLEOF
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
cat<<REMOVEEOF
|
||||
Remove the "netconf" from the "HOOKS" section in "/etc/mkinitcpio.conf"
|
||||
and rebuild the initramfs. Also, remove the ip= cmdline parameter and regenerate
|
||||
your bootloader configuration.
|
||||
REMOVEEOF
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
cat<<UPGRADEEOF
|
||||
There is now an optional kernel command line parameter named netconf_timeout that
|
||||
is used to pass the timeout option to ipconfig. This is means that when using
|
||||
ip=dhcp as a kernel command line parameter, ipconfig will not hang forever if the
|
||||
dhcp server is unavailable.
|
||||
|
||||
You can also now nest multiple ip= parameters inside a single ip= parameter,
|
||||
separated by : to configure multiple interfaces. There is no limit on the number
|
||||
of interfaces configured, but the kernel cmdline size.
|
||||
UPGRADEEOF
|
||||
}
|
23
src/mkinitcpio-tinyssh/.SRCINFO
Normal file
23
src/mkinitcpio-tinyssh/.SRCINFO
Normal file
@ -0,0 +1,23 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Fri Oct 21 11:25:24 UTC 2016
|
||||
pkgbase = mkinitcpio-tinyssh
|
||||
pkgdesc = Archlinux mkinitcpio hook to install and enable the tinyssh daemon in early userspace
|
||||
pkgver = 0.0.3
|
||||
pkgrel = 3
|
||||
url = https://github.com/grazzolini/mkinitcpio-tinyssh
|
||||
changelog = ChangeLog
|
||||
arch = any
|
||||
license = BSD
|
||||
depends = psmisc
|
||||
depends = tinyssh
|
||||
depends = ucspi-tcp
|
||||
optdepends = mkinitcpio-netconf: Network interface configuration
|
||||
optdepends = mkinitcpio-ppp: PPP interface configuration
|
||||
optdepends = tinyssh-convert: For converting OpenSSH keys
|
||||
optdepends = tinyssh-convert-git: For converting OpenSSH keys
|
||||
conflicts = mkinitcpio-dropbear
|
||||
source = mkinitcpio-tinyssh-0.0.3.tar.gz::https://github.com/grazzolini/mkinitcpio-tinyssh/archive/v0.0.3.tar.gz
|
||||
sha512sums = 16f5f2c09bdcf53a7a63011630c6ce03c73db724a3bed52145e53a9d4dc818878af7ad48b7c19927bca9fd8fc9fc230dbcef966b14c40f48468109acd3618f64
|
||||
|
||||
pkgname = mkinitcpio-tinyssh
|
||||
|
6
src/mkinitcpio-tinyssh/.gitignore
vendored
Normal file
6
src/mkinitcpio-tinyssh/.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
v*.tar.gz
|
||||
mkinitcpio-tinyssh-*-any.pkg.tar.xz
|
||||
mkinitcpio-tinyssh-*.tar.gz
|
||||
develop.*
|
||||
pkg/*
|
||||
src/*
|
22
src/mkinitcpio-tinyssh/ChangeLog
Normal file
22
src/mkinitcpio-tinyssh/ChangeLog
Normal file
@ -0,0 +1,22 @@
|
||||
2016-08-15 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
* 0.0.3:
|
||||
- Created a new function to use the tinyssh-convert tool to convert already existing OpenSSH ED25519 keys to the tinyssh format.
|
||||
- It will continue to create the tinyssh keys if openssh isn't installed and it has no keys available.
|
||||
- This will only happen if openssh is installed and has run at least once and if there are no keys already created under /etc/tinyssh/sshkeydir.
|
||||
- This is only valid for ED25519 keys, since the tinyssh-convert tool can only convert those.
|
||||
|
||||
2015-08-11 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.2 :
|
||||
- Initial systemd support. It will add the tinyssh@22.socket unit, create a dependency on cryptsetup.target and enable the unit.
|
||||
- Changed the root user home dir to /root.
|
||||
- TMPDIR juggling cleanup.
|
||||
- Hook help text correction.
|
||||
|
||||
2015-08-03 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.1 :
|
||||
- Initial release.
|
||||
- Uses the ucspi-tcp tcpserver tool to start the tinysshd daemon on boot.
|
||||
- Right now only accepts connections on the default ssh port (22).
|
||||
- There is no customization of the tinysshd parameters yet.
|
24
src/mkinitcpio-tinyssh/PKGBUILD
Normal file
24
src/mkinitcpio-tinyssh/PKGBUILD
Normal file
@ -0,0 +1,24 @@
|
||||
# Maintainer: Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
pkgname=mkinitcpio-tinyssh
|
||||
pkgver=0.0.3
|
||||
pkgrel=3
|
||||
pkgdesc="Archlinux mkinitcpio hook to install and enable the tinyssh daemon in early userspace"
|
||||
arch=('any')
|
||||
url="https://github.com/grazzolini/mkinitcpio-tinyssh"
|
||||
license=('BSD')
|
||||
depends=('psmisc' 'tinyssh' 'ucspi-tcp')
|
||||
optdepends=('mkinitcpio-netconf: Network interface configuration'
|
||||
'mkinitcpio-ppp: PPP interface configuration'
|
||||
'tinyssh-convert: For converting OpenSSH keys'
|
||||
'tinyssh-convert-git: For converting OpenSSH keys')
|
||||
conflicts=('mkinitcpio-dropbear')
|
||||
#install=$pkgname.install
|
||||
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
changelog='ChangeLog'
|
||||
sha512sums=('16f5f2c09bdcf53a7a63011630c6ce03c73db724a3bed52145e53a9d4dc818878af7ad48b7c19927bca9fd8fc9fc230dbcef966b14c40f48468109acd3618f64')
|
||||
|
||||
package() {
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/tinyssh_hook" "$pkgdir/usr/lib/initcpio/hooks/tinyssh"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/tinyssh_install" "$pkgdir/usr/lib/initcpio/install/tinyssh"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
34
src/mkinitcpio-tinyssh/mkinitcpio-tinyssh.install
Normal file
34
src/mkinitcpio-tinyssh/mkinitcpio-tinyssh.install
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
post_install() {
|
||||
touch /etc/tinyssh/root_key
|
||||
chmod 600 /etc/tinyssh/root_key
|
||||
|
||||
cat<<INSTALLEOF
|
||||
Insert your SSH public key into "/etc/tinyssh/root_key", e.g. using
|
||||
"cat ~/.ssh/id_ed25519.pub > /etc/tinyssh/root_key".
|
||||
|
||||
If you want to use the same host keys as your OpenSSH installation
|
||||
(only ed25519 for now), install tinyssh-convert or tinyssh-convert-git
|
||||
BEFORE rebuilding your initramfs. Or, if you already have keys generated,
|
||||
remove either the /etc/tinyssh/sshkeydir, or the ed25519 public and secret
|
||||
keys from that dir, in order to use OpenSSH keys. This hook will not overwrite
|
||||
existing keys either OpenSSH's converted or tinysshd-makekey created.
|
||||
|
||||
Afterwards add the "tinyssh" hook after any networking hook (netconf/ppp)
|
||||
and before any hook provided with the mkinitcpio-utils package in the
|
||||
"HOOKS" array in "/etc/mkinitcpio.conf". Finally rebuild the initramsfs
|
||||
("mkinitcpio -p linux").
|
||||
INSTALLEOF
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
cat<<REMOVEEOF
|
||||
Remove "tinyssh" from "HOOKS" in "/etc/mkinitcpio.conf", then rebuild
|
||||
the initramfs ("mkinitcpio -p linux").
|
||||
REMOVEEOF
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
18
src/mkinitcpio-utils/.SRCINFO
Normal file
18
src/mkinitcpio-utils/.SRCINFO
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Fri Oct 21 11:26:27 UTC 2016
|
||||
pkgbase = mkinitcpio-utils
|
||||
pkgdesc = Collection of Archlinux mkinitcpio utilities performing various tasks
|
||||
pkgver = 0.0.3
|
||||
pkgrel = 3
|
||||
url = https://github.com/grazzolini/mkinitcpio-utils
|
||||
changelog = ChangeLog
|
||||
arch = any
|
||||
license = BSD
|
||||
depends = cryptsetup
|
||||
optdepends = mkinitcpio-dropbear: Allow the encryptssh hook to unlock a root container remotely using dropbear
|
||||
optdepends = mkinitcpio-tinyssh: Allow the encryptssh hook to unlock a root container remotely using tinyssh
|
||||
source = mkinitcpio-utils-0.0.3.tar.gz::https://github.com/grazzolini/mkinitcpio-utils/archive/v0.0.3.tar.gz
|
||||
sha512sums = 9d454006978f23abca61be71523454670b94ea6d8e08eeab2e61fc81da3e3f5e8ec2b053fb0a6f986ce673d8521aa2a5b5fe5f37d4dffc4e27fde1b238437470
|
||||
|
||||
pkgname = mkinitcpio-utils
|
||||
|
6
src/mkinitcpio-utils/.gitignore
vendored
Normal file
6
src/mkinitcpio-utils/.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
v*.tar.gz
|
||||
mkinitcpio-utils-*-any.pkg.tar.xz
|
||||
mkinitcpio-utils-*.tar.gz
|
||||
develop.*
|
||||
src/*
|
||||
pkg/*
|
11
src/mkinitcpio-utils/ChangeLog
Normal file
11
src/mkinitcpio-utils/ChangeLog
Normal file
@ -0,0 +1,11 @@
|
||||
2015-08-11 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.2 :
|
||||
- Got rid of TMPDIR juggling by using BUILDROOT directly.
|
||||
- Changed the root home dir to /root.
|
||||
|
||||
2015-07-22 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.1 :
|
||||
- Initial release.
|
||||
- Provide the encryptssh hook and the cryptsetup_shell as it is on the original dropbear_initrd_encrypt package.
|
23
src/mkinitcpio-utils/PKGBUILD
Normal file
23
src/mkinitcpio-utils/PKGBUILD
Normal file
@ -0,0 +1,23 @@
|
||||
# Maintainer: Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
pkgname=mkinitcpio-utils
|
||||
pkgver=0.0.3
|
||||
pkgrel=3
|
||||
pkgdesc="Collection of Archlinux mkinitcpio utilities performing various tasks"
|
||||
arch=('any')
|
||||
url="https://github.com/grazzolini/mkinitcpio-utils"
|
||||
license=('BSD')
|
||||
depends=('cryptsetup')
|
||||
optdepends=('mkinitcpio-dropbear: Allow the encryptssh hook to unlock a root container remotely using dropbear'
|
||||
'mkinitcpio-tinyssh: Allow the encryptssh hook to unlock a root container remotely using tinyssh')
|
||||
#install=$pkgname.install
|
||||
changelog='ChangeLog'
|
||||
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('9d454006978f23abca61be71523454670b94ea6d8e08eeab2e61fc81da3e3f5e8ec2b053fb0a6f986ce673d8521aa2a5b5fe5f37d4dffc4e27fde1b238437470')
|
||||
|
||||
package() {
|
||||
install -Dm755 "$srcdir/$pkgname-$pkgver/utils/shells/cryptsetup_shell" "$pkgdir/usr/share/$pkgname/utils/shells/cryptsetup_shell"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/README.md" "$pkgdir/usr/share/$pkgname/README.md"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/initcpio/hooks/encryptssh" "$pkgdir/usr/lib/initcpio/hooks/encryptssh"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/initcpio/install/encryptssh" "$pkgdir/usr/lib/initcpio/install/encryptssh"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
20
src/mkinitcpio-utils/mkinitcpio-utils.install
Normal file
20
src/mkinitcpio-utils/mkinitcpio-utils.install
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
post_install() {
|
||||
cat<<INSTALLEOF
|
||||
This package provides a series of utilities meant to be used with mkinitcpio.
|
||||
As of this version, it provides the encryptssh hook and the cryptsetup_shell,
|
||||
to be used in conjunction with mkinitcpio-dropbear or mkinitcpio-tinyssh.
|
||||
INSTALLEOF
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
cat<<REMOVEEOF
|
||||
Remove any hook(s) from this package that were inserted in your mkinitcpio.conf
|
||||
and rebuild the initramfs.
|
||||
REMOVEEOF
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
28
src/tinyssh/.SRCINFO
Normal file
28
src/tinyssh/.SRCINFO
Normal file
@ -0,0 +1,28 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Mon Aug 15 17:51:45 UTC 2016
|
||||
pkgbase = tinyssh
|
||||
pkgdesc = Small SSH server using NaCl / TweetNaCl
|
||||
pkgver = 20160812
|
||||
pkgrel = 1
|
||||
url = http://tinyssh.org
|
||||
install = tinyssh.install
|
||||
arch = x86_64
|
||||
arch = i686
|
||||
arch = arm
|
||||
arch = armv6h
|
||||
license = Public Domain
|
||||
makedepends = gcc
|
||||
makedepends = make
|
||||
source = tinyssh-20160812.tar.gz::https://mojzis.com/software/tinyssh/tinyssh-20160812.tar.gz
|
||||
source = tinyssh@.socket
|
||||
source = tinyssh@.service
|
||||
source = tinysshgenkeys.service
|
||||
source = tinyssh-20160812.tar.gz.asc::https://mojzis.com/software/tinyssh/tinyssh-20160812.tar.gz.asc
|
||||
sha512sums = 54817e7e0da778eb4e404e165caff321ef3c8b13f1e1840c9fad1e8f6f64fee086019f4222199bf2b47e19754913400bb719443a944c612e987e3d3fdae14147
|
||||
sha512sums = 9fbc5ae3b6d1df6d78eedf812fdd8fe115e81fc0811f4799d541e37239d53db22203e691026ed479a38c9f17043e52d43b44054be51ae03c2f12f3f235c5b83a
|
||||
sha512sums = 9c9ba78c5b61f64f42f59cfe556519d9ab2c3e4d45f36d6f78c5e7728b050c494673239630dae66398006f3f20fb3a26f22899cd0728ed17e61c655b372236b3
|
||||
sha512sums = 415cdfe649eedcbb11a263938c0a66bef42432210baa2e2c9e428d5e8e486fb4dedad53b9fdb9086bf97ca506909d3b3054aaca56f02c063e0b8d5fab4e56198
|
||||
sha512sums = SKIP
|
||||
|
||||
pkgname = tinyssh
|
||||
|
6
src/tinyssh/.gitignore
vendored
Normal file
6
src/tinyssh/.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
tinyssh-*.tar.bz2
|
||||
tinyssh-*.tar.xz
|
||||
tinyssh-*.tar.gz
|
||||
tinyssh-*.tar.gz.asc
|
||||
src/*
|
||||
pkg/*
|
41
src/tinyssh/PKGBUILD
Normal file
41
src/tinyssh/PKGBUILD
Normal file
@ -0,0 +1,41 @@
|
||||
# Maintainer: Adrian Perez <aperez@igalia.com>
|
||||
# Co-Maintainer: Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
pkgname='tinyssh'
|
||||
pkgver='20160812'
|
||||
pkgrel='1'
|
||||
pkgdesc='Small SSH server using NaCl / TweetNaCl'
|
||||
url='http://tinyssh.org'
|
||||
arch=('x86_64' 'i686' 'arm' 'armv6h')
|
||||
license=('Public Domain')
|
||||
makedepends=('gcc' 'make')
|
||||
install='tinyssh.install'
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://mojzis.com/software/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
||||
tinyssh@.socket tinyssh@.service tinysshgenkeys.service
|
||||
"${pkgname}-${pkgver}.tar.gz.asc::https://mojzis.com/software/${pkgname}/${pkgname}-${pkgver}.tar.gz.asc")
|
||||
sha512sums=('54817e7e0da778eb4e404e165caff321ef3c8b13f1e1840c9fad1e8f6f64fee086019f4222199bf2b47e19754913400bb719443a944c612e987e3d3fdae14147'
|
||||
'9fbc5ae3b6d1df6d78eedf812fdd8fe115e81fc0811f4799d541e37239d53db22203e691026ed479a38c9f17043e52d43b44054be51ae03c2f12f3f235c5b83a'
|
||||
'9c9ba78c5b61f64f42f59cfe556519d9ab2c3e4d45f36d6f78c5e7728b050c494673239630dae66398006f3f20fb3a26f22899cd0728ed17e61c655b372236b3'
|
||||
'415cdfe649eedcbb11a263938c0a66bef42432210baa2e2c9e428d5e8e486fb4dedad53b9fdb9086bf97ca506909d3b3054aaca56f02c063e0b8d5fab4e56198'
|
||||
'SKIP')
|
||||
validpgpkeys=('AADF2EDF5529F1702772C8A2DEC4D246931EF49B')
|
||||
|
||||
build () {
|
||||
cd "${srcdir}/${pkgname}-${pkgver//./}"
|
||||
make
|
||||
}
|
||||
|
||||
package () {
|
||||
cd "${srcdir}/${pkgname}-${pkgver//./}"
|
||||
make install DESTDIR="${pkgdir}"
|
||||
|
||||
# Nowadays /usr/sbin is a symlink to /usr/bin
|
||||
mv "${pkgdir}"/usr/{s,}bin
|
||||
|
||||
install -m 755 -d ${pkgdir}/etc/tinyssh
|
||||
|
||||
install -m 755 -d "${pkgdir}/usr/lib/systemd/system"
|
||||
install -m 644 -t "${pkgdir}/usr/lib/systemd/system" \
|
||||
"${srcdir}/tinysshgenkeys.service" \
|
||||
"${srcdir}/tinyssh@.service" \
|
||||
"${srcdir}/tinyssh@.socket"
|
||||
}
|
31
src/tinyssh/tinyssh.install
Executable file
31
src/tinyssh/tinyssh.install
Executable file
@ -0,0 +1,31 @@
|
||||
#! /bin/bash
|
||||
#
|
||||
# tinyssh.install
|
||||
# Copyright (C) 2014 Adrian Perez <aperez@igalia.com>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
set -e
|
||||
|
||||
post_install () {
|
||||
cat <<-EOF
|
||||
A generic systemd template unit has been installed, which can be used
|
||||
to make TinySSH listen on more than one interface/address. To configure
|
||||
it in the default port (22) on all interfaces, use:
|
||||
|
||||
systemctl enable tinyssh@22.socket
|
||||
systemctl start tinyssh@22.socket
|
||||
|
||||
Note that you can also specify the interface address, and multiple
|
||||
address/port combinations can be configured at the same time by writing
|
||||
the "ipaddress:port" as the unit instance. For example:
|
||||
|
||||
systemctl enable tinyssh@192.168.0.10:22222.socket
|
||||
systemctl start tinyssh@192.168.0.10:22222.socket
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
post_upgrade () {
|
||||
post_install
|
||||
}
|
9
src/tinyssh/tinyssh@.service
Normal file
9
src/tinyssh/tinyssh@.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=TinySSH Per-Connection Daemon
|
||||
Documentation=http://tinyssh.org
|
||||
After=tinysshgenkeys.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/tinysshd /etc/tinyssh/sshkeydir
|
||||
StandardInput=socket
|
||||
StandardError=journal
|
13
src/tinyssh/tinyssh@.socket
Normal file
13
src/tinyssh/tinyssh@.socket
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=TinySSH service (socket-activated)
|
||||
Documentation=http://tinyssh.org
|
||||
Wants=tinysshgenkeys.service
|
||||
|
||||
[Socket]
|
||||
ListenStream=%i
|
||||
Accept=true
|
||||
KeepAlive=true
|
||||
IPTOS=low-delay
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
8
src/tinyssh/tinysshgenkeys.service
Normal file
8
src/tinyssh/tinysshgenkeys.service
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=TinySSH Key Generation
|
||||
ConditionPathIsDirectory=!/etc/tinyssh/sshkeydir
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/tinysshd-makekey /etc/tinyssh/sshkeydir
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
19
src/ucspi-tcp/.SRCINFO
Normal file
19
src/ucspi-tcp/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Fri Oct 21 10:55:49 UTC 2016
|
||||
pkgbase = ucspi-tcp
|
||||
pkgdesc = Easy-to-use command-line tools for building TCP client-server applications.
|
||||
pkgver = 0.88
|
||||
pkgrel = 8
|
||||
url = http://cr.yp.to/ucspi-tcp.html
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = public-domain
|
||||
source = http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
|
||||
source = ucspi-tcp-0.88-ipv6.patch
|
||||
source = head-1.patch
|
||||
sha512sums = 44efbd477dacf31d39fc970e2d2f74526dc815b905742f6127f0d5c80928ecc7e743089eaab0492386a58d5b97905113fbe8bbc7214ae179b7be27966b7566c7
|
||||
sha512sums = 4180f2e8e0bd23bc345d363b5cfeab321293360203386fc93672bcb5c6fd8145d82c4eedb261abd0faacbce15bcd3180d7b02f2604039db735def7cdcd30abbc
|
||||
sha512sums = 815b4caa3d9a294e3fe69a464f37d1f50ebd83e25d608955dff4b78da1d3ddd9fb4f2586ab41552f006a117f2bd7a937a6ee485dd7897d2d63a9f9e2e12a1d8d
|
||||
|
||||
pkgname = ucspi-tcp
|
||||
|
2
src/ucspi-tcp/.gitignore
vendored
Normal file
2
src/ucspi-tcp/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
ucspi-tcp-*.tar.gz
|
||||
ucspi-tcp-*.tar.xz
|
39
src/ucspi-tcp/PKGBUILD
Normal file
39
src/ucspi-tcp/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Maintainer: Giancarlo Razzolini <grazzoli@gmail.com
|
||||
# Contributor: Christer Edwards <cedwards@xmission.com>
|
||||
# Contributor: eric <eric@archlinux.org>
|
||||
# Contributor: Manolis Tzanidakis
|
||||
pkgname=ucspi-tcp
|
||||
pkgver=0.88
|
||||
pkgrel=8
|
||||
pkgdesc="Easy-to-use command-line tools for building TCP client-server applications."
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://cr.yp.to/ucspi-tcp.html"
|
||||
license=('public-domain')
|
||||
source=("http://cr.yp.to/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
"ucspi-tcp-$pkgver-ipv6.patch"
|
||||
"head-1.patch")
|
||||
sha512sums=('44efbd477dacf31d39fc970e2d2f74526dc815b905742f6127f0d5c80928ecc7e743089eaab0492386a58d5b97905113fbe8bbc7214ae179b7be27966b7566c7'
|
||||
'4180f2e8e0bd23bc345d363b5cfeab321293360203386fc93672bcb5c6fd8145d82c4eedb261abd0faacbce15bcd3180d7b02f2604039db735def7cdcd30abbc'
|
||||
'815b4caa3d9a294e3fe69a464f37d1f50ebd83e25d608955dff4b78da1d3ddd9fb4f2586ab41552f006a117f2bd7a937a6ee485dd7897d2d63a9f9e2e12a1d8d')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
patch -p0 < "$srcdir/head-1.patch"
|
||||
patch -p1 < "$srcdir/ucspi-tcp-$pkgver-ipv6.patch"
|
||||
echo "gcc ${CFLAGS}" > conf-cc
|
||||
echo "/usr" > conf-home
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
for bin in tcpserver tcprules tcprulescheck argv0 recordio \
|
||||
tcpclient *\@ tcpcat mconnect mconnect-io addcr \
|
||||
delcr fixcrio rblsmtpd; do
|
||||
install -m 755 -D $bin "$pkgdir/usr/bin/$bin"
|
||||
done
|
||||
}
|
40
src/ucspi-tcp/head-1.patch
Normal file
40
src/ucspi-tcp/head-1.patch
Normal file
@ -0,0 +1,40 @@
|
||||
--- Makefile.orig 2003-09-03 10:42:49.624475128 -0400
|
||||
+++ Makefile 2003-09-03 10:43:04.950145272 -0400
|
||||
@@ -41 +41 @@
|
||||
- ./auto-str auto_home `head -1 conf-home` > auto_home.c
|
||||
+ ./auto-str auto_home `head -n 1 conf-home` > auto_home.c
|
||||
@@ -152 +152 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
||||
@@ -164 +164 @@
|
||||
- echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
|
||||
+ echo exec "`head -n 1 conf-cc`" '-c $${1+"$$@"}' \
|
||||
@@ -171 +171 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
||||
@@ -295 +295 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
||||
@@ -349 +349 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
||||
@@ -392 +392 @@
|
||||
- echo exec "`head -1 conf-ld`" \
|
||||
+ echo exec "`head -n 1 conf-ld`" \
|
||||
@@ -419 +419 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
||||
@@ -517 +517 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
||||
@@ -674,2 +674,2 @@
|
||||
- echo CC=\'`head -1 conf-cc`\'; \
|
||||
- echo LD=\'`head -1 conf-ld`\'; \
|
||||
+ echo CC=\'`head -n 1 conf-cc`\'; \
|
||||
+ echo LD=\'`head -n 1 conf-ld`\'; \
|
||||
@@ -718 +718 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
||||
@@ -860 +860 @@
|
||||
- | sed s}HOME}"`head -1 conf-home`"}g \
|
||||
+ | sed s}HOME}"`head -n 1 conf-home`"}g \
|
4976
src/ucspi-tcp/ucspi-tcp-0.88-ipv6.patch
Normal file
4976
src/ucspi-tcp/ucspi-tcp-0.88-ipv6.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user