Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/tor: Install default config and systemd .service file
@ 2017-12-06 11:09 Mario Lang
  2017-12-06 22:06 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Mario Lang @ 2017-12-06 11:09 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Mario Lang <mlang@blind.guru>
---
 package/tor/tor.mk | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/package/tor/tor.mk b/package/tor/tor.mk
index 6a42dbce53..690772f5c0 100644
--- a/package/tor/tor.mk
+++ b/package/tor/tor.mk
@@ -47,4 +47,16 @@ endif
 # uses gnu extensions
 TOR_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
 
+define TOR_INSTALL_CONF
+	$(INSTALL) -D -m 644 $(@D)/src/config/torrc.minimal \
+		$(TARGET_DIR)/etc/tor/torrc
+endef
+
+TOR_POST_INSTALL_TARGET_HOOKS += TOR_INSTALL_CONF
+
+define TOR_INSTALL_INIT_SYSTEMD
+	$(INSTALL) -D -m 664 $(@D)/contrib/dist/tor.service \
+		$(TARGET_DIR)/usr/lib/systemd/system/tor.service
+endef
+
 $(eval $(autotools-package))
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-06 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06 11:09 [Buildroot] [PATCH 1/1] package/tor: Install default config and systemd .service file Mario Lang
2017-12-06 22:06 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox