Op 19 jan. 2014, om 01:53 heeft Khem Raj <raj.k...@gmail.com> het volgende geschreven:
> Signed-off-by: Khem Raj <raj.k...@gmail.com> > --- > recipes-angstrom/angstrom/angstrom-x11vnc-xinit.bb | 21 ++++++++++++--------- > .../angstrom/angstrom-x11vnc-xinit/x11vnc.service | 11 +++++++++++ > 2 files changed, 23 insertions(+), 9 deletions(-) > create mode 100644 > recipes-angstrom/angstrom/angstrom-x11vnc-xinit/x11vnc.service > > diff --git a/recipes-angstrom/angstrom/angstrom-x11vnc-xinit.bb > b/recipes-angstrom/angstrom/angstrom-x11vnc-xinit.bb > index a860247..863fbaf 100644 > --- a/recipes-angstrom/angstrom/angstrom-x11vnc-xinit.bb > +++ b/recipes-angstrom/angstrom/angstrom-x11vnc-xinit.bb > @@ -1,22 +1,25 @@ > -DESCRIPTION = "Script to start a passwordless vnc of the current X session" > +DESCRIPTION = "Systemd service to start a passwordless vnc of the current X > session" > LICENSE = "MIT" > LIC_FILES_CHKSUM = > "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" > > -SRC_URI = "file://x11vnc.desktop" > +SRC_URI = "file://x11vnc.desktop \ > + file://x11vnc.service \ > + " > > PR = "r2" > > -do_install() { > - install -d ${D}${sysconfdir}/X11/Xinit.d > - echo "#!/bin/sh" > ${D}${sysconfdir}/X11/Xinit.d/02vnc > - echo "x11vnc -q -bg -display :0 -forever -avahi" >> > ${D}${sysconfdir}/X11/Xinit.d/02vnc > - chmod 0755 ${D}${sysconfdir}/X11/Xinit.d/02vnc > +inherit systemd > > +do_install() { > + install -d ${D}${systemd_unitdir}/system/ > + install -m 0644 ${WORKDIR}/*.service ${D}${systemd_unitdir}/system > install -d ${D}${sysconfdir}/xdg/autostart > install -m 0644 ${WORKDIR}/x11vnc.desktop > ${D}${sysconfdir}/xdg/autostart/ > } > > -RDEPENDS_${PN} = "x11vnc" > -CONFFILES_${PN} += "${sysconfdir}/X11/Xinit.d/02vnc > ${sysconfdir}/xdg/autostart/x11vnc.desktop" > +SYSTEMD_SERVICE_${PN} = "x11vnc.service" > + > +RDEPENDS_${PN} = "x11vnc angstrom-xinit" > +CONFFILES_${PN} += "${sysconfdir}/xdg/autostart/x11vnc.desktop" > PACKAGE_ARCH = "all" Can we subpackage these things? I don't want to have things error out in the default case. When using a DM the systemd service will error out due to xauth and in the non-DM cause you might end up spawning it twice. Having a way to explicitly say "vnc using systemd" and "vnc using xdg" would be very nice to have. regards, Koen. _______________________________________________ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel