diff options
author | Marius Orcsik | 2016-01-20 22:30:20 +0100 |
---|---|---|
committer | Marius Orcsik | 2016-01-20 22:30:20 +0100 |
commit | e004fe5f4f24484fe60dccb77180ed53ad64f91d (patch) | |
tree | e01948a00e34e067b771640d3cb792178d37b89e | |
download | aur-e004fe5f4f24484fe60dccb77180ed53ad64f91d.tar.gz |
Initial commit for hitch
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | hitch.service | 19 |
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dfa4df3ab406 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Wed Jan 20 21:28:12 UTC 2016 +pkgbase = hitch-git + pkgdesc = Hitch is a libev-based high performance SSL/TLS proxy. + pkgver = hitch.1.1.0.r17.9870e07 + pkgrel = 1 + url = https://hitch-tls.org/ + arch = x86_64 + arch = i686 + license = GPL + makedepends = git + depends = libev + depends = openssl + provides = hitch + conflicts = hitch + source = git+https://github.com/varnish/hitch.git + md5sums = SKIP + +pkgname = hitch-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0f9f33447bf0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Marius Orcsik <marius@habarnam.ro> +pkgname=hitch-git +pkgver=hitch.1.1.0.r17.9870e07 +pkgrel=1 +pkgdesc="Hitch is a libev-based high performance SSL/TLS proxy." +arch=('x86_64' 'i686') +url="https://hitch-tls.org/" +license=('GPL') +depends=('libev' 'openssl') +makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion' +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +install= +source=('git+https://github.com/varnish/hitch.git') +noextract=() +md5sums=('SKIP') + + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +build() { + cd "$srcdir/${pkgname%-git}" + ./bootstrap + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin + make +} + +check() { + cd "$srcdir/${pkgname%-git}" + make -k check +} + +package() { + cd "$srcdir/${pkgname%-git}" + make DESTDIR="$pkgdir/" install + mkdir -p "$pkgdir/usr/lib/systemd/system/" + cp ../../hitch.service "$pkgdir/usr/lib/systemd/system/" +} diff --git a/hitch.service b/hitch.service new file mode 100644 index 000000000000..dc92d10d2f99 --- /dev/null +++ b/hitch.service @@ -0,0 +1,19 @@ +[Unit] +Description=hitch +After=syslog.target network.target + + +[Service] +Type=forking +#Restart=on-failure +LimitNOFILE=131072 +Environment="HITCH_OPTIONS=--config /etc/hitch/hitch.conf" +EnvironmentFile=-/etc/hitch/hitch.params +EnvironmentFile=-/etc/default/hitch +EnvironmentFile=-/etc/sysconfig/hitch +ExecStartPre=/usr/bin/hitch -t $HITCH_OPTIONS +ExecStart=/usr/bin/hitch --daemon $HITCH_OPTIONS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target |