From 1ef2f82c64b32afc3722862d79e2521f830624d1 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 18 Dec 2017 16:14:44 +0100 Subject: [PATCH 1/4] accountsservice: Securely download source archive Use HTTPS to securely download the source archive. --- accountsservice.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accountsservice.be0 b/accountsservice.be0 index 6815509c8..e0378e2a5 100755 --- a/accountsservice.be0 +++ b/accountsservice.be0 @@ -9,7 +9,7 @@ ## The source URL(s) define the location of the sources that will be ## downloaded. Version variables may be used to simplify reuse of this bee-file. -SRCURL[0]="http://www.freedesktop.org/software/accountsservice/accountsservice-${PKGVERSION}.tar.xz" +SRCURL[0]="https://www.freedesktop.org/software/accountsservice/accountsservice-${PKGVERSION}.tar.xz" ############################################################################### ## Add URLs/pathes to patch files to the PATCHURL array. From da106d78800bdc479385a914eaa9f9d41baf8186 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 18 Dec 2017 17:19:33 +0100 Subject: [PATCH 2/4] accountsservice: Update version from 0.6.13 to 0.6.45 Remove the patch, as the daemon does not query shadow.byname over UDP for each account anymore. --- accountsservice.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accountsservice.be0 b/accountsservice.be0 index e0378e2a5..7d4f1ed7e 100755 --- a/accountsservice.be0 +++ b/accountsservice.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION accountsservice-0.6.13-1 +# BEE_VERSION accountsservice-0.6.45-0 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) @@ -15,7 +15,7 @@ SRCURL[0]="https://www.freedesktop.org/software/accountsservice/accountsservice- ## Add URLs/pathes to patch files to the PATCHURL array. ## The sources will be patched in the order of the array. -PATCHURL+=(/src/mariux/patches/accountsservice-disable-userload.patch) +# PATCHURL+=() ############################################################################### ## Add filename patterns to the EXCLUDE array of files that should not From f79e37b2acfd0478e3cca9dab18779e0312492df Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 21 Dec 2017 14:19:25 +0100 Subject: [PATCH 3/4] accountsservice: Prevent installation of static versions of libraries --- accountsservice.be0 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/accountsservice.be0 b/accountsservice.be0 index 7d4f1ed7e..bead42528 100755 --- a/accountsservice.be0 +++ b/accountsservice.be0 @@ -53,9 +53,10 @@ SRCURL[0]="https://www.freedesktop.org/software/accountsservice/accountsservice- # bee_patch "${@}" #} -#mee_configure() { -# bee_configure -#} +mee_configure() { + bee_configure \ + --disable-static +} #mee_build() { # bee_build From 182aff7a3021ab4b4f1ccfdf86de0e3a8d516e80 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 21 Dec 2017 14:41:11 +0100 Subject: [PATCH 4/4] accountsservice: Install systemd service unit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To enable/detect systemd libsystemd 186 is required. So, install the systemd service unit ourselves. Install it under `/lib`, as it’s the distributed file. --- accountsservice.be0 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/accountsservice.be0 b/accountsservice.be0 index bead42528..9038625da 100755 --- a/accountsservice.be0 +++ b/accountsservice.be0 @@ -67,6 +67,27 @@ mee_configure() { #} ## by default this may be 'make install DESTDIR="${D}"' +mee_install_post() { + mkdir -p ${D}/lib/systemd/system/ + cat > ${D}/lib/systemd/system/accounts-daemon.service <<-EOF + [Unit] + Description=Accounts Service + + [Service] + Type=dbus + BusName=org.freedesktop.Accounts + ExecStart=${LIBEXECDIR}/accounts-daemon + StandardOutput=syslog + + [Install] + # We pull this in by graphical.target instead of waiting for the bus + # activation, to speed things up a little: gdm uses this anyway so it is nice + # if it is already around when gdm wants to use it and doesn't have to wait for + # it. + WantedBy=graphical.target +EOF +} + ############################################################################### ## ## Additional hints: