From 2a500ee93fb22a6cf3c1af6facceffc61f118a97 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Wed, 11 Sep 2013 23:57:02 -0400 Subject: [PATCH] Create /var/run/asink properly on boot --- PKGBUILD | 16 ++++++++++------ tmpfiles_asink.conf | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 tmpfiles_asink.conf diff --git a/PKGBUILD b/PKGBUILD index c2cedea..8fe568a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,15 +2,17 @@ pkgname=go-asink-git pkgver=0.1 -pkgrel=2 +pkgrel=3 pkgdesc="An open source Dropbox clone" arch=('x86_64' 'i686') url="https://github.com/aclindsa/asink" license=('GPL') -makedepends=('go' 'git') +makedepends=('go' 'git' 'sqlite') options=('!strip' '!emptydirs') -source=("asink::git+https://github.com/aclindsa/asink#branch=master") -sha256sums=('SKIP') +source=("asink::git+https://github.com/aclindsa/asink#branch=master" + "tmpfiles_asink.conf") +sha256sums=('SKIP' + 'a3ffee66244aaf41546f98f090990dbe2d4fce1bbd15f8721035484313b9d073') build() { source /etc/profile.d/go.sh @@ -30,9 +32,11 @@ build() { } package() { + install -Dm644 tmpfiles_asink.conf "$pkgdir/usr/lib/tmpfiles.d/asink.conf" + cd $srcdir/bin - install -Dm755 "asink" "$pkgdir/usr/bin/asink" - install -Dm755 "asinkd" "$pkgdir/usr/bin/asinkd" + install -Dm755 asink "$pkgdir/usr/bin/asink" + install -Dm755 asinkd "$pkgdir/usr/bin/asinkd" cd $srcdir/src/asink install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" diff --git a/tmpfiles_asink.conf b/tmpfiles_asink.conf new file mode 100644 index 0000000..65bbce6 --- /dev/null +++ b/tmpfiles_asink.conf @@ -0,0 +1 @@ +D /run/asink 0755 root root