rmails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6956a504f64259af30187a865ada6f82f1129ea
4
- data.tar.gz: 39390403e9f59ec3bb19d3ef01d0c9056e2a611b
3
+ metadata.gz: 08a72a2314c87bc4826cad68bd25ee09437ee948
4
+ data.tar.gz: 6cfd3a107228ee47b84ff16d9d31ff62f63fbddf
5
5
  SHA512:
6
- metadata.gz: 5535583d01e3a6b2214240c8ddf42fa5091db05c123ca620b11dc3bfedfc11bbfb9c3166e02250e4b686304d5dfb9b1018bfe4e25a1d8d1e99edcc8efaa42ec5
7
- data.tar.gz: 03dde0d040f43a8770962095f227ee706bd48681fc4948ddbd9e9c94d13cde28db87090fa0dfc9ed11d1eae1817049410de77c4054e5e9ccf483d5b1cda1d849
6
+ metadata.gz: 6ff0f20c67f7f8f2a9c2f7d490dac3e482783b38ecd365d9c0ea26d34048dbe3ac75eb42d24c5c9c2bd4a3903360b45ba75eadb376e6a56b0986f7a938c83525
7
+ data.tar.gz: 722bb29634c60373c36ea78524803cf06cfd392a959ec1f76d24dae5beefac9de553c196cfd0b1775a31f4a5e1b7894e769611d9d0fcd326c67b96a2dc497ef4
data/Gemfile CHANGED
@@ -5,4 +5,4 @@ gem 'open4'
5
5
  gem 'rails', '~> 3.2'
6
6
  gem 'devise'
7
7
 
8
- gem 'automate-it'
8
+ gem 'automate-it', :require => 'automateit'
@@ -5,7 +5,7 @@ A Ruby on Rails application which automates an installation and initial configur
5
5
 
6
6
  For Debian based servers. CentOs, Fedora and Gentoo support will be added in near future.
7
7
 
