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 +}