View | Details | Raw Unified | Return to bug 215155 | Differences between
and this patch

Collapse All | Expand All

(-)UIDs (-2 / +2 lines)
Lines 142-149 Link Here
142
cups:*:193:193::0:0:Cups Owner:/nonexistent:/usr/sbin/nologin
142
cups:*:193:193::0:0:Cups Owner:/nonexistent:/usr/sbin/nologin
143
saned:*:194:194::0:0:SANE Scanner Daemon:/nonexistent:/bin/sh
143
saned:*:194:194::0:0:SANE Scanner Daemon:/nonexistent:/bin/sh
144
radns:*:195:195::0:0:radns user:/nonexistent:/usr/sbin/nologin
144
radns:*:195:195::0:0:radns user:/nonexistent:/usr/sbin/nologin
145
# free: 196
145
nova:*:196:196::0:0:Nova daemon pseudo-user:/var/lib/nova:/usr/sbin/nologin
146
# free: 197
146
horizon:*:197:197::0:0:Horizon pseudo-user:/var/lib/horizon:/usr/sbin/nologin
147
# free: 198
147
# free: 198
148
mcserver:*:199:199::0:0:Minecraft Server:/nonexistent:/bin/sh
148
mcserver:*:199:199::0:0:Minecraft Server:/nonexistent:/bin/sh
149
sympa:*:200:200::0:0:Sympa Owner:/nonexistent:/usr/sbin/nologin
149
sympa:*:200:200::0:0:Sympa Owner:/nonexistent:/usr/sbin/nologin
(-)GIDs (-2 / +2 lines)
Lines 137-144 Link Here
137
cups:*:193:
137
cups:*:193:
138
saned:*:194:
138
saned:*:194:
139
radns:*:195:
139
radns:*:195:
140
# free: 196
140
nova:*:196:
141
# free: 197
141
horizon:*:197:
142
# free: 198
142
# free: 198
143
mcserver:*:199:
143
mcserver:*:199:
144
sympa:*:200:
144
sympa:*:200:
(-)www/py-horizon/Makefile (+83 lines)
Line 0 Link Here
1
# Created by: Alexander Nusov <alexander.nusov@nfvexpress.com>
2
# $FreeBSD$
3
4
PORTNAME=	horizon
5
PORTVERSION=	10.0.1
6
CATEGORIES=	www python
7
MASTER_SITES=   https:/fossies.org/linux/misc/openstack/
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
10
MAINTAINER=	alexander.nusov@nfvexpress.com
11
COMMENT=	OpenStack Dashboard (Horizon)
12
13
LICENSE=	APACHE20
14
15
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pbr>=1.6:devel/py-pbr
16
RUN_DEPENDS:=	${BUILD_DEPENDS}
17
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}Babel>=2.3.4:devel/py-babel \
18
		${PYTHON_PKGNAMEPREFIX}django18>=0:www/py-django18 \
19
		${PYTHON_PKGNAMEPREFIX}Pint>=0.5:devel/py-Pint \
20
		${PYTHON_PKGNAMEPREFIX}django-babel>=0.5.1:devel/py-django-babel \
21
		${PYTHON_PKGNAMEPREFIX}django-compressor>=2.0:devel/py-django-compressor \
22
		${PYTHON_PKGNAMEPREFIX}django-openstack-auth>=2.4.0:devel/py-django-openstack-auth \
23
		${PYTHON_PKGNAMEPREFIX}django-pyscss>=2.0.2:devel/py-django-pyscss \