8
-
8
+ It is using fork of AutomateIt library [Automate-It](https://github.com/fanda/automateit).
9
9
 
10
10
 
11
11
  Requirements
@@ -16,8 +16,6 @@ Tested with ruby 1.8.7 and 1.9.3.
16
16
 
17
17
  Rubygems required.
18
18
 
19
- Git required (for [AutomateIt dependency](https://github.com/fanda/automateit))
20
-
21
19
 
22
20
  Project Maturity
23
21
  ----------------
@@ -33,23 +31,56 @@ Via rubygems.org:
33
31
  gem install rmails
34
32
 
35
33
 
36
- Using git:
34
+ Using git (recommended as in development)
37
35
 
38
- https://github.com/fanda/rmails.git
36
+ git clone https://github.com/fanda/rmails.git
39
37
 
40
38
 
41
39
  Getting Started
42
40
  ---------------
43
41
 
44
- Script rmails should be added, then
42
+ ### GIT (recommended)
43
+
44
+
45
+ Use git for installation:
46
+
47
+ git clone https://github.com/fanda/rmails.git
48
+
49
+ Then install all dependencies with bundler
45
50
 
46
- rmails --install
51
+ cd rmails; bundle install
52
+
53
+
54
+ And finally run rake task as the root or with sudo
55
+
56
+ sudo rake system:install
47
57
 
48
58
 
49
59
  to install all necessary programs, make initial configuration and start system services.
50
60
 
51
61
  Web application for administration can be started with
52
62
 
53
- rmails --start-app
63
+ bin/rmails --start-app
64
+
65
+ or
66
+
67
+ rails server
68
+
69
+
70
+ ### Rubygems
71
+
72
+ There may still be some errors with install script, but *rmails* script would be added in your PATH, so all you have to do is:
73
+
74
+ sudo rmails --install
75
+
76
+ to install all necessary programs, make initial configuration and start system services.
77
+
78
+ Web application for administration can be started with
79
+
80
+ bin/rmails --start-app
81
+
54
82
 
83
+ License
84
+ -------
55
85
 
86
+ Rmails is released under the [MIT License](https://github.com/fanda/rmails/blob/devel/LICENSE.txt)
@@ -1,3 +1,4 @@
1
1
  module Rmails
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
+ RELEASE = "2013-05-17"
3
4
  end
@@ -8,10 +8,10 @@ Gem::Specification.new do |s|
8
8
 
9
9
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
10
  s.authors = ["Pavel Novotny"]
11
- s.date = %q{2013-05-16}
11
+ s.date = Rmails::RELEASE
12
12
  s.description = %q{Setup for e-mail server and its admin application}
13
13
  s.email = %q{fandisek@gmail.com}
14
- s.homepage = %q{http://rubygems.org/gems/rmails}
14
+ s.homepage = %q{https://github.com/fanda/rmails}
15
15
  s.rubygems_version = %q{1.6.2}
16
16
  s.summary = %q{Autoinstall e-mail server and configure it with Ruby on Rails}
17
17
  s.bindir = 'bin'
@@ -0,0 +1 @@
1
+ <%= mailname %>
@@ -5,4 +5,4 @@ gem 'open4'
5
5
  gem 'rails', '~> 3.2'
6
6
  gem 'devise'
7
7
 
8
- gem 'automate-it'
8
+ gem 'automate-it', :require => 'automateit'
@@ -7,7 +7,7 @@ gem 'devise'
7
7
  gem 'thin'
8
8
  gem 'pg'
9
9
 
10
- gem 'automate-it'
10
+ gem 'automate-it', :require => 'automateit'
11
11
 
12
12
  gem 'simple_form'
13
13
  gem 'paper_trail'
@@ -32,7 +32,7 @@ service_manager.restart("postgresql")
32
32
  # get password for database connection
33
33
  password = lookup('postfix#database#password')
34
34
 
35
- if 1 ==`sudo -u postgres psql -l | grep -w rmails | wc -l`
35
+ #if '1'==`sudo -u postgres psql -l | grep -w rmails | wc -l`.to_s.chomp
36
36
  # create roles and application database
37
37
  shell_manager.sh "sudo -u postgres psql << EOF
38
38
  CREATE USER postfix ENCRYPTED password '#{password}';
@@ -40,7 +40,7 @@ if 1 ==`sudo -u postgres psql -l | grep -w rmails | wc -l`
40
40
  CREATE ROLE rmails_app WITH USER postfix, dovecot LOGIN PASSWORD '#{password}';
41
41
  CREATE DATABASE rmails OWNER rmails_app;
42
42
  EOF", :quiet => true
43
- end
43
+ #end
44
44
 
45
45
  # render rails database definition
46
46
  locals = {
@@ -85,6 +85,16 @@ edit :file => "#{etc_postfix}/main.cf" do
85
85
  end
86
86
  =end
87
87
 
88
+ locals = {
89
+ :mailname => lookup("postfix#mydomain")
90
+ }
91
+ render(
92
+ :file => "#{dist}postfix/mailname.erb",
93
+ :to => "/etc/mailname",
94
+ :mode => 0660,
95
+ :locals => locals
96
+ )
97
+
88
98
  #
89
99
  # Set DKIM
90
100
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Novotny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-16 00:00:00.000000000 Z
11
+ date: 2013-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -432,6 +432,7 @@ files:
432
432
  - system/dist/nginx/awstats.erb
433
433
  - system/dist/nginx/rmails.erb
434
434
  - system/dist/postfix/email2email.cf.erb
435
+ - system/dist/postfix/mailname.erb
435
436
  - system/dist/postfix/main.cf.erb
436
437
  - system/dist/postfix/master.cf.erb
437
438
  - system/dist/postfix/sasl.conf.erb
@@ -508,7 +509,7 @@ files:
508
509
  - vendor/assets/javascripts/twitter/bootstrap-typeahead.js
509
510
  - vendor/assets/javascripts/twitter/my/bootstrap-typeahead.js
510
511
  - vendor/assets/stylesheets/.gitkeep
511
- homepage: http://rubygems.org/gems/rmails
512
+ homepage: https://github.com/fanda/rmails
512
513
  licenses:
513
514
  - MIT
514
515
  metadata: {}