From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sun, 5 Jul 2015 16:10:00 +0200 Subject: [Buildroot] [PATCH 28/38] squid: systemd support In-Reply-To: <46428a55d4456ed7558735aafeb331bc37cef9ea.1432332802.git.alex.suykov@gmail.com> References: <46428a55d4456ed7558735aafeb331bc37cef9ea.1432332802.git.alex.suykov@gmail.com> Message-ID: <20150705161000.19dc36c3@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Alex Suykov, On Sat, 23 May 2015 13:07:42 +0300, Alex Suykov wrote: > squid comes with a .service file, but does not install it. > > Signed-off-by: Alex Suykov > --- > package/squid/squid.mk | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/package/squid/squid.mk b/package/squid/squid.mk > index 745c9ad..5a9fbb7 100644 > --- a/package/squid/squid.mk > +++ b/package/squid/squid.mk > @@ -81,4 +81,12 @@ define SQUID_INSTALL_INIT_SYSV > $(TARGET_DIR)/etc/init.d/S97squid > endef > > +define SQUID_INSTALL_INIT_SYSTEMD > + $(INSTALL) -D -m 0644 $(@D)/tools/squid.service \ > + $(TARGET_DIR)/usr/lib/systemd/system/squid.service > + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants > + ln -sf /usr/lib/systemd/system/squid.service \ > + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/squid.service We prefer to use a relative path for the symlink, so that the symlink appears to be valid when looking at $(TARGET_DIR) on the build machine. I've fixed that up before committing, and also fixed it on the upmpdcli package, which I forgot to do when merging your patch on this package. Thanks, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com