-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmetadata.rb
128 lines (106 loc) · 6.16 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name 'qmailtoaster'
maintainer 'Sebastian Grewe'
maintainer_email 'sebastian@grewe.ca'
license 'Apache 2.0'
description 'Installs/Configures qmailtoaster and Spamdyke (optional)'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.3.0'
recipe 'qmailtoaster', 'Installs and configures a qmail toaster installation, includes many sub-recipes'
recipe 'qmailtoaster::_add_repositories', 'Included by default: Adds required RPMForge Repository'
recipe 'qmailtoaster::_pre_setup', 'Included by default: Removes pre-installed mail server and installs ssmtp for dependency satisfaction'
recipe 'qmailtoaster::_install_dependencies', 'Included by default: Installs are depending packages for the build process'
recipe 'qmailtoaster::_install_source_rpm', 'Included by default: rpmbuilds and installs all source rpms'
recipe 'qmailtoaster::_create_database', 'Included by default: Create vpopmail database and grant access to vpopmail user with default password'
recipe 'qmailtoaster::_post_setup', 'Included by default: Finishes the installation by writing some custom templates'
recipe 'qmailtoaster::spamdyke', 'Install and configure spamdyke using node variables, include sub-recipes'
recipe 'qmailtoaster::_pre_setup_spamdyke', 'Included by spamdyke: Install dependencies and create directories'
recipe 'qmailtoaster::_install_spamdyke', 'Included by spamdyke: Downloads spamdyke source and installs it'
recipe 'qmailtoaster::_configure_spamdyke', 'Included by spamdyke: Configures spamdyke main configuration and black-/whitelists'
recipe 'qmailtoaster::_test_spamdyke', 'Included by spamdyke: Tests the current spamdyke configuration'
attribute 'qmailtoaster/packages/required',
:display_name => 'Required Packages',
:description => 'List of packages that are required for the entire build process and setup.',
:default => 'rpm-build kernel-devel compat-libf2c-34 compat-libstdc++-33 aspell bzip2 bzip2-devel bzip2-libs compat-gcc-34 compat-gcc-34-c++ compat-glibc compat-glibc-headers curl libcurl-devel expect expect-devel gdbm gdbm-devel gmp gmp-devel groff httpd-devel httpd-manual krb5-auth-dialog krb5-devel krb5-libs krb5-workstation libgcc libidn libidn-devel libtool libtool-ltdl libtool-ltdl-devel mysql-bench mrtg openssl-devel pcre-devel php-ldap procmail perl-libwww-perl perl-Archive-Tar perl-Digest-HMAC perl-Digest-SHA1 perl-HTML-Parser perl-Net-DNS perl-Time-HiRes perl-Mail-SPF-Query perl-ExtUtils-MakeMaker perl-NetAddr-IP sed setup stunnel system-config-date wget which zlib zlib-devel ncurses-devel redhat-rpm-config rpm-build rpm-devel rpm-libs rpm-python'
attribute 'qmailtoaster/packages/sources',
:display_name => 'Source RPMs',
:description => '(sorted) array with hashes for all source rpms that will be built.',
:default => ''
attribute 'qmailtoaster/workspace',
:display_name => 'rpmbuild Workspace',
:description => 'Location where all SRPMs are placed and compiled, then installed.',
:default => '/root/rpmbuild'
attribute 'qmailtoaster/vpopmail/database/password',
:display_name => 'Database Password',
:description => 'vpopmail user database password, will be set after installation completes',
:default => 'SsEeCcRrEeT'
attribute 'spamdyke/version',
:display_name => 'Spamdyke Version',
:description => 'Spamdyke version to install.',
:default => '4.3.1'
attribute 'spamdyke/source/url',
:display_name => 'Spamdyke URL',
:description => 'Download URL to fetch source from.',
:default => 'http://www.spamdyke.org/releases'
attribute 'spamdyke/source/directory',
:display_name => 'Source Directory',
:description => 'Download and extract files here.',
:default => '/usr/src/spamdyke'
attribute 'spamdyke/base_dir',
:display_name => 'Base Directory',
:description => 'Base directory for spamdyke installation.',
:default => '/opt/spamdyke'
attribute 'spamdyke/config/main',
:display_name => 'Various configuration variables',
:description => 'Any key/value pair here will be included in the spamdyke.conf. See spamdyke.rb attributes file.',
:default => ''
attribute 'spamdyke/config/whitelist/ip',
:display_name => 'IP Whitelist',
:description => 'IP whitelist entries.',
:default => ''
attribute 'spamdyke/config/whitelist/rdns',
:display_name => 'RDNS Whitelist',
:description => 'RDNS whitelist entries.',
:default => ''
attribute 'spamdyke/config/whitelist/sender',
:display_name => 'Sende Whitelist',
:description => 'Sender whitelist entries.',
:default => ''
attribute 'spamdyke/config/whitelist/recipient',
:display_name => 'Recipient Whitelist',
:description => 'Recipient whitelist entries.',
:default => ''
attribute 'spamdyke/config/whitelist/keywords',
:display_name => 'keywords Whitelist',
:description => 'Keywords whitelist entries.',
:default => ''
attribute 'spamdyke/config/blacklist/ip',
:display_name => 'IP Blacklist',
:description => 'IP blacklist entries.',
:default => ''
attribute 'spamdyke/config/blacklist/rdns',
:display_name => 'RDNS Blacklist',
:description => 'RDNS blacklist entries.',
:default => ''
attribute 'spamdyke/config/blacklist/sender',
:display_name => 'Sender Blacklist',
:description => 'Sender blacklist entries.',
:default => ''
attribute 'spamdyke/config/blacklist/recipient',
:display_name => 'Recipient Blacklist',
:description => 'Recipient blacklist entries.',
:default => ''
attribute 'spamdyke/config/blacklist/keywords',
:display_name => 'Keywords Blacklist',
:description => 'Keywords blacklist entries.',
:default => ''
supports 'centos', '>= 6.0'
depends 'apache2'
depends 'build-essential'
depends 'mysql'
depends 'openssl'
depends 'perl'
depends 'php'
depends 'database'
depends 'openssl'
depends 'yum'
depends 'yum-repoforge'