###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2013 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
- # Install configuration file.
- mv /etc/tor/torrc{.sample,}
+ # Install configuration files.
+ mkdir -pv /var/ipfire/tor /var/lib/tor /var/log/tor
+ touch /var/ipfire/tor/settings
+ mv /etc/tor/torrc.sample /var/ipfire/tor/torrc
+ ln -svf /var/ipfire/tor/torrc /etc/tor/torrc
- mkdir -pv /var/lib/tor /var/log/tor
- chown nobody:nobody /var/lib/tor
+ # Adjust ownerships.
+ chown -R nobody:nobody /var/lib/tor /var/ipfire/tor
# Logrotate
mkdir -pv /etc/logrotate.d