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

Collapse All | Expand All

(-)univention-management-console-frontend/debian/control (-10 / +4 lines)
 Lines 47-64    Link Here 
47
 corporate environments. For more information about UCS,
47
 corporate environments. For more information about UCS,
48
 refer to: http://www.univention.de/
48
 refer to: http://www.univention.de/
49
49
50
Package: univention-management-console-fontend-dev
50
Package: univention-management-console-frontend-doc
51
Architecture: all
51
Architecture: all
52
Depends: ${misc:Depends},
52
Depends: ${misc:Depends},
53
 univention-dojo,
53
 univention-dojo-api-viewer
54
 univention-management-console-dev,
54
Description: Univention Management Console - Documentation
55
 imagemagick,
55
 This package contains the api.xml file which is needet by univention-dojo-api-viewer
56
 rsync
57
Description: UCS Management Console - development files
58
 UCS Management Console is a web based program to manage computers.  It has
59
 an extensible architecture, using modules to implement its
60
 features. This package is a meta package that contains dependencies
61
 to packages that are necessary for the framework development.
62
 .
56
 .
63
 This package is part of Univention Corporate Server (UCS),
57
 This package is part of Univention Corporate Server (UCS),
64
 an integrated, directory driven solution for managing
58
 an integrated, directory driven solution for managing
(-)univention-management-console-frontend/debian/univention-management-console-frontend-doc.install (+1 lines)
Line 0    Link Here 
1
/usr/share/univention-dojo-api-viewer
(-)univention-management-console-frontend/debian/univention-management-console-frontend-doc.postinst (+49 lines)
Line 0    Link Here 
1
#!/bin/sh
2
#
3
# Univention Management Console Frontend Documentation
4
#  postinst script for the debian package
5
#
6
# Copyright 2012 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
33
#DEBHELPER#
34
35
if [ -r '/var/www/univention-management-console-doc/umc.xml' ]; then
36
	chmod o+w /usr/share/univention-dojo-api-viewer/data || true
37
	ln -s /usr/share/univention-dojo-api-viewer/umc.xml /var/www/umc.xml || true
38
39
	# We dont use --post-file here because of max_filesize in php.ini
40
	wget -O - 'http://127.0.0.1/univention-management-console-doc/lib/upload.php' --post-data 'dir=UMC&api=http://127.0.0.1/umc.xml' > /dev/null 2>&1 || true
41
42
	unlink /usr/share/univention-dojo-api-viewer/umc.xml || true
43
	chmod o-w /usr/share/univention-dojo-api-viewer/data || true
44
45
	# allow caching
46
	chown www-data /usr/share/univention-dojo-api-viewer/data/UMC/cache/ || true
47
fi
48
49
exit 0
(-)univention-management-console-frontend/Makefile (-1 / +15 lines)
 Lines 37-45    Link Here 
37
buildDir:=$(CURDIR)/build
37
buildDir:=$(CURDIR)/build
38
tmpDir:=$(buildDir)/_tmp$(timestamp)
38
tmpDir:=$(buildDir)/_tmp$(timestamp)
39
39
40
# API viewer paths
41
TO_ROOT:=../../../../..
42
DOJODIR:=/usr/share/univention-dojo
43
40
.PHONY: build build-dev build-common install clean jslint
44
.PHONY: build build-dev build-common install clean jslint
41
45
42
build: build-common
46
build: build-common doc
43
	@# create a temp directory
47
	@# create a temp directory
44
	mkdir -p '$(tmpDir)'
48
	mkdir -p '$(tmpDir)'
45
	@# create the module umc.widgets containing a require for all umc widgets
49
	@# create the module umc.widgets containing a require for all umc widgets
 Lines 105-110    Link Here 
105
		cp $$i "$(CURDIR)/umc/i18n/$$lang/app.json"; \
109
		cp $$i "$(CURDIR)/umc/i18n/$$lang/app.json"; \
106
	done
110
	done
107
111
112
doc:
113
	@# generate api.xml for univention-dojo-api-viewer
114
	echo "location = $(TO_ROOT)$(CURDIR)/umc/" > "$(DOJODIR)/util/docscripts/modules/umc.module.properties";
115
	cd "$(DOJODIR)/util/docscripts/"; \
116
	php generate.php umc dojo dojox dijit --serialize=xml --outfile=../$(TO_ROOT)$(CURDIR)/umc --clean
117
	rm -f "$(DOJODIR)/util/docscripts/modules/umc.module.properties"
118
108
i18n:
119
i18n:
109
	/usr/bin/dh-umc-translate -p univention-management-console-frontend -o umc $(jsFiles)
120
	/usr/bin/dh-umc-translate -p univention-management-console-frontend -o umc $(jsFiles)
110
121
 Lines 112-117    Link Here 
112
	@# copy all files from the build directory .. exclude file of the tmp directory
123
	@# copy all files from the build directory .. exclude file of the tmp directory
