From patchwork Wed Dec 6 11:09:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Lang X-Patchwork-Id: 845132 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ysG9G49zlz9sP9 for ; Wed, 6 Dec 2017 22:09:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1AB5C88C36; Wed, 6 Dec 2017 11:09:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T5gYXmepe8pn; Wed, 6 Dec 2017 11:09:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BF07388372; Wed, 6 Dec 2017 11:09:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0D1BD1C0621 for ; Wed, 6 Dec 2017 11:09:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 09703261DD for ; Wed, 6 Dec 2017 11:09:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HS3WR4sOgUmR for ; Wed, 6 Dec 2017 11:09:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ns3035380.ip-37-187-20.eu (familiekainz.at [37.187.20.171]) by silver.osuosl.org (Postfix) with ESMTP id 788C725B32 for ; Wed, 6 Dec 2017 11:09:45 +0000 (UTC) Received: from fx.tugraz.at (84-115-55-45.cable.dynamic.surfer.at [84.115.55.45]) by ns3035380.ip-37-187-20.eu (Postfix) with ESMTPS id F01033FC87; Wed, 6 Dec 2017 12:09:42 +0100 (CET) Received: from mlang by fx.tugraz.at with local (Exim 4.89) (envelope-from ) id 1eMXa9-0004tS-E8; Wed, 06 Dec 2017 12:09:41 +0100 From: Mario Lang To: buildroot@buildroot.org Date: Wed, 6 Dec 2017 12:09:06 +0100 Message-Id: <20171206110906.18712-1-mlang@blind.guru> X-Mailer: git-send-email 2.15.0 Subject: [Buildroot] [PATCH 1/1] package/tor: Install default config and systemd .service file X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bernd Kuhls , Mario Lang MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Mario Lang --- 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))