From 2e6f9cdfdfa6f2e144282ff464dc3241ad4f6df6 Mon Sep 17 00:00:00 2001 From: Philipp Schmitt Date: Sat, 16 Nov 2013 00:30:54 +0100 Subject: [PATCH] Add systemd service file --- .SRCINFO | 4 +++- PKGBUILD | 11 ++++++++--- pilight.service | 10 ++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 pilight.service diff --git a/.SRCINFO b/.SRCINFO index 7e9df242e27f..8d8b43980cdc 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = pilight-git pkgdesc = Send and receive 433.92Mhz codes pkgver = v2.0.r0.g172149f - pkgrel = 3 + pkgrel = 4 url = http://pilight.org/ arch = x86_64 arch = armv6h @@ -11,8 +11,10 @@ pkgbase = pilight-git makedepends = glibc source = git+https://github.com/pilight/pilight.git source = https://raw.github.com/pschmitt/pilight-git/master/Makefile + source = https://raw.github.com/pschmitt/pilight/master/pilight.service sha256sums = SKIP sha256sums = 8669f4366b60f9ff6e17cbab219654a3c81e4e5f0a0e8e79779e3a3297fae760 + sha256sums = 826f51966a2fbaf00ea8b3900010142f6974420e475874a314ad5466811a6bd9 pkgname = pilight-git diff --git a/PKGBUILD b/PKGBUILD index 0ae1081074db..e6cebd6d9593 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,14 +3,18 @@ pkgname=pilight-git _pkgname=pilight pkgver=v2.0.r0.g172149f -pkgrel=3 +pkgrel=4 pkgdesc="Send and receive 433.92Mhz codes" arch=('x86_64' 'armv6h') url="http://pilight.org/" license=('GPL3') makedepends=('git' 'gcc' 'glibc') -source=(git+https://github.com/pilight/pilight.git 'https://raw.github.com/pschmitt/pilight-git/master/Makefile') -sha256sums=('SKIP' '8669f4366b60f9ff6e17cbab219654a3c81e4e5f0a0e8e79779e3a3297fae760') +source=('git+https://github.com/pilight/pilight.git' + 'https://raw.github.com/pschmitt/pilight-git/master/Makefile' + 'https://raw.github.com/pschmitt/pilight/master/pilight.service') +sha256sums=('SKIP' + '8669f4366b60f9ff6e17cbab219654a3c81e4e5f0a0e8e79779e3a3297fae760' + '826f51966a2fbaf00ea8b3900010142f6974420e475874a314ad5466811a6bd9') pkgver() { cd "${srcdir}/${_pkgname}" @@ -36,5 +40,6 @@ build() { package() { cd "${srcdir}/${_pkgname}" make DESTDIR="$pkgdir/" install + install -Dm644 "${srcdir}/pilight.service" "${pkgdir}/usr/lib/systemd/system/pilight.service" } diff --git a/pilight.service b/pilight.service new file mode 100644 index 000000000000..56a04d22a203 --- /dev/null +++ b/pilight.service @@ -0,0 +1,10 @@ +[Unit] +Description=Pilight daemon + +[Service] +ExecStart=/usr/bin/pilight-daemon +Type=forking + +[Install] +WantedBy=multi-user.target +