From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 3765eb6179d721093c834e3483fdef8232b5b486 Date: Mon, 19 Aug 2013 13:24:23 +0200 Message-ID: <20130819112454.A8328202A9@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0569815608676531580==" List-Id: --===============0569815608676531580== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via 3765eb6179d721093c834e3483fdef8232b5b486 (commit) via e726a4716f90f6b19820479967199210bca4bdc8 (commit) via 57aaa16bf209a9b41b03ba598fce8ce999acc624 (commit) via 8ec8462ce3a0ac2cac4bdb70daaaeb98aaea4cbc (commit) via cd4a82251b83ff60540650902925c39550d86e13 (commit) via 6feadd073796fea103de58593b7d8aa7c4533f2c (commit) via b8867fe89a7a51e225f54af380b3e4f4b1815771 (commit) via 9e78ce6142549d6d786fe97c56bf58df6b81e80f (commit) via 7b1db453c034fd88217f2f9b38ff1c57a9ec1f52 (commit) via f7e3815db2c732e724d450d1092ed19cfe92b773 (commit) via c7929cf54604d989986ddb8b6bbf491955c48258 (commit) from 9fa2cb9c49e3ae3adfb0052409286c4c5267dc5f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3765eb6179d721093c834e3483fdef8232b5b486 Author: Michael Tremer Date: Mon Aug 19 13:23:51 2013 +0200 tor: Only start tor when it has been enabled. commit e726a4716f90f6b19820479967199210bca4bdc8 Author: Michael Tremer Date: Mon Aug 19 13:20:42 2013 +0200 translation: Fix typo. commit 57aaa16bf209a9b41b03ba598fce8ce999acc624 Merge: 8ec8462 cd4a822 Author: Michael Tremer Date: Mon Aug 19 13:19:13 2013 +0200 Merge remote-tracking branch 'earl/tor' into next commit 8ec8462ce3a0ac2cac4bdb70daaaeb98aaea4cbc Author: Timo Eissler Date: Sun Aug 18 13:30:03 2013 +0200 xinetd: New package. commit cd4a82251b83ff60540650902925c39550d86e13 Author: Jan Paul Tuecking Date: Sun Aug 18 12:42:24 2013 +0200 tor: added startup files commit 6feadd073796fea103de58593b7d8aa7c4533f2c Author: Jan Paul Tuecking Date: Sun Aug 18 12:18:50 2013 +0200 tor: new stings added to language files commit b8867fe89a7a51e225f54af380b3e4f4b1815771 Author: Jan Paul Tuecking Date: Sun Aug 18 12:11:58 2013 +0200 tor: added daemon stats and little changes on styling ----------------------------------------------------------------------- Summary of changes: config/rootfiles/core/71/update.sh | 3 +- config/rootfiles/packages/xinetd | 11 ++++ config/xinetd/xinetd.conf | 9 +++ doc/language_issues.es | 2 + doc/language_issues.fr | 2 + doc/language_issues.nl | 2 + doc/language_issues.pl | 2 + doc/language_issues.ru | 2 + doc/language_issues.tr | 2 + doc/language_missings | 8 +++ html/cgi-bin/tor.cgi | 103 +++++++++++++++++++++++++-----= -- langs/de/cgi-bin/de.pl | 2 + langs/en/cgi-bin/en.pl | 2 + lfs/tor | 6 +- lfs/{bwm-ng =3D> xinetd} | 13 ++-- make.sh | 1 + src/initscripts/init.d/tor | 6 ++ src/paks/{nginx =3D> xinetd}/install.sh | 8 ++- src/paks/{cacti =3D> xinetd}/uninstall.sh | 0 src/paks/{apcupsd =3D> xinetd}/update.sh | 0 20 files changed, 152 insertions(+), 32 deletions(-) create mode 100644 config/rootfiles/packages/xinetd create mode 100644 config/xinetd/xinetd.conf mode change 100644 =3D> 100755 html/cgi-bin/tor.cgi copy lfs/{bwm-ng =3D> xinetd} (93%) copy src/paks/{nginx =3D> xinetd}/install.sh (90%) copy src/paks/{cacti =3D> xinetd}/uninstall.sh (100%) copy src/paks/{apcupsd =3D> xinetd}/update.sh (100%) Difference in files: diff --git a/config/rootfiles/core/71/update.sh b/config/rootfiles/core/71/up= date.sh index 8990b97..e45ccd8 100644 --- a/config/rootfiles/core/71/update.sh +++ b/config/rootfiles/core/71/update.sh @@ -39,7 +39,7 @@ cp -f /etc/snort/snort.conf /etc/snort/snort.conf.backup # #Stop services /etc/init.d/snort stop - +/etc/init.d/squid stop # #Remove old usb-modeswitch file rm /usr/share/usb_modeswitch/0e8d:0002 @@ -59,6 +59,7 @@ grep "^include $RULE_PATH" /etc/snort/snort.conf.backup >> = /etc/snort/snort.conf =20 # #Start services +/etc/init.d/squid start /etc/init.d/snort start =20 # diff --git a/config/rootfiles/packages/xinetd b/config/rootfiles/packages/xin= etd new file mode 100644 index 0000000..4c91ec9 --- /dev/null +++ b/config/rootfiles/packages/xinetd @@ -0,0 +1,11 @@ +etc/rc.d/init.d/xinetd +etc/xinetd.conf +#etc/xinetd.d +#usr/man/man5/xinetd.conf.5 +#usr/man/man8/itox.8 +#usr/man/man8/xconv.pl.8 +#usr/man/man8/xinetd.8 +#usr/man/man8/xinetd.log.8 +#usr/sbin/itox +#usr/sbin/xconv.pl +usr/sbin/xinetd diff --git a/config/xinetd/xinetd.conf b/config/xinetd/xinetd.conf new file mode 100644 index 0000000..b2112a1 --- /dev/null +++ b/config/xinetd/xinetd.conf @@ -0,0 +1,9 @@ +defaults +{ + instances =3D 10 + log_type =3D SYSLOG daemon + log_on_success =3D HOST PID + log_on_failure =3D HOST + #only_from =3D +} +includedir /etc/xinetd.d diff --git a/doc/language_issues.es b/doc/language_issues.es index 790ce1a..fe46355 100644 --- a/doc/language_issues.es +++ b/doc/language_issues.es @@ -642,6 +642,7 @@ WARNING: untranslated string: tor common settings WARNING: untranslated string: tor configuration WARNING: untranslated string: tor connected relays WARNING: untranslated string: tor contact info +WARNING: untranslated string: tor daemon WARNING: untranslated string: tor enabled WARNING: untranslated string: tor errmsg invalid accounting limit WARNING: untranslated string: tor errmsg invalid ip or mask @@ -663,6 +664,7 @@ WARNING: untranslated string: tor relay mode private brid= ge WARNING: untranslated string: tor relay mode relay WARNING: untranslated string: tor relay nickname WARNING: untranslated string: tor relay port +WARNING: untranslated string: tor service WARNING: untranslated string: tor socks port WARNING: untranslated string: tor stats WARNING: untranslated string: tor traffic limit hard diff --git a/doc/language_issues.fr b/doc/language_issues.fr index 41d8d9d..d5a1057 100644 --- a/doc/language_issues.fr +++ b/doc/language_issues.fr @@ -627,6 +627,7 @@ WARNING: untranslated string: tor common settings WARNING: untranslated string: tor configuration WARNING: untranslated string: tor connected relays WARNING: untranslated string: tor contact info +WARNING: untranslated string: tor daemon WARNING: untranslated string: tor enabled WARNING: untranslated string: tor errmsg invalid accounting limit WARNING: untranslated string: tor errmsg invalid ip or mask @@ -648,6 +649,7 @@ WARNING: untranslated string: tor relay mode private brid= ge WARNING: untranslated string: tor relay mode relay WARNING: untranslated string: tor relay nickname WARNING: untranslated string: tor relay port +WARNING: untranslated string: tor service WARNING: untranslated string: tor socks port WARNING: untranslated string: tor stats WARNING: untranslated string: tor traffic limit hard diff --git a/doc/language_issues.nl b/doc/language_issues.nl index 46838b0..c8249ff 100644 --- a/doc/language_issues.nl +++ b/doc/language_issues.nl @@ -544,6 +544,7 @@ WARNING: untranslated string: tor common settings WARNING: untranslated string: tor configuration WARNING: untranslated string: tor connected relays WARNING: untranslated string: tor contact info +WARNING: untranslated string: tor daemon WARNING: untranslated string: tor enabled WARNING: untranslated string: tor errmsg invalid accounting limit WARNING: untranslated string: tor errmsg invalid ip or mask @@ -565,6 +566,7 @@ WARNING: untranslated string: tor relay mode private brid= ge WARNING: untranslated string: tor relay mode relay WARNING: untranslated string: tor relay nickname WARNING: untranslated string: tor relay port +WARNING: untranslated string: tor service WARNING: untranslated string: tor socks port WARNING: untranslated string: tor stats WARNING: untranslated string: tor traffic limit hard diff --git a/doc/language_issues.pl b/doc/language_issues.pl index 790ce1a..fe46355 100644 --- a/doc/language_issues.pl +++ b/doc/language_issues.pl @@ -642,6 +642,7 @@ WARNING: untranslated string: tor common settings WARNING: untranslated string: tor configuration WARNING: untranslated string: tor connected relays WARNING: untranslated string: tor contact info +WARNING: untranslated string: tor daemon WARNING: untranslated string: tor enabled WARNING: untranslated string: tor errmsg invalid accounting limit WARNING: untranslated string: tor errmsg invalid ip or mask @@ -663,6 +664,7 @@ WARNING: untranslated string: tor relay mode private brid= ge WARNING: untranslated string: tor relay mode relay WARNING: untranslated string: tor relay nickname WARNING: untranslated string: tor relay port +WARNING: untranslated string: tor service WARNING: untranslated string: tor socks port WARNING: untranslated string: tor stats WARNING: untranslated string: tor traffic limit hard diff --git a/doc/language_issues.ru b/doc/language_issues.ru index 6700696..ef7b31c 100644 --- a/doc/language_issues.ru +++ b/doc/language_issues.ru @@ -607,6 +607,7 @@ WARNING: untranslated string: tor common settings WARNING: untranslated string: tor configuration WARNING: untranslated string: tor connected relays WARNING: untranslated string: tor contact info +WARNING: untranslated string: tor daemon WARNING: untranslated string: tor enabled WARNING: untranslated string: tor errmsg invalid accounting limit WARNING: untranslated string: tor errmsg invalid ip or mask @@ -628,6 +629,7 @@ WARNING: untranslated string: tor relay mode private brid= ge WARNING: untranslated string: tor relay mode relay WARNING: untranslated string: tor relay nickname WARNING: untranslated string: tor relay port +WARNING: untranslated string: tor service WARNING: untranslated string: tor socks port WARNING: untranslated string: tor stats WARNING: untranslated string: tor traffic limit hard diff --git a/doc/language_issues.tr b/doc/language_issues.tr index 6c4502f..1821fb4 100644 --- a/doc/language_issues.tr +++ b/doc/language_issues.tr @@ -540,6 +540,7 @@ WARNING: untranslated string: tor common settings WARNING: untranslated string: tor configuration WARNING: untranslated string: tor connected relays WARNING: untranslated string: tor contact info +WARNING: untranslated string: tor daemon WARNING: untranslated string: tor enabled WARNING: untranslated string: tor errmsg invalid accounting limit WARNING: untranslated string: tor errmsg invalid ip or mask @@ -561,6 +562,7 @@ WARNING: untranslated string: tor relay mode private brid= ge WARNING: untranslated string: tor relay mode relay WARNING: untranslated string: tor relay nickname WARNING: untranslated string: tor relay port +WARNING: untranslated string: tor service WARNING: untranslated string: tor socks port WARNING: untranslated string: tor stats WARNING: untranslated string: tor traffic limit hard diff --git a/doc/language_missings b/doc/language_missings index 3c611e6..865a42a 100644 --- a/doc/language_missings +++ b/doc/language_missings @@ -136,6 +136,7 @@ < tor configuration < tor connected relays < tor contact info +< tor daemon < tor enabled < tor errmsg invalid accounting limit < tor errmsg invalid ip or mask @@ -158,6 +159,7 @@ < tor relay mode relay < tor relay nickname < tor relay port +< tor service < tor socks port < tor stats < tor traffic limit hard @@ -371,6 +373,7 @@ < tor configuration < tor connected relays < tor contact info +< tor daemon < tor enabled < tor errmsg invalid accounting limit < tor errmsg invalid ip or mask @@ -393,6 +396,7 @@ < tor relay mode relay < tor relay nickname < tor relay port +< tor service < tor socks port < tor stats < tor traffic limit hard @@ -558,6 +562,7 @@ < tor configuration < tor connected relays < tor contact info +< tor daemon < tor enabled < tor errmsg invalid accounting limit < tor errmsg invalid ip or mask @@ -580,6 +585,7 @@ < tor relay mode relay < tor relay nickname < tor relay port +< tor service < tor socks port < tor stats < tor traffic limit hard @@ -750,6 +756,7 @@ < tor configuration < tor connected relays < tor contact info +< tor daemon < tor enabled < tor errmsg invalid accounting limit < tor errmsg invalid ip or mask @@ -772,6 +779,7 @@ < tor relay mode relay < tor relay nickname < tor relay port +< tor service < tor socks port < tor stats < tor traffic limit hard diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi old mode 100644 new mode 100755 index 2a31dd4..a1d0ae7 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -57,9 +57,42 @@ my @accounting_periods =3D ('daily', 'weekly', 'monthly'); =20 my $TOR_CONTROL_PORT =3D 9051; =20 +my $string=3D(); +my $memory=3D(); +my @memory=3D(); +my @pid=3D(); +my @tor=3D(); +sub daemonstats +{ + $memory =3D 0; + # for pid and memory + open(FILE, '/usr/local/bin/addonctrl tor status | '); + @tor =3D ; + close(FILE); + $string =3D join("", @tor); + $string =3D~ s/[a-z_]//gi; + $string =3D~ s/\[[0-1]\;[0-9]+//gi; + $string =3D~ s/[\(\)\.]//gi; + $string =3D~ s/ //gi; + $string =3D~ s/=1B//gi; + @pid =3D split(/\s/,$string); + if (open(FILE, "/proc/$pid[0]/statm")){ + my $temp =3D ; + @memory =3D split(/ /,$temp); + close(FILE); + } + $memory+=3D$memory[0]; +} +daemonstats(); + our %netsettings =3D (); &General::readhash("${General::swroot}/ethernet/settings", \%netsettings); =20 +our %color =3D (); +our %mainsettings =3D (); +&General::readhash("${General::swroot}/main/settings", \%mainsettings); +&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/i= nclude/colors.txt", \%color); + our %settings =3D (); =20 $settings{'TOR_ENABLED'} =3D 'off'; @@ -192,12 +225,37 @@ sub showMainBox() { =20 print "
\n"; =20 - &Header::openbox('100%', 'left', $Lang::tr{'tor configuration'}); + &Header::openbox('100%', 'center', $Lang::tr{'tor'}); + + +if ( ($memory !=3D 0) && (@pid[0] ne "///") ){ + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print "<= /tr>"; + print "
= $Lang::tr{'tor service'}
$Lang::tr{'tor daemon'}$Lang::tr{'running'}<= /font>
PID$Lang::t= r{'memory'}
@pid[0]$memory KB
"; + } else { + print ""; + print ""; + print ""; + print "= "; + print "
= $Lang::tr{'tor service'}
$Lang::tr{'tor daemon'}$Lang::tr{'stopped'}
"; + } + + &Header::closebox(); + + &Header::openbox('100%', 'center', $Lang::tr{'tor configuration'}); =20 print < + - + @@ -222,12 +280,11 @@ END =20 print < -

=20 -
$Lang::tr{'tor common settings'}= $Lang:= :tr{'tor common settings'}
$Lang::tr{'tor enabled'}:
+
- +
$Lang::tr{'tor acls'}$Lang:= :tr{'tor acls'}
@@ -244,12 +301,11 @@ END
=20
-

=20 - +
- + @@ -276,7 +332,6 @@ END
$Lang::tr{'tor exit nodes'}$Lang:= :tr{'tor exit nodes'}
-

END =20 &Header::closebox(); @@ -305,10 +360,10 @@ END } $selected{'TOR_RELAY_ACCOUNTING_PERIOD'}{$settings{'TOR_RELAY_ACCOUNTING_PE= RIOD'}} =3D 'selected'; =20 - &Header::openbox('100%', 'left', $Lang::tr{'tor relay configuration'}); + &Header::openbox('100%', 'center', $Lang::tr{'tor relay configuration'}); =20 print < +
$Lang::tr{'tor relay mode'}: @@ -342,11 +397,11 @@ END
=20 -
+
=20 - +
- + @@ -407,7 +462,7 @@ END &Header::closebox(); =20 print < +
$Lang::tr{'tor bandwidth settings'}<= /b>$Lang:= :tr{'tor bandwidth settings'}
$Lang::tr{'tor bandwidth rate'}:
3D'*' $Lang::tr{'this field may be blank'} @@ -418,7 +473,7 @@ END =20
=20 - +
@@ -429,13 +484,13 @@ END =20 # If we have a control connection, show the stats. if ($torctrl) { - &Header::openbox('100%', 'left', $Lang::tr{'tor stats'}); + &Header::openbox('100%', 'center', $Lang::tr{'tor stats'}); =20 my @traffic =3D &TorTrafficStats($torctrl); =20 if (@traffic) { print < +
 
