forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud-init-0.7.6_p1212-gentoo.patch
33 lines (33 loc) · 1.49 KB
/
cloud-init-0.7.6_p1212-gentoo.patch
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
diff -Nuar --exclude '*~' trunk.orig/setup.py trunk/setup.py
--- trunk.orig/setup.py 2016-04-25 14:44:43.000000000 -0700
+++ trunk/setup.py 2016-04-25 15:44:45.254496814 -0700
@@ -1,3 +1,4 @@
+#!/usr/bin/python2
# vi: ts=4 expandtab
#
# Distutils magic for ec2-init
@@ -74,6 +75,7 @@
'sysvinit': [f for f in glob('sysvinit/redhat/*') if is_f(f)],
'sysvinit_freebsd': [f for f in glob('sysvinit/freebsd/*') if is_f(f)],
'sysvinit_deb': [f for f in glob('sysvinit/debian/*') if is_f(f)],
+ 'sysvinit_openrc': [f for f in glob('sysvinit/gentoo/*') if is_f(f)],
'systemd': [f for f in (glob('systemd/*.service') +
glob('systemd/*.target')) if is_f(f)],
'systemd.generators': [f for f in glob('systemd/*-generator') if is_f(f)],
@@ -83,6 +85,7 @@
'sysvinit': '/etc/rc.d/init.d',
'sysvinit_freebsd': '/usr/local/etc/rc.d',
'sysvinit_deb': '/etc/init.d',
+ 'sysvinit_openrc': '/etc/init.d',
'systemd': pkg_config_read('systemd', 'systemdsystemunitdir'),
'systemd.generators': pkg_config_read('systemd',
'systemdsystemgeneratordir'),
@@ -205,7 +208,7 @@
author='Scott Moser',
author_email='[email protected]',
url='http://launchpad.net/cloud-init/',
- packages=setuptools.find_packages(exclude=['tests']),
+ packages=setuptools.find_packages(exclude=['tests.*', 'tests']),
scripts=['bin/cloud-init',
'tools/cloud-init-per'],
license='GPLv3',