/[smecontribs]/rpms/smeserver-denyhosts/contribs7/patchjpp.patch
ViewVC logotype

Annotation of /rpms/smeserver-denyhosts/contribs7/patchjpp.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Apr 22 05:21:26 2008 UTC (16 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
panel correction expand template

1 unnilennium 1.1 diff -uNr smeserver-denyhosts-2.6/createlinks smeserverbis/createlinks
2     --- smeserver-denyhosts-2.6/createlinks 1970-01-01 01:00:00.000000000 +0100
3     +++ smeserverbis/createlinks 2008-04-22 03:42:06.000000000 +0200
4     @@ -0,0 +1,16 @@
5     +#!/usr/bin/perl -w
6     +
7     +use esmith::Build::CreateLinks qw(:all);
8     +
9     +service_link_enhanced("denyhosts", "K01", "0");
10     +service_link_enhanced("denyhosts", "K01", "1");
11     +service_link_enhanced("denyhosts", "K01", "2");
12     +service_link_enhanced("denyhosts", "K01", "3");
13     +service_link_enhanced("denyhosts", "K01", "4");
14     +service_link_enhanced("denyhosts", "K01", "5");
15     +service_link_enhanced("denyhosts", "K01", "6");
16     +service_link_enhanced("denyhosts", "S01", "7");
17     +
18     +
19     +exit 0;
20     +
21     diff -uNr smeserver-denyhosts-2.6/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts smeserverbis/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts
22     --- smeserver-denyhosts-2.6/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts 1970-01-01 01:00:00.000000000 +0100
23     +++ smeserverbis/root/etc/e-smith/templates/usr/share/denyhosts/data/allowed-hosts 2008-04-02 19:29:37.000000000 +0200
24     @@ -0,0 +1,26 @@
25     +# DO NOT MODIFY THIS FILE, IT IS TEMPLATISED
26     +#we mustn't block localhost
27     +127.0.0.1
28     +#others not to be blocked from SME database
29     +{
30     + use esmith::ConfigDB;
31     + my $ddb = esmith::ConfigDB->open_ro();
32     + my $denyhosts = $ddb->denyhosts;
33     + my $validfrom = $denyhosts{'ValidFrom'} || '';
34     +
35     + if ($validfrom ne "")
36     +
37     + {
38     + # split
39     + my @vals = split /,/, $validfrom;
40     +
41     + foreach $var_name ( @vals )
42     + {
43     + $OUT.="$var_name\n";
44     +
45     + }
46     + }
47     +}
48     +# you may add in template /etc/e-smith/tempaltes/var/lib/denyhosts
49     +# other hosts you do not want to be editable from server-manager
50     +# under this line, one per line
51     diff -uNr smeserver-denyhosts-2.6/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts smeserverbis/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts
52     --- smeserver-denyhosts-2.6/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts 2008-04-02 19:29:37.000000000 +0200
53     +++ smeserverbis/root/etc/e-smith/templates/var/lib/denyhosts/allowed-hosts 1970-01-01 01:00:00.000000000 +0100
54     @@ -1,26 +0,0 @@
55     -# DO NOT MODIFY THIS FILE, IT IS TEMPLATISED
56     -#we mustn't block localhost
57     -127.0.0.1
58     -#others not to be blocked from SME database
59     -{
60     - use esmith::ConfigDB;
61     - my $ddb = esmith::ConfigDB->open_ro();
62     - my $denyhosts = $ddb->denyhosts;
63     - my $validfrom = $denyhosts{'ValidFrom'} || '';
64     -
65     - if ($validfrom ne "")
66     -
67     - {
68     - # split
69     - my @vals = split /,/, $validfrom;
70     -
71     - foreach $var_name ( @vals )
72     - {
73     - $OUT.="$var_name\n";
74     -
75     - }
76     - }
77     -}
78     -# you may add in template /etc/e-smith/tempaltes/var/lib/denyhosts
79     -# other hosts you do not want to be editable from server-manager
80     -# under this line, one per line
81     diff -uNr smeserver-denyhosts-2.6/root/usr/share/denyhosts/data/allowed-hosts smeserverbis/root/usr/share/denyhosts/data/allowed-hosts
82     --- smeserver-denyhosts-2.6/root/usr/share/denyhosts/data/allowed-hosts 1970-01-01 01:00:00.000000000 +0100
83     +++ smeserverbis/root/usr/share/denyhosts/data/allowed-hosts 2005-05-20 06:57:02.000000000 +0200
84     @@ -0,0 +1,2 @@
85     +# We mustn't block localhost
86     +127.0.0.1
87     diff -uNr smeserver-denyhosts-2.6/root/var/lib/denyhosts/allowed-hosts smeserverbis/root/var/lib/denyhosts/allowed-hosts
88     --- smeserver-denyhosts-2.6/root/var/lib/denyhosts/allowed-hosts 2005-05-20 06:57:02.000000000 +0200
89     +++ smeserverbis/root/var/lib/denyhosts/allowed-hosts 1970-01-01 01:00:00.000000000 +0100
90     @@ -1,2 +0,0 @@
91     -# We mustn't block localhost
92     -127.0.0.1

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed