From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/sslh/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++++ community/sslh/sslh-fork.service | 10 +++++++++ community/sslh/sslh-select.service | 9 ++++++++ community/sslh/sslh.install | 13 +++++++++++ 4 files changed, 77 insertions(+) create mode 100644 community/sslh/PKGBUILD create mode 100644 community/sslh/sslh-fork.service create mode 100644 community/sslh/sslh-select.service create mode 100644 community/sslh/sslh.install (limited to 'community/sslh') diff --git a/community/sslh/PKGBUILD b/community/sslh/PKGBUILD new file mode 100644 index 000000000..c2235965f --- /dev/null +++ b/community/sslh/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 94597 2013-07-27 17:54:41Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Le_suisse +# Contributor: Jason Rodriguez + +pkgname=sslh +pkgver=1.15 +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=("http://www.rutschle.net/tech/$pkgname-$pkgver.tar.gz" + 'sslh-select.service' + 'sslh-fork.service') +md5sums=('cdb3e4499ff00438495f46ef7204ec58' + '67e8c9511508673254afa3e1ca61ff89' + 'a4402244a4d819beb3c6dc7ff031084e') + +build() { + cd $pkgname-$pkgver + make VERSION=\"v$pkgver\" +} + +package() { + # manually install to have both ssl-fork and ssl-select + cd $pkgname-$pkgver + 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/community/sslh/sslh-fork.service b/community/sslh/sslh-fork.service new file mode 100644 index 000000000..cbfc41686 --- /dev/null +++ b/community/sslh/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/community/sslh/sslh-select.service b/community/sslh/sslh-select.service new file mode 100644 index 000000000..43f4f2787 --- /dev/null +++ b/community/sslh/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 diff --git a/community/sslh/sslh.install b/community/sslh/sslh.install new file mode 100644 index 000000000..46ce7beae --- /dev/null +++ b/community/sslh/sslh.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: -- cgit v1.2.3-54-g00ecf