From: Mario Lang <mlang@blind.guru>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/tor: Install default config and systemd .service file
Date: Wed, 6 Dec 2017 12:09:06 +0100 [thread overview]
Message-ID: <20171206110906.18712-1-mlang@blind.guru> (raw)
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
next reply other threads:[~2017-12-06 11:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-06 11:09 Mario Lang [this message]
2017-12-06 22:06 ` [Buildroot] [PATCH 1/1] package/tor: Install default config and systemd .service file Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171206110906.18712-1-mlang@blind.guru \
--to=mlang@blind.guru \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox