0001-Improved-Debian-package.patch

Jochen Schalanda, 07/18/2010 03:49 pm

Download (24.6 KB)

 
b/extras/debian/changelog
1
foreman (0.1.5-2) experimental; urgency=low
2

  
3
  * Bugfixes, added support for dbconfig-common and split packages.
4

  
5
 -- Jochen Schalanda <jochen@schalanda.name>  Mon, 07 Jul 2010 17:25:04 +0800
6

  
1 7
foreman (0.1.5-1) experimental; urgency=low
2 8

  
3 9
  * Initial Debian version
b/extras/debian/conf/database-sqlite.yml.template
1
production:
2
  adapter: _DBC_DBTYPE_
3
  database: _DBC_BASEPATH_/_DBC_DBNAME_
4
  encoding: utf8
b/extras/debian/conf/database.yml.template
1
production:
2
  adapter: _DBC_DBTYPE_
3
  database: _DBC_DBNAME_
4
  host: _DBC_DBSERVER_
5
  port: _DBC_DBPORT_
6
  username: _DBC_DBUSER_
7
  password: _DBC_DBPASS_
8
  encoding: utf8
b/extras/debian/config
1
#!/bin/sh
2
# config maintainer script for foreman
3

  
4
set -e
5
#set -x
6

  
7
# source debconf stuff
8
. /usr/share/debconf/confmodule
9

  
10
if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
11
	. /usr/share/dbconfig-common/dpkg/config
12

  
13
	dbc_dbuser="foreman"
14
	dbc_dbname="foreman"
15
	dbc_dbtypes="mysql, pgsql, sqlite3"
16
	dbc_go foreman $@
17
fi
b/extras/debian/control
3 3
Section: web
4 4
Priority: extra
5 5
Standards-Version: 3.8.4
6
Build-Depends: debhelper (>= 7)
6
Build-Depends: debhelper (>= 7), cdbs
7 7
Homepage: http://www.theforeman.org/
8 8

  
9 9
Package: foreman
10 10
Architecture: all
11
Depends: ${misc:Depends}, ruby, ruby1.8 (>= 1.8.7), rake (>=0.8.3), puppet (>=0.24.4)
12
Recommends: libfcgi-ruby, libapache2-mod-passenger | libapache2-mod-fcgid | mongrel, libdbd-sqlite3-ruby, sqlite3
11
Pre-Depends: debconf
12
Depends: ruby, ruby1.8 (>= 1.8.7), rubygems, rubygems1.8, rake (>=0.8.3), libjs-prototype (>= 1.6.1), libjs-scriptaculous (>= 1.8.2), puppet (>=0.24.4), dbconfig-common, foreman-sqlite3 | foreman-mysql | foreman-pgsql, ${misc:Depends}
13
Recommends: libfcgi-ruby, libapache2-mod-passenger | libapache2-mod-fcgid
14
Suggests: thin | mongrel | httpd-cgi
13 15
Description: Systems management web interface
14 16
 Foreman is aimed to be a single address for all machines life cycle management.
15 17
 .
......
27 29
    subnets and puppetmasters are required.
28 30
    In many cases, Foreman could help remote provisions where no experienced
29 31
    technicians are available.
32

  
33
Package: foreman-mysql
34
Architecture: all
35
Depends: libdbd-mysql-ruby, mysql-client | virtual-mysql-client, ${misc:Depends}
36
Suggests: mysql-server
37
Description: metapackage providing MySQL dependencies for Foreman
38
 This package only provides MySQL dependencies for Foreman, a
39
 flexible systems management web application. Install this
40
 one if you want to use a MySQL database with Foreman.
41
 .
42
 Foreman package should be installed along with this package.
43

  
44
Package: foreman-pgsql
45
Architecture: all
46
Depends: libdbd-pg-ruby, postgresql-client, ${misc:Depends}
47
Suggests: postgresql
48
Description: metapackage providing PostgreSQL dependencies for Foreman
49
 This package provides PostgreSQL dependencies for Foreman, a
50
 flexible systems management web application. Install this
51
 one if you want to use a PostgreSQL database with Foreman.
52
 .
53
 Foreman package should be installed along with this package.
54

  
55
Package: foreman-sqlite3
56
Architecture: all
57
Depends: libdbd-sqlite3-ruby, sqlite3, ${misc:Depends}
58
Description: metapackage providing sqlite dependencies for Foreman
59
 This package provides sqlite dependencies for Foreman, a
60
 flexible systems management web application. Install this
61
 one if you want to use a SQLite database with Foreman.
62
 .
63
 Foreman package should be installed along with this package.
b/extras/debian/copyright
1
Copyright (c) 2009-2010 Ohad Levy and Paul Kelly
1
This package was debianized by Jochen Schalanda <jochen@schalanda.name>
2
on Sun, 18 Jul 2010 10:09:29 +0302
2 3

  
3
This program and entire repository is free software: you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation, either version 3 of the License, or
6
any later version.
4
It was downloaded from: http://www.theforeman.org/
7 5

  
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
GNU General Public License for more details.
6
Upstream Author(s):
12 7

  
13
You should have received a copy of the GNU General Public License
14
along with this program.  If not, see <http://www.gnu.org/licenses/>.
8
	Ohad Levy
9
	Paul Kelly
15 10

  
16
On any Debian system, you can find the complete text of the GNU GPL
17
(GNU General Public License) in the file /usr/share/common-licenses/GPL-3
11
Copyright:
12

  
13
       Copyright (C) 2009-2010 by Ohad Levy and Paul Kelly
14

  
15
License: GPL-3
16

  
17
	On any Debian system, you can find the complete text of the GNU GPL
18
	(GNU General Public License) in the file '/usr/share/common-licenses/GPL-3'.
19

  
20
Packaging:
21

  
22
	Copyright (C) 2010 by Jochen Schalanda <jochen@schalanda.name>
23
	released under the GPL-3, see '/usr/share/common-licenses/GPL-3'.
24

  
25
Files: vendor/gems/googlecharts-1.3.6
26
Copyright: 2007 Matt Aimonetti
27
License: MIT
28
 Permission is hereby granted, free of charge, to any person obtaining a copy
29
 of this software and associated documentation files (the "Software"), to deal
30
 in the Software without restriction, including without limitation the rights
31
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
 copies of the Software, and to permit persons to whom the Software is
33
 furnished to do so, subject to the following conditions:
34
 
35
 The above copyright notice and this permission notice shall be included in
36
 all copies or substantial portions of the Software.
37
 
38
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
44
 THE SOFTWARE.
45

  
46
Files: vendor/plugins/acts_as_audited
47
Copyright: 2008 Brandon Keepers - Collective Idea
48
License: MIT
49

  
50
Files: vendor/plugins/google_visualr
51
Copyright: 2010 Winston Teo Yong Wei
52
License: MIT
53

  
54
Files: vendor/plugins/has_many_polymorphs
55
Copyright: Cloudburst, LLC
56
License: AFL-3 (http://www.rosenlaw.com/AFL3.0.htm)
57

  
58
Files: vendor/plugins/proxy
59
Copyright: 2009 Ohad Levy
60
License: MIT
61

  
62
Files: vendor/plugins/ruby-net-ldap
63
Copyright: Francis Cianfrocca
64
License: GPL-2
65
 On Debian systems, the complete text of the GNU General
66
 Public License can be found in `/usr/share/common-licenses/GPL-2'.
67

  
68
Files: vendor/plugins/searchlogic
69
Copyright: 2009 Ben Johnson of Binary Logic
70
License: MIT
71

  
72
Files: vendor/plugins/will_paginate
73
Copyright: 2007 PJ Hyett and Mislav Marohnić
74
License: MIT
75

  
76
Files: vendor/rails/actionmailer
77
Copyright: 2004-2010 David Heinemeier Hansson
78
License: MIT
79

  
80
Files: vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3
81
Copyright: Jeff Hodges
82
License: LGPL-2.1
83
 On Debian systems, the complete text of the GNU Lesser General
84
 Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
85

  
86
Files: vendor/rails/actionpack
87
Copyright: 2004-2010 David Heinemeier Hansson
88
License: MIT
89

  
90
Files: vendor/rails/activerecord
91
Copyright: 2004-2010 David Heinemeier Hansson
92
License: MIT
93

  
94
Files: vendor/rails/activeresource
95
Copyright: 2006-2010 David Heinemeier Hansson
96
License: MIT
97

  
98
Files: vendor/rails/activesupport
99
Copyright: 2005-2010 David Heinemeier Hansson
100
License: MIT
101

  
102
Files: vendor/rails/railties
103
Copyright: 2004-2010 David Heinemeier Hansson
104
License: MIT
b/extras/debian/foreman.default
1 1
# Start foreman on boot?
2
START=yes
2
START=no
3 3

  
4 4
# the location where foreman is installed
5 5
#FOREMAN_HOME=/usr/share/foreman
b/extras/debian/foreman.init
40 40
{
41 41
    if is_true "$START" ; then
42 42
        start-stop-daemon --start --quiet --chuid "${FOREMAN_USER}" --pidfile "${FOREMAN_PID}" \
43
                          --chdir "${FOREMAN_HOME}" --exec "${DAEMON}" -- $DAEMON_OPTS
43
                          --chdir "${FOREMAN_HOME}" --exec "${DAEMON}" -- $DAEMON_OPTS >/dev/null
44 44
    else
45 45
        echo ""
46 46
        echo "${NAME} not configured to start. Please edit /etc/default/${NAME} to enable."
b/extras/debian/foreman.logrotate
1
/var/log/foreman/*log {
1
# Foreman logs:
2
/var/log/foreman/*.log {
3
  daily
2 4
  missingok
5
  rotate 14
6
  compress
7
  delaycompress
3 8
  notifempty
4
  create 0644 foreman foreman
5
  sharedscripts
6
  postrotate
7
    [ -x /etc/init.d/foreman ] && /etc/init.d/foreman force-reload >/dev/null 2>&1 || true
8
  endscript
9
  copytruncate
9 10
}
b/extras/debian/install
1 1
# Install the basic application files
2 2
app usr/share/foreman
3 3
config usr/share/foreman
4
config/database.yml etc/foreman
4
#config/database.yml etc/foreman
5 5
config/email.yaml.example etc/foreman
6 6
config/settings.yaml etc/foreman
7 7
db var/lib/foreman
......
14 14
vendor/plugins usr/share/foreman/vendor
15 15
vendor/gems usr/share/foreman/vendor
16 16
vendor/rails usr/share/foreman/vendor
17
debian/conf/*.template usr/share/foreman/templates
18

  
b/extras/debian/links
5 5
var/lib/foreman/db		usr/share/foreman/db
6 6
var/log/foreman			usr/share/foreman/log
7 7
var/lib/foreman/public		usr/share/foreman/public
8

  
9
# Link to libjs-prototype
10
usr/share/javascript/prototype/prototype.js	var/lib/foreman/public/javascripts/prototype.js
11
usr/share/javascript/prototype/prototype.js	usr/share/foreman/vendor/plugins/has_many_polymorphs/test/integration/app/public/javascripts/prototype.js
12
usr/share/javascript/prototype/prototype.js	usr/share/foreman/vendor/rails/actionpack/test/fixtures/public/javascripts/prototype.js
13
usr/share/javascript/prototype/prototype.js	usr/share/foreman/vendor/rails/railties/html/javascripts/prototype.js
14

  
15
# Link to libjs-scriptaculous
16
usr/share/javascript/scriptaculous/controls.js var/lib/foreman/public/javascripts/controls.js
17
usr/share/javascript/scriptaculous/dragdrop.js var/lib/foreman/public/javascripts/dragdrop.js
18
usr/share/javascript/scriptaculous/effects.js var/lib/foreman/public/javascripts/effects.js
b/extras/debian/postinst
1
#!/bin/bash
1
#!/bin/sh
2
# postinst script for foreman
3
#
4
# see: dh_installdeb(1)
2 5

  
3 6
set -e
7
#set -x
4 8

  
5
chown 'foreman:foreman' '/var/lib/foreman'
6
chmod '755' '/var/lib/foreman'
7
chown 'foreman:foreman' '/var/lib/foreman/db'
8
chmod '755' '/var/lib/foreman/db'
9
chown 'foreman:foreman' '/var/lib/foreman/public'
10
chmod '755' '/var/lib/foreman/public'
11
chown 'foreman:foreman' '/var/lib/foreman/public/404.html'
12
chown 'foreman:foreman' '/var/lib/foreman/public/422.html'
13
chown 'foreman:foreman' '/var/lib/foreman/public/500.html'
14
chown 'foreman:foreman' '/var/lib/foreman/public/blank.html'
15
chown 'foreman:foreman' '/var/lib/foreman/public/favicon.ico'
16
chown 'foreman:foreman' '/var/lib/foreman/public/images'
17
chmod '755' '/var/lib/foreman/public/images'
18
chown 'foreman:foreman' '/var/lib/foreman/public/images/false.png'
19
chown 'foreman:foreman' '/var/lib/foreman/public/images/hosts'
20
chmod '755' '/var/lib/foreman/public/images/hosts'
21
chown 'foreman:foreman' '/var/lib/foreman/public/images/hosts/Darwin.jpg'
22
chown 'foreman:foreman' '/var/lib/foreman/public/images/hosts/Linux.jpg'
23
chown 'foreman:foreman' '/var/lib/foreman/public/images/hosts/SunOS.jpg'
24
chown 'foreman:foreman' '/var/lib/foreman/public/images/hosts/attention_required.png'
25
chown 'foreman:foreman' '/var/lib/foreman/public/images/hosts/warning.png'
26
chown 'foreman:foreman' '/var/lib/foreman/public/images/rails.png'
27
chown 'foreman:foreman' '/var/lib/foreman/public/images/true.png'
28
chown 'foreman:foreman' '/var/lib/foreman/public/javascripts'
29
chmod '755' '/var/lib/foreman/public/javascripts'
30
chown 'foreman:foreman' '/var/lib/foreman/public/javascripts/application.js'
31
chown 'foreman:foreman' '/var/lib/foreman/public/javascripts/controls.js'
32
chown 'foreman:foreman' '/var/lib/foreman/public/javascripts/dragdrop.js'
33
chown 'foreman:foreman' '/var/lib/foreman/public/javascripts/effects.js'
34
chown 'foreman:foreman' '/var/lib/foreman/public/javascripts/host_checkbox.js'
35
chown 'foreman:foreman' '/var/lib/foreman/public/javascripts/prototype.js'
36
chown 'foreman:foreman' '/var/lib/foreman/public/robots.txt'
37
chown 'foreman:foreman' '/var/lib/foreman/public/stylesheets'
38
chmod '755' '/var/lib/foreman/public/stylesheets'
39
chown 'foreman:foreman' '/var/lib/foreman/public/stylesheets/style.css'
40
chown 'foreman:foreman' '/var/log/foreman'
41
chown 'foreman:foreman' '/var/cache/foreman'
42
chmod '755' '/var/cache/foreman'
43

  
44
# initialize/migrate the database (defaults to SQLITE3)
45
su - foreman -s /bin/bash -c /usr/share/foreman/extras/dbmigrate >/dev/null 2>&1
9
. /usr/share/debconf/confmodule
10
. /usr/share/dbconfig-common/dpkg/postinst
11

  
12
chown -Rf foreman:foreman '/var/log/foreman'
13
chown -Rf foreman:foreman '/var/cache/foreman'
14
chown -Rf foreman:foreman '/var/lib/foreman'
15
chmod 755 '/var/lib/foreman'
16
chmod 755 '/var/lib/foreman/db'
17
chmod 755 '/var/lib/foreman/public'
18
chmod 755 '/var/lib/foreman/public/images'
19
chmod 755 '/var/lib/foreman/public/images/hosts'
20
chmod 755 '/var/lib/foreman/public/javascripts'
21
chmod 755 '/var/lib/foreman/public/stylesheets'
22
chmod 755 '/var/cache/foreman'
23

  
24
# Database setup
25
dbc_generate_include='template:/etc/foreman/database.yml'
26
dbc_generate_include_owner='foreman:foreman'
27
dbc_generate_include_perms='640'
28
dbc_dbfile_owner='foreman:foreman'
29
dbc_dbfile_perms='0660'
30

  
31
db_get foreman/database-type || true
32
DB_TYPE=${RET}
33

  
34
case "${DB_TYPE}" in
35
	sqlite3)
36
		dbc_generate_include_args='-o template_infile=/usr/share/foreman/templates/database-sqlite.yml.template'
37
	;;
38
	mysql|pgsql)
39
		dbc_generate_include_args='-o template_infile=/usr/share/foreman/templates/database.yml.template'
40
	;;
41
	*)
42
		exit 1;
43
	;;
44
esac
45

  
46
dbc_go foreman $@
47

  
48
# initialize/migrate the database
49
su - foreman -s /bin/sh -c /usr/share/foreman/extras/dbmigrate >/dev/null 2>&1
46 50

  
47 51
#DEBHELPER#
48 52

  
b/extras/debian/postrm
1
#!/bin/bash
1
#!/bin/sh
2 2

  
3 3
set -e
4
#set -x
5

  
6
if [ -f /usr/share/debconf/confmodule ]; then
7
        . /usr/share/debconf/confmodule
8
fi
9

  
10
case "$1" in
11
	remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
12
	;;
13
	
14
	purge)
15
		if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
16
			. /usr/share/dbconfig-common/dpkg/postrm
17
			db_purge
18
		fi
19
		if which ucf >/dev/null 2>&1; then
20
			ucf --purge /etc/foreman/database.yml
21
			ucf --purge /etc/foreman/email.yml
22
			ucf --purge /etc/foreman/session.yml
23
		fi
24
		# package-generated or runtime files are removed
25
		rm -f /usr/share/foreman/db/schema.db
26
		rm -rf /var/run/foreman
27
		rm -rf /var/log/foreman
28
		rm -rf /usr/share/foreman/tmp
29
		rm -rf /var/lib/foreman/*/sessions
30
		rm -rf /var/cache/foreman
31
		rm -rf /etc/foreman
32
	;;
33
	*)
34
		echo "postrm called with unknown argument \`$1'" >&2
35
		exit 1
36
	;;
37
esac
4 38

  
5 39
#DEBHELPER#
6 40

  
b/extras/debian/preinst
1
#!/bin/bash
1
#!/bin/sh
2 2

  
3 3
set -e
4
#set -x
4 5

  
5 6
# Add the "foreman" user and group
6 7
getent group foreman >/dev/null || groupadd -r foreman
b/extras/debian/prerm
1
#!/bin/bash
1
#!/bin/sh
2 2

  
3 3
set -e
4
#set -x
5

  
6
. /usr/share/debconf/confmodule
7
. /usr/share/dbconfig-common/dpkg/prerm
8
dbc_go foreman $@
4 9

  
5 10
#DEBHELPER#
6 11

  
b/extras/debian/rules
1 1
#!/usr/bin/make -f
2
# Uncomment this to turn on verbose mode.
3
export DH_VERBOSE=1
4

  
5
build:
6
	dh_testdir
2
# -*- makefile -*-
7 3

  
8
clean:
9
	dh_testdir
10
	dh_testroot
11
	dh_clean
4
include /usr/share/cdbs/1/rules/debhelper.mk
12 5

  
13
install: build
14
	dh_testdir
15
	dh_testroot
16
	dh_prep
17
	dh_installdirs
18
	dh_install
19

  
20
binary-indep: build install
21
	dh_testdir
22
	dh_testroot
23
	dh_installchangelogs
24
	dh_installdocs
25
	dh_installinit
26
	dh_installlogrotate
27
	dh_link
28
	dh_compress
29
	dh_fixperms
30
	dh_installdeb
31
	dh_gencontrol
32
	dh_md5sums
33
	dh_builddeb
6
# Uncomment this to turn on verbose mode.
7
#DEB_VERBOSE_ALL=1
8
#DH_VERBOSE=1
34 9

  
35
binary-arch:
10
DEB_STRIP_EXCLUDE="debian/foreman/usr/share/foreman/extras/jumpstart/curl"
11
DEB_DH_SHLIBDEPS_ARGS=-X debian/foreman/usr/share/foreman/extras/jumpstart/curl
36 12

  
37
binary: binary-indep binary-arch
38
.PHONY: build clean binary-indep binary-arch install
13
binary-install/foreman::
14
	# Cleanup unused files
15
	find debian/foreman -name '.cvsignore' -type f | xargs rm -f
16
	find debian/foreman -name '.gitignore' -type f | xargs rm -f
17
	find debian/foreman -name '.git' -type d | xargs rm -rf
18
	find debian/foreman -name '.svn' -type d | xargs rm -rf
19
	# Mark scripts as executable
20
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/blankslate.rb
21
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb
22
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb
23
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb
24
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb
25
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb
26
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb
27
	chmod a+x debian/foreman/usr/share/foreman/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb
28
	# Remove executable bit from files where not necessary
29
	chmod a-x debian/foreman/usr/share/foreman/extras/jumpstart/rules.ok
30
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb
31
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/*.rb
32
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/request.rb
33
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
34
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/activerecord/lib/active_record/*.rb
35
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/activerecord/test/cases/base_test.rb
36
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/railties/bin/rails
37
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/railties/fresh_rakefile
38
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/railties/guides/files/javascripts/*.js
39
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/railties/guides/files/stylesheets/*.css
40
	chmod a-x debian/foreman/usr/share/foreman/vendor/rails/railties/lib/commands/generate.rb
41
	# Remove license files
42
	rm -f debian/foreman/usr/share/foreman/vendor/gems/googlecharts-1.3.6/License.txt
43
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/acts_as_audited/LICENSE
44
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/google_visualr/MIT-LICENSE
45
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/has_many_polymorphs/LICENSE
46
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/proxy/MIT-LICENSE
47
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/ruby-net-ldap/COPYING
48
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/ruby-net-ldap/LICENSE
49
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/searchlogic/LICENSE
50
	rm -f debian/foreman/usr/share/foreman/vendor/plugins/will_paginate/LICENSE
51
	rm -f debian/foreman/usr/share/foreman/vendor/rails/actionmailer/MIT-LICENSE
52
	rm -f debian/foreman/usr/share/foreman/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/COPYING
53
	rm -f debian/foreman/usr/share/foreman/vendor/rails/actionpack/MIT-LICENSE
54
	rm -f debian/foreman/usr/share/foreman/vendor/rails/activerecord/MIT-LICENSE
55
	rm -f debian/foreman/usr/share/foreman/vendor/rails/activeresource/MIT-LICENSE
56
	rm -f debian/foreman/usr/share/foreman/vendor/rails/activesupport/MIT-LICENSE
57
	rm -f debian/foreman/usr/share/foreman/vendor/rails/railties/MIT-LICENSE
58
	rm -f debian/foreman/usr/share/foreman/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE
59
	# Fix scripts
60
	sed -e 's:/usr/local/bin/ruby:/usr/bin/env ruby:' -i debian/foreman/usr/share/foreman/vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.cgi
61
	sed -e 's:/usr/local/bin/ruby:/usr/bin/env ruby:' -i debian/foreman/usr/share/foreman/vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.rb
39
-