diff options
author | Moritz Kaspar Rudert (mortzu) | 2015-05-21 16:37:38 +0200 |
---|---|---|
committer | Moritz Kaspar Rudert (mortzu) | 2015-05-21 16:37:38 +0200 |
commit | c74b963608f1a73b08527950d67b86b0228709e6 (patch) | |
tree | 51a9d6401cc0c41820484126cb70c962d8fdb25d | |
download | aur-c74b963608f1a73b08527950d67b86b0228709e6.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | sslh-fork.service | 10 | ||||
-rw-r--r-- | sslh-git.install | 13 | ||||
-rw-r--r-- | sslh-select.service | 9 |
5 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5f9efee21971 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = sslh-git + pkgdesc = SSL/SSH/OpenVPN/XMPP/tinc port multiplexer + pkgver = 20100830 + pkgrel = 1 + url = http://www.rutschle.net/tech/sslh.shtml + install = sslh-git.install + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + depends = libconfig + provides = sslh + conflicts = sslh + backup = etc/sslh.conf + source = sslh-git::git+https://github.com/yrutschle/sslh + source = sslh-select.service + source = sslh-fork.service + md5sums = SKIP + md5sums = 67e8c9511508673254afa3e1ca61ff89 + md5sums = a4402244a4d819beb3c6dc7ff031084e + +pkgname = sslh-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ff0a19a24707 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +pkgname=sslh-git +pkgver=20100830 +pkgrel=1 +pkgdesc='SSL/SSH/OpenVPN/XMPP/tinc port multiplexer' +arch=('i686' 'x86_64') +url="http://www.rutschle.net/tech/sslh.shtml" +license=('GPL2') +depends=('libconfig') +backup=('etc/sslh.conf') +install=$pkgname.install +source=("$pkgname"::'git+https://github.com/yrutschle/sslh' + 'sslh-select.service' + 'sslh-fork.service') +md5sums=('SKIP' + '67e8c9511508673254afa3e1ca61ff89' + 'a4402244a4d819beb3c6dc7ff031084e') +conflicts=('sslh') +provides=('sslh') +makedepends=('git') + +build() { + cd "$pkgname" + make VERSION=\"v$pkgver\" +} + +package() { + cd "$pkgname" + + install -Dm 0755 sslh-fork "$pkgdir/usr/bin/sslh-fork" + install -Dm 0755 sslh-select "$pkgdir/usr/bin/sslh-select" + ln -s sslh-fork "$pkgdir/usr/bin/sslh" + # install manpage + install -Dm 0644 sslh.8.gz "$pkgdir/usr/share/man/man8/sslh.8.gz" + # install example file + install -Dm 0644 example.cfg "$pkgdir/etc/sslh.conf" + # systemd + install -Dm 644 $srcdir/sslh-fork.service \ + "$pkgdir/usr/lib/systemd/system/sslh-fork.service" + install -Dm 644 $srcdir/sslh-select.service \ + "$pkgdir/usr/lib/systemd/system/sslh-select.service" +} + +# vim:set ts=2 sw=2 et: diff --git a/sslh-fork.service b/sslh-fork.service new file mode 100644 index 000000000000..cbfc41686b55 --- /dev/null +++ b/sslh-fork.service @@ -0,0 +1,10 @@ +[Unit] +Description=SSL/SSH multiplexer +After=network.target + +[Service] +ExecStart=/usr/bin/sslh-fork -f -F /etc/sslh.conf +KillMode=process + +[Install] +WantedBy=multi-user.target diff --git a/sslh-git.install b/sslh-git.install new file mode 100644 index 000000000000..46ce7beae9ed --- /dev/null +++ b/sslh-git.install @@ -0,0 +1,13 @@ +#!/bin/sh + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if [ "$(vercmp $2 1.14-1)" -le 0 ]; then + cat << EOF +===> sslh systemd service has been splitted in sslh-fork.service and sslh-select.service +EOF + fi +} + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/sslh-select.service b/sslh-select.service new file mode 100644 index 000000000000..43f4f2787915 --- /dev/null +++ b/sslh-select.service @@ -0,0 +1,9 @@ +[Unit] +Description=SSL/SSH multiplexer +After=network.target + +[Service] +ExecStart=/usr/bin/sslh-select -f -F /etc/sslh.conf + +[Install] +WantedBy=multi-user.target |