113
	mkdir -p "$(DESTDIR)$(pkgDir)"
124
	mkdir -p "$(DESTDIR)$(pkgDir)"
114
	rsync -rpl --exclude ".svn" --exclude "_tmp"'$(timestamp)' "$(buildDir)/" "$(DESTDIR)$(pkgDir)"
125
	rsync -rpl --exclude ".svn" --exclude "_tmp"'$(timestamp)' "$(buildDir)/" "$(DESTDIR)$(pkgDir)"
126
	@# api files
127
	mkdir -p "$(DESTDIR)/usr/share/univention-dojo-api-viewer"
128
	mv -f umc.xml "$(DESTDIR)/usr/share/univention-dojo-api-viewer"
115
129
116
clean:
130
clean:
117
	rm -rf build
131
	rm -rf build
(-)univention-dojo/debian/univention-dojo-api-viewer.postinst (+40 lines)
Line 0    Link Here 
1
This patch fixes the htaccess and config of univention-dojo-api-viewer (Bug #23197).
2
Index: univention-dojo-api-viewer/config.php
3
===================================================================
4
--- univention-dojo-api-viewer/config.php	(Revision 804)
Line 0    Link Here 
1
#!/bin/sh
2
#
3
# Univention Dojo API-Viewer
4
#  postinst script for the debian package
5
#
6
# Copyright 2012 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
33
#DEBHELPER#
34
35
/etc/init.d/apache2 restart || true
36
exit 0
(-)univention-dojo/debian/control (+11 lines)
 Lines 19-21    Link Here 
19
 univention-dojo
19
 univention-dojo
20
Description: The Dojo Toolkit, utilility functions and tools
20
Description: The Dojo Toolkit, utilility functions and tools
21
 This package contains utility functions and tools of the Dojo Toolkit
21
 This package contains utility functions and tools of the Dojo Toolkit
22
23
Package: univention-dojo-api-viewer
24
Architecture: all
25
Depends: ${misc:Depends},
26
 php5-curl,
27
 php5-xsl,
28
 univention-dojo,
29
 univention-management-console-frontend
30
Description: The Dojo Documentation API Viewer
31
 This package contains a patched version of the Dojo Documentation
32
 API Viewer from https://svn.dojotoolkit.org/website/trunk/api
(-)univention-dojo/debian/univention-dojo-api-viewer.install (+2 lines)
Line 0    Link Here 
1
/usr/share/univention-dojo-api-viewer
2
icon/dojo-api.png /var/www/icon/
(-)univention-dojo/debian/univention-dojo-api-viewer.univention-config-registry (+16 lines)
Line 0    Link Here 
1
Type: file
2
File: etc/apache2/sites-available/univention-management-console-doc
3
4
Type: multifile
5
Multifile: var/www/ucs-overview/de.html
6
7
Type: multifile
8
Multifile: var/www/ucs-overview/en.html
9
10
Type: subfile
11
Multifile: var/www/ucs-overview/de.html
12
Subfile: var/www/ucs-overview/de.html.d/40dojo-api-viewer-de.html
13
14
Type: subfile
15
Multifile: var/www/ucs-overview/en.html
16
Subfile: var/www/ucs-overview/en.html.d/40dojo-api-viewer-en.html
(-)univention-dojo/debian/copyright (-1 / +1 lines)
 Lines 197-203    Link Here 
197
permission of its copyright owner.
197
permission of its copyright owner.
198
-----------------------<Dojo Copyright Notice/>--------------------------------
198
-----------------------<Dojo Copyright Notice/>--------------------------------
199
-----------------------<Univention Copyright Notice>---------------------------
199
-----------------------<Univention Copyright Notice>---------------------------
200
Copyright 2008-2011 Univention GmbH
200
Copyright 2008-2012 Univention GmbH
201
201
202
http://www.univention.de/
202
http://www.univention.de/
203
203
(-)univention-dojo/debian/rules (-1 / +5 lines)
 Lines 3-9    Link Here 
3
# Univention Dojo Package
3
# Univention Dojo Package
4
#  rules file for generating the deb package
4
#  rules file for generating the deb package
5
#
5
#
6
# Copyright 2008-2011 Univention GmbH
6
# Copyright 2008-2012 Univention GmbH
7
#
7
#
8
# http://www.univention.de/
8
# http://www.univention.de/
9
#
9
#
 Lines 34-39    Link Here 
34
	ucslint
34
	ucslint
35
	dh_auto_test
35
	dh_auto_test
36
36
37
override_dh_auto_install:
38
	univention-install-config-registry
39
	dh_auto_install
40
37
%:
41
%:
38
	dh $@
42
	dh $@
39
43
(-)univention-dojo/debian/univention-dojo-api-viewer.links (+2 lines)
1
usr/share/univention-dojo-api-viewer/ var/www/univention-management-console-doc
2
etc/apache2/sites-available/univention-management-console-doc etc/apache2/sites-enabled/univention-management-console-doc
(-)univention-dojo/create_api_archive.sh (+36 lines)
Line 0    Link Here 
1
#!/bin/sh
2
#
3
# 
4
#  script for checkout and tar latest dojo api viewer
5
#
6
# Copyright 2012 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
33
svn export https://svn.dojotoolkit.org/website/trunk/api univention-dojo-api-viewer
34
VERSION=$(svn info univention-dojo-api-viewer | grep -m1 'Revision:' | sed -n 's/^Revision: \(.*\)$/\1/')
35
tar czf "univention-dojo-api-viewer-r$VERSION.tar.gz" univention-dojo-api-viewer 
36
(-)univention-dojo/conffiles/var/www/ucs-overview/en.html.d/40dojo-api-viewer-en.html (+5 lines)
Line 0    Link Here 
1
<tr>
2
<td class="overview"><a href="../univention-management-console-doc/"><img src="../icon/dojo-api.png" alt="" border="0" /></a></td>
3
<td class="overview"><a href="../univention-management-console-doc/">Univention Management Console API</a></td>
4
<td class="overview">UMC javascript documentation</td>
5
</tr>
(-)univention-dojo/conffiles/var/www/ucs-overview/de.html.d/40dojo-api-viewer-de.html (+5 lines)
Line 0    Link Here 
1
<tr>
2
<td class="overview"><a href="../univention-management-console-doc/"><img src="../icon/dojo-api.png" alt="" border="0" /></a></td>
3
<td class="overview"><a href="../univention-management-console-doc/">Univention Management Console API</a></td>
4
<td class="overview">UMC Javascript Dokumentation</td>
5
</tr>
(-)univention-dojo/Makefile (-3 / +10 lines)
 Lines 3-9    Link Here 
3
# Univention Dojo Package
3
# Univention Dojo Package
4
#  Makefile for building/installing the package
4
#  Makefile for building/installing the package
5
#
5
#
6
# Copyright 2008-2011 Univention GmbH
6
# Copyright 2008-2012 Univention GmbH
7
#
7
#
8
# http://www.univention.de/
8
# http://www.univention.de/
9
#
9
#
 Lines 40-48    Link Here 
40
DOJO_VERSION=$(shell find . -maxdepth 1 -name "dojo-release*-src.tar.gz" | sort -r | sed -n '1 s/^.*dojo-release-\(.*\)-src.tar.gz$$/\1/ p')
40
DOJO_VERSION=$(shell find . -maxdepth 1 -name "dojo-release*-src.tar.gz" | sort -r | sed -n '1 s/^.*dojo-release-\(.*\)-src.tar.gz$$/\1/ p')
41
DOJO_DIR=dojo-release-$(DOJO_VERSION)-src
41
DOJO_DIR=dojo-release-$(DOJO_VERSION)-src
42
42
43
API_VERSION=$(shell find . -maxdepth 1 -name "univention-dojo-api-viewer-r*.tar.gz" | sort -r | sed -n '1 s/^.*univention-dojo-api-viewer-r\(.*\).tar.gz$$/\1/ p')
43
.PHONY: clean all install
44
.PHONY: clean all install
44
45
45
build: $(DOJO_DIR)
46
build: $(DOJO_DIR) apiviewer
46
47
47
$(DOJO_DIR):
48
$(DOJO_DIR):
48
	tar xzf $@.tar.gz
49
	tar xzf $@.tar.gz
 Lines 57-66    Link Here 
57
	patch -p0 < fix_dojoStoreMemory.patch
58
	patch -p0 < fix_dojoStoreMemory.patch
58
	patch -p0 < fix_dijit_Templated.patch
59
	patch -p0 < fix_dijit_Templated.patch
59
60
61
apiviewer:
62
	tar -xzf "univention-dojo-api-viewer-r$(API_VERSION).tar.gz" --exclude='tests' --exclude='install' --exclude='data/*'
63
	patch -p0 < dojo_api.patch
64
60
all: install
65
all: install
61
66
62
clean:
67
clean:
63
	rm -rf $(DOJO_DIR)
68
	rm -rf $(DOJO_DIR)
69
	rm -rf univention-dojo-api-viewer
64
70
65
install: build
71
install: build
66
	@# main directory
72
	@# main directory
 Lines 75-78    Link Here 
75
		[ "$${i%.sh}" != "$$i" ] && mod=0755; \
81
		[ "$${i%.sh}" != "$$i" ] && mod=0755; \
76
		install -m $$mod "$(DOJO_DIR)/$$i" "$(DESTDIR)$(INSTDIR)/$$i"; \
82
		install -m $$mod "$(DOJO_DIR)/$$i" "$(DESTDIR)$(INSTDIR)/$$i"; \
77
	done
83
	done
78
84
	@# install api-viewer
85
	cp -r univention-dojo-api-viewer "$(DESTDIR)/usr/share/univention-dojo-api-viewer"

Return to bug 23197