END =20 if ($settings{'TOR_RELAY_ENABLED'} eq 'on') { @@ -476,7 +531,7 @@ END my $accounting =3D &TorAccountingStats($torctrl); if ($accounting) { print < +
@@ -527,7 +582,7 @@ END if (@nodes) { my $nodes_length =3D scalar @nodes; print < +
$Lang::tr{'tor accounting'}
@@ -546,7 +601,11 @@ END END =20 if (exists($node->{'country_code'})) { + if ($node->{'country_code'} eq '??') { + print ""; + } else { print "{'country_code'}'>{'country_code'}.png' border=3D'0' align=3D'absmiddle' alt= =3D'$node->{'country_code'}'>"; + } } =20 print </dev/null"); } + # Update pid and memory + daemonstats(); } =20 sub TorConnect() { diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index a0c426f..b55179f 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1817,6 +1817,7 @@ 'tor configuration' =3D> 'Tor-Konfiguration', 'tor connected relays' =3D> 'Verbundene Relays', 'tor contact info' =3D> 'Kontaktinformationen', +'tor daemon' =3D> 'Daemon', 'tor enabled' =3D> 'Tor einschalten', 'tor errmsg invalid accounting limit' =3D> 'Ung=C3=BCltiges Accounting-Limit= ', 'tor errmsg invalid ip or mask' =3D> 'Ung=C3=BCltiges IP-Subnetz', @@ -1839,6 +1840,7 @@ 'tor relay mode relay' =3D> 'Nur Relay', 'tor relay nickname' =3D> 'Relay-Nickname', 'tor relay port' =3D> 'Relay-Port', +'tor service' =3D> 'Tor-Service', 'tor socks port' =3D> 'SOCKS-Port', 'tor stats' =3D> 'Statistiken', 'tor traffic limit hard' =3D> 'Das =C3=9Cbertragungslimit wurde erreicht.', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index b84c6bb..43bd03d 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1852,6 +1852,7 @@ 'tor configuration' =3D> 'Tor Configuration', 'tor connected relays' =3D> 'Connected relays', 'tor contact info' =3D> 'Contact Info', +'tor daemon' =3D> 'Daemon', 'tor enabled' =3D> 'Enable Tor', 'tor errmsg invalid accounting limit' =3D> 'Invalid accounting limit', 'tor errmsg invalid ip or mask' =3D> 'Invalid IP subnet', @@ -1875,6 +1876,7 @@ 'tor relay mode relay' =3D> 'Relay only', 'tor relay nickname' =3D> 'Relay nickname', 'tor relay port' =3D> 'Relay port', +'tor service' =3D> 'Tor Service', 'tor socks port' =3D> 'SOCKS port', 'tor stats' =3D> 'Statistics', 'tor traffic limit hard' =3D> 'Traffic limit has been reached.', diff --git a/lfs/tor b/lfs/tor index 8bce4be..ae63d96 100644 --- a/lfs/tor +++ b/lfs/tor @@ -32,7 +32,7 @@ DL_FROM =3D $(URL_IPFIRE) DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) PROG =3D tor -PAK_VER =3D 1 +PAK_VER =3D 2 =20 DEPS =3D "libevent2" =20 @@ -107,6 +107,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) install -v -m 644 $(DIR_SRC)/config/tor/defaults-torrc \ /usr/share/tor/defaults-torrc =20 + # Install start links and backup include file. + ln -sf ../init.d/tor /etc/rc.d/rc3.d/S60tor + ln -sf ../init.d/tor /etc/rc.d/rc0.d/K40tor + ln -sf ../init.d/tor /etc/rc.d/rc6.d/K40tor install -v -m 644 $(DIR_SRC)/config/backup/includes/tor \ /var/ipfire/backup/addons/includes/tor @rm -rf $(DIR_APP) diff --git a/lfs/xinetd b/lfs/xinetd new file mode 100644 index 0000000..62f34ea --- /dev/null +++ b/lfs/xinetd @@ -0,0 +1,85 @@ +############################################################################= ### +# = # +# IPFire.org - A linux based firewall = # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt = # +# = # +# 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 = # +# the Free Software Foundation, either version 3 of the License, or = # +# (at your option) any later version. = # +# = # +# This program is distributed in the hope that it will be useful, = # +# but WITHOUT ANY WARRANTY; without even the implied warranty of = # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the = # +# GNU General Public License for more details. = # +# = # +# You should have received a copy of the GNU General Public License = # +# along with this program. If not, see . = # +# = # +############################################################################= ### + +############################################################################= ### +# Definitions +############################################################################= ### + +include Config + +VER =3D 2.3.15 + +THISAPP =3D xinetd-$(VER) +DL_FILE =3D $(THISAPP).tar.gz +DL_FROM =3D $(URL_IPFIRE) +DIR_APP =3D $(DIR_SRC)/$(THISAPP) +TARGET =3D $(DIR_INFO)/$(THISAPP) +PROG =3D xinetd +PAK_VER =3D 1 + +############################################################################= ### +# Top-level Rules +############################################################################= ### + +objects =3D $(DL_FILE) + +$(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 =3D 77358478fd58efa6366accae99b8b04c + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist:=20 + @$(PAK) + +############################################################################= ### +# Downloading, checking, md5sum +############################################################################= ### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + + +############################################################################= ### +# Installation Details +############################################################################= ### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=3D/usr + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + -mkdir -pv /etc/xinetd.d + cp -f $(DIR_SRC)/config/xinetd/xinetd.conf /etc/xinetd.conf + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 50a5878..bf00b5f 100755 --- a/make.sh +++ b/make.sh @@ -752,6 +752,7 @@ buildipfire() { ipfiremake acpid ipfiremake fping ipfiremake telnet + ipfiremake xinetd ipfiremake libgpg-error ipfiremake libassuan ipfiremake gpgme diff --git a/src/initscripts/init.d/tor b/src/initscripts/init.d/tor index e27241f..4fef577 100644 --- a/src/initscripts/init.d/tor +++ b/src/initscripts/init.d/tor @@ -9,6 +9,10 @@ . /etc/sysconfig/rc . ${rc_functions} =20 +function tor_is_enabled() { + [ "${TOR_ENABLED}" =3D "on" ] || [ "${TOR_RELAY_ENABLED}" =3D "on" ] +} + function setup_firewall() { eval $(/usr/local/bin/readhash /var/ipfire/tor/settings) =20 @@ -27,6 +31,8 @@ function flush_firewall() { =20 case "${1}" in start) + tor_is_enabled || exit 0 + # Setup firewall. setup_firewall =20 diff --git a/src/paks/xinetd/install.sh b/src/paks/xinetd/install.sh new file mode 100644 index 0000000..347fd36 --- /dev/null +++ b/src/paks/xinetd/install.sh @@ -0,0 +1,34 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . = # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +extract_files +restore_backup ${NAME} + +mkdir /etc/xinetd.d + +start_service --background ${NAME} + +ln -sf ../init.d/${NAME} /etc/rc.d/rc0.d/K30xinetd +ln -sf ../init.d/${NAME} /etc/rc.d/rc3.d/S30xinetd +ln -sf ../init.d/${NAME} /etc/rc.d/rc6.d/K30xinetd diff --git a/src/paks/xinetd/uninstall.sh b/src/paks/xinetd/uninstall.sh new file mode 100644 index 0000000..a7b8a53 --- /dev/null +++ b/src/paks/xinetd/uninstall.sh @@ -0,0 +1,27 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . = # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +stop_service ${NAME} +make_backup ${NAME} +remove_files diff --git a/src/paks/xinetd/update.sh b/src/paks/xinetd/update.sh new file mode 100644 index 0000000..89c40d0 --- /dev/null +++ b/src/paks/xinetd/update.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . = # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh hooks/post-receive -- IPFire 2.x development tree --===============0569815608676531580==--
$Lang::tr{'tor connected relays'}<= /b> ($nodes_length)