From baaacb347d043c9d057d142d601b45b1c2f89b7e Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 8 Feb 2018 03:44:18 -0200 Subject: [PATCH] New package: lsyncd-2.2.2. Closes: #11474 [via git-merge-pr] --- srcpkgs/lsyncd/files/lsyncd/run | 4 ++++ srcpkgs/lsyncd/template | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 srcpkgs/lsyncd/files/lsyncd/run create mode 100644 srcpkgs/lsyncd/template diff --git a/srcpkgs/lsyncd/files/lsyncd/run b/srcpkgs/lsyncd/files/lsyncd/run new file mode 100644 index 0000000000..1fdafa7403 --- /dev/null +++ b/srcpkgs/lsyncd/files/lsyncd/run @@ -0,0 +1,4 @@ +#!/bin/sh +[ -r ./conf ] && . ./conf +exec 1>&2 +exec lsyncd "${CONF_FILE:-'/etc/lsyncd/lsyncd.conf.lua'}" diff --git a/srcpkgs/lsyncd/template b/srcpkgs/lsyncd/template new file mode 100644 index 0000000000..fc103aa042 --- /dev/null +++ b/srcpkgs/lsyncd/template @@ -0,0 +1,23 @@ +# Template file for 'lsyncd' +pkgname=lsyncd +version=2.2.2 +revision=1 +wrksrc="${pkgname}-release-${version}" +build_style=cmake +hostmakedepends="asciidoc lua" +makedepends="lua-devel" +depends="rsync" +short_desc="Syncing Daemon that synchronizes local directories with remote targets" +maintainer="maxice8 " +license="GPL-2.0-or-later" +homepage="https://github.com/axkibe/lsyncd" +distfiles="https://github.com/axkibe/lsyncd/archive/release-${version}.tar.gz" +checksum=0bdb12f40f1a52ed2d8e6cb47242d296663a42b30f38d2b8efcb66b43129e009 + +post_install() { + vman doc/manpage/lsyncd.1 + # Manpages are installed on the wrong path + rm -rf "${DESTDIR}"/usr/man + + vsv lsyncd +}