From: "Luis R. Rodriguez" Subject: Re: [PATCH v3 7/7] systemd: add support initial xen systemd service files Date: Sat, 22 Mar 2014 03:30:33 +0100 Message-ID: <20140322023033.GJ5011@wotan.suse.de> References: <1395263261-12038-1-git-send-email-mcgrof@do-not-panic.com> <1395416450.19839.156.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3044659550390235084==" Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WRBhj-0007cj-7K for xen-devel@lists.xenproject.org; Sat, 22 Mar 2014 02:30:35 +0000 In-Reply-To: <1395416450.19839.156.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Stefano Stabellini , Jan =?utf-8?Q?R=C4=99korajski?= , Ian Jackson , Jacek Konieczny , M A Young , xen-devel@lists.xenproject.org, "Luis R. Rodriguez" List-Id: xen-devel@lists.xenproject.org --===============3044659550390235084== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WlEyl6ow+jlIgNUh" Content-Disposition: inline --WlEyl6ow+jlIgNUh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 21, 2014 at 03:40:50PM +0000, Ian Campbell wrote: > On Wed, 2014-03-19 at 14:07 -0700, Luis R. Rodriguez wrote: > > As for integration with xen, we house keep all the systemd files > > under a new directory tools/hotplug/Linux/systemd/ and will be > > targetted > > by default when building on Linux systems (CONFIG_Linux) given the low > > overhead of only having to only sed the meta @VARIABLES@. >=20 > Could configure not generate these more easily than what you have below? Not sure, I've dodged configure all my life. > It could still be conditional on Linux I'd have though, given a little > bit of autofoo ninjutsu. I'm autofoo dumb. > > +%.socket: %.socket.in > > + cp $< $@ > > + @sed -i -e 's|\@SBINDIR\@|$(SBINDIR)|g' $@ > > + @sed -i -e 's|\@BINDIR\@|$(BINDIR)|g' $@ > > + @sed -i -e 's|\@XEN_RUN_DIR\@|$(XEN_RUN_DIR)|g' $@ > > + @sed -i -e 's|\@XEN_LOG_DIR\@|$(XEN_LOG_DIR)|g' $@ > > + @sed -i -e 's|\@XEN_LIB_STORED\@|$(XEN_LIB_STORED)|g' $@ > > + @sed -i -e 's|\@LIBEXEC\@|$(LIBEXEC)|g' $@ > > + > > +%.service: %.service.in > > + cp $< $@ > > + @sed -i -e 's|\@SBINDIR\@|$(SBINDIR)|g' $@ > > + @sed -i -e 's|\@BINDIR\@|$(BINDIR)|g' $@ > > + @sed -i -e 's|\@XEN_RUN_DIR\@|$(XEN_RUN_DIR)|g' $@ > > + @sed -i -e 's|\@XEN_LOG_DIR\@|$(XEN_LOG_DIR)|g' $@ > > + @sed -i -e 's|\@XEN_LIB_STORED\@|$(XEN_LIB_STORED)|g' $@ > > + @sed -i -e 's|\@LIBEXEC\@|$(LIBEXEC)|g' $@ > > + > > +%.mount: %.mount.in > > + cp $< $@ > > + @sed -i -e 's|\@SBINDIR\@|$(SBINDIR)|g' $@ > > + @sed -i -e 's|\@BINDIR\@|$(BINDIR)|g' $@ > > + @sed -i -e 's|\@XEN_RUN_DIR\@|$(XEN_RUN_DIR)|g' $@ > > + @sed -i -e 's|\@XEN_LOG_DIR\@|$(XEN_LOG_DIR)|g' $@ > > + @sed -i -e 's|\@XEN_LIB_STORED\@|$(XEN_LIB_STORED)|g' $@ > > + @sed -i -e 's|\@LIBEXEC\@|$(LIBEXEC)|g' $@=20 >=20 > If you do keep this then itis crying out for a helper macro/make > function. Can we welcome this as an enhancement? > I though we had one TBH. I don't see one, but haven't looked under every rug. Luis --WlEyl6ow+jlIgNUh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQIcBAEBAgAGBQJTLPXJAAoJEPep4JnvMe6zDXEP/ijQej3olQWfzxvvDUY2+8m+ 6hC4aFZ6ss7jidOdGpkYGgPgf2mfn2MSb4E6u8H3aqaYnrw/r9JezNVYk59M3CeM OtdGpjaT1o4nuCM9IItkpPKg2E+riaodnB0/yQI0rairkC7IQDNWih7D7HJGW5rP Sogyl8K0pFAE6YXs4GQFJy3YJvUHjFy2CfiLFbsT8g5aRKipdopqIkkWeiLCIFe4 vDNfx+jybasNwEdyS+DWgRa+WoaNqKXuTHZBESILAEYtBFcJKQvSngAjh5u1ASTd kCIcCcKw6sKcAR9LtWQziIpyDwFPqYuVh0+9uQu7ijg4pwSbJckD4l5oGx0IAvt/ hmp1nRyxxk0GNAQ51hpCn4yHqDjsJFts5Fu4YuSlqqRksUGS2WHZ8cUuHRMSrR84 R37KeK8GVc8+htm1lvjV5AY7lWn1LTV22+GZAdvMPggYZooLJMWgOzU2nIJjFf2H MEaEPwLzKDRt3hLj2BERc2ZwtaatwVxuxcQDO85FlbiT15GYO835sikKzif7exh1 alZOrnK5TXXJBt0+PTjL2z9Ysjx9OEb968CXI37u/tJ1H8SoQGDRyGh+2Zo6XckV AxZcKS9J3Cw5Ux6pcAJxOrZhtQoT8OW4+mGqrA4J63QfjPzhKddH5HE9LjTqHsWU LoUFTQxMJFl2kjDxFw0Z =4cmu -----END PGP SIGNATURE----- --WlEyl6ow+jlIgNUh-- --===============3044659550390235084== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============3044659550390235084==--