24
		${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601 \
25
		${PYTHON_PKGNAMEPREFIX}netaddr>=0:net/py-netaddr \
26
		${PYTHON_PKGNAMEPREFIX}oslo.concurrency>=3.8.0:devel/py-oslo.concurrency \
27
		${PYTHON_PKGNAMEPREFIX}oslo.config>=3.14.0:devel/py-oslo.config \
28
		${PYTHON_PKGNAMEPREFIX}oslo.i18n>=2.1.0:devel/py-oslo.i18n \
29
		${PYTHON_PKGNAMEPREFIX}oslo.policy>=1.9.0:devel/py-oslo.policy \
30
		${PYTHON_PKGNAMEPREFIX}oslo.serialization>=1.10.0:devel/py-oslo.serialization \
31
		${PYTHON_PKGNAMEPREFIX}oslo.utils>=3.16.0:devel/py-oslo.utils \
32
		${PYTHON_PKGNAMEPREFIX}pyscss>=1.3.4:textproc/py-pyscss \
33
		${PYTHON_PKGNAMEPREFIX}ceilometerclient>=2.5.0:net/py-ceilometerclient \
34
		${PYTHON_PKGNAMEPREFIX}cinderclient>=0:net/py-cinderclient \
35
		${PYTHON_PKGNAMEPREFIX}glanceclient>=0:net/py-glanceclient \
36
		${PYTHON_PKGNAMEPREFIX}heatclient>=1.4.0:net/py-heatclient \
37
		${PYTHON_PKGNAMEPREFIX}keystoneclient>=0:net/py-keystoneclient \
38
		${PYTHON_PKGNAMEPREFIX}neutronclient>=5.1.0:net/py-neutronclient \
39
		${PYTHON_PKGNAMEPREFIX}novaclient>=0:net/py-novaclient \
40
		${PYTHON_PKGNAMEPREFIX}swiftclient>=2.2.0:databases/py-swiftclient \
41
		${PYTHON_PKGNAMEPREFIX}pytz>=2013.6:devel/py-pytz \
42
		${PYTHON_PKGNAMEPREFIX}yaml>=3.1.0:devel/py-yaml \
43
		${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six \
44
		${PYTHON_PKGNAMEPREFIX}XStatic>=1.0.0:devel/py-XStatic \
45
		${PYTHON_PKGNAMEPREFIX}XStatic-Angular>=1.3.7:devel/py-XStatic-Angular \
46
		${PYTHON_PKGNAMEPREFIX}XStatic-Angular-Bootstrap>=0.11.0.2:devel/py-XStatic-Angular-Bootstrap \
47
		${PYTHON_PKGNAMEPREFIX}XStatic-Angular-FileUpload>=12.0.4.0:devel/py-XStatic-Angular-FileUpload \
48
		${PYTHON_PKGNAMEPREFIX}XStatic-Angular-Gettext>=2.1.0.2:devel/py-XStatic-Angular-Gettext \
49
		${PYTHON_PKGNAMEPREFIX}XStatic-Angular-lrdragndrop>=1.0.2.2:devel/py-XStatic-Angular-lrdragndrop \
50
		${PYTHON_PKGNAMEPREFIX}XStatic-Angular-Schema-Form>=0.8.13.0:devel/py-XStatic-Angular-Schema-Form \
51
		${PYTHON_PKGNAMEPREFIX}XStatic-Bootstrap-Datepicker>=1.3.1.0:devel/py-XStatic-Bootstrap-Datepicker \
52
		${PYTHON_PKGNAMEPREFIX}XStatic-Bootstrap-SCSS>=3:devel/py-XStatic-Bootstrap-SCSS \
53
		${PYTHON_PKGNAMEPREFIX}XStatic-bootswatch>=3.3.5.3:devel/py-XStatic-bootswatch \
54
		${PYTHON_PKGNAMEPREFIX}XStatic-D3>=3.1.6.2:devel/py-XStatic-D3 \
55
		${PYTHON_PKGNAMEPREFIX}XStatic-Hogan>=2.0.0.2:devel/py-XStatic-Hogan \
56
		${PYTHON_PKGNAMEPREFIX}XStatic-Font-Awesome>=4.3.0:devel/py-XStatic-Font-Awesome \
57
		${PYTHON_PKGNAMEPREFIX}XStatic-Jasmine>=2.1.2.0:devel/py-XStatic-Jasmine \
58
		${PYTHON_PKGNAMEPREFIX}XStatic-jQuery>=1.7.2:devel/py-XStatic-jQuery \
59
		${PYTHON_PKGNAMEPREFIX}XStatic-JQuery-Migrate>=1.2.1.1:devel/py-XStatic-JQuery-Migrate \
60
		${PYTHON_PKGNAMEPREFIX}XStatic-JQuery.quicksearch>=2.0.3.1:devel/py-XStatic-JQuery.quicksearch \
61
		${PYTHON_PKGNAMEPREFIX}XStatic-JQuery.TableSorter>=2.14.5.1:devel/py-XStatic-JQuery.TableSorter \
62
		${PYTHON_PKGNAMEPREFIX}XStatic-jquery-ui>=1.10.1:devel/py-XStatic-jquery-ui \
63
		${PYTHON_PKGNAMEPREFIX}XStatic-JSEncrypt>=2.0.0.2:devel/py-XStatic-JSEncrypt \
64
		${PYTHON_PKGNAMEPREFIX}XStatic-mdi>=1.4.57.0:devel/py-XStatic-mdi \
65
		${PYTHON_PKGNAMEPREFIX}XStatic-objectpath>=1.2.1.0:devel/py-XStatic-objectpath \
66
		${PYTHON_PKGNAMEPREFIX}XStatic-Rickshaw>=1.5.0:devel/py-XStatic-Rickshaw \
67
		${PYTHON_PKGNAMEPREFIX}XStatic-roboto-fontface>=0.4.3.2:devel/py-XStatic-roboto-fontface \
68
		${PYTHON_PKGNAMEPREFIX}XStatic-smart-table>=0:devel/py-XStatic-smart-table \
69
		${PYTHON_PKGNAMEPREFIX}XStatic-Spin>=1.2.5.2:devel/py-XStatic-Spin \
70
		${PYTHON_PKGNAMEPREFIX}XStatic-term.js>=0.0.4:devel/py-XStatic-term.js \
71
		${PYTHON_PKGNAMEPREFIX}XStatic-tv4>=1.2.7.0:devel/py-XStatic-tv4
72
73
EXTRA_PATCHES=	 ${FILESDIR}/01-django.patch:-p1
74
75
NO_ARCH=	yes
76
77
USES=		python
78
USE_PYTHON=	autoplist distutils
79
80
USERS=		horizon
81
GROUPS=		horizon
82
83
.include <bsd.port.mk>
(-)www/py-horizon/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1481116590
2
SHA256 (horizon-10.0.1.tar.gz) = 919e1e466007684ee80a0dec46f18c7f8147bd826ac1085a262fbb15b6c789be
3
SIZE (horizon-10.0.1.tar.gz) = 4093291
(-)www/py-horizon/files/01-django.patch (+13 lines)
Line 0 Link Here
1
diff --git a/openstack_dashboard/wsgi/django.wsgi b/openstack_dashboard/wsgi/django.wsgi
2
index 1be0e06..b7fbe81 100644
3
--- a/openstack_dashboard/wsgi/django.wsgi
4
+++ b/openstack_dashboard/wsgi/django.wsgi
5
@@ -5,7 +5,7 @@ from django.core.wsgi import get_wsgi_application
6
 from django.conf import settings
7
 
8
 # Add this file path to sys.path in order to import settings
9
-sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
10
+sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..')))
11
 os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
12
 sys.stdout = sys.stderr
13
 
(-)www/py-horizon/pkg-descr (+7 lines)
Line 0 Link Here
1
Horizon is a Django-based project aimed at providing a complete OpenStack
2
Dashboard along with an extensible framework for building new dashboards from
3
reusable components. The openstack_dashboard module is a reference
4
implementation of a Django site that uses the horizon app to provide web-based
5
interactions with the various OpenStack projects.
6
7
WWW: http://openstack.org/horizon
(-)www/py-horizon/pkg-message (+28 lines)
Line 0 Link Here
1
Please note that this is a development version of horizon.
2
3
You may serve horizon (OpenStack Dashboard) with apache web server.
4
Use this snippet as reference:
5
6
WSGIScriptAlias / /usr/local/lib/python2.7/site-packages/openstack_dashboard/wsgi/django.wsgi process-group=horizon
7
WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10 display-name=%{GROUP}
8
WSGIProcessGroup horizon
9
Alias /static/dashboard /usr/local/lib/python2.7/site-packages/openstack_dashboard/static/dashboard
10
<Directory /usr/local/lib/python2.7/site-packages/openstack_dashboard/static>
11
    Require all granted
12
</Directory>
13
<Directory /usr/local/lib/python2.7/site-packages/openstack_dashboard/wsgi>
14
    Require all granted
15
</Directory>
16
17
Also if you plan to use apache make sure that wsgi4 module is enabled and
18
you set correct owner ship for static and local libraries for openstack_dashboard.
19
20
# chown -R horizon /usr/local/lib/python2.7/site-packages/openstack_dashboard/static
21
# chown -R horizon /usr/local/lib/python2.7/site-packages/openstack_dashboard/local
22
23
Create local_settings.py with your settings at
24
/usr/local/lib/python2.7/site-packages/openstack_dashboard/local
25
26
To enable django-compressor add this option to local_settings.py file
27
STATIC_ROOT = '/usr/local/lib/python2.7/site-packages/openstack_dashboard/static'
28

Return to bug 215155