~ubuntu-branches/debian/sid/extplorer/sid

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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
Description: Adds a Makefile to install extplorer
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed

--- /dev/null	2011-09-08 22:30:15.796479636 +0000
+++ extplorer/Makefile	2011-10-20 13:15:21.000000000 +0000
@@ -0,0 +1,144 @@
+# Customized for all packages
+APP_NAME=extplorer
+
+# List files to install
+WEB_FILES=admin.extplorer.php  configuration.ext.php  extplorer.list.php  fetchscript.php  install.extplorer.php    webdav.php \
+application.php      extplorer.init.php     extplorer.php       index.php        webdav_authenticate.php  webdav_table.sql.php \
+extplorer.j15.xml  extplorer.xml  eXtplorer.ico \
+libraries/standalone.php libraries/lib_zip.php libraries/index.html libraries/SSH2.php \
+libraries/Archive/archive.php libraries/Archive/file.php libraries/Archive/folder.php libraries/Archive/index.html libraries/Archive/path.php \
+libraries/Archive/adapter/index.html libraries/Archive/adapter/zip.php \
+libraries/File_Operations.php libraries/inputfilter.php \
+scripts/application.js.php scripts/functions.js.php scripts/index.html scripts/archive.js.php
+
+EXTJS3_EXT=scripts/extjs3-ext/ux.editareaadapater/ext-editarea-adapter.js \
+scripts/extjs3-ext/ux.fileuploadfield/ext-fileUploadField.js \
+scripts/extjs3-ext/ux.locationbar/btn-arrow.gif \
+scripts/extjs3-ext/ux.locationbar/Ext.ux.LocationBar.js \
+scripts/extjs3-ext/ux.locationbar/location_back.png \
+scripts/extjs3-ext/ux.locationbar/Locationbar-component.html \
+scripts/extjs3-ext/ux.locationbar/LocationBar.css \
+scripts/extjs3-ext/ux.locationbar/Locationbar-render.html \
+scripts/extjs3-ext/ux.locationbar/location_folder.png \
+scripts/extjs3-ext/ux.locationbar/location_forward.png \
+scripts/extjs3-ext/ux.locationbar/location_reload.png \
+scripts/extjs3-ext/ux.locationbar/tb-btn-sprite.gif \
+scripts/extjs3-ext/ux.ondemandload/scriptloader.js \
+scripts/extjs3-ext/ux.statusbar/ext-statusbar.js \
+scripts/extjs3-ext/ux.swfupload/add.png \
+scripts/extjs3-ext/ux.swfupload/arrow_up.png \
+scripts/extjs3-ext/ux.swfupload/cancel.png \
+scripts/extjs3-ext/ux.swfupload/delete.png \
+scripts/extjs3-ext/ux.swfupload/SwfUpload.js \
+scripts/extjs3-ext/ux.swfupload/SwfUploadPanel.css \
+scripts/extjs3-ext/ux.swfupload/SwfUploadPanel.js
+
+CONF_FILES=conf.php  index.html  mimes.php
+
+DOCS_FILES=CHANGELOG.txt
+
+CONTENT_FOLDERS=images include languages style
+
+# Common to all packages
+INSTALL?=install -D
+INSTALL_DIR?=install -d
+APP_DIR?=/usr/share/$(APP_NAME)
+CONF_DIR?=/etc/$(APP_NAME)
+DOC_DIR?=/usr/share/doc/$(APP_NAME)
+VAR_DIR?=/var/lib/$(APP_NAME)
+PHP_DIR?=/usr/share/php
+UNIX_TYPE?=debian
+
+DESTDIR?=""
+D_APP_DIR?=$(DESTDIR)/usr/share/$(APP_NAME)
+D_CONF_DIR?=$(DESTDIR)/etc/$(APP_NAME)
+D_DOC_DIR?=$(DESTDIR)/usr/share/doc/$(APP_NAME)
+D_VAR_DIR?=$(DESTDIR)/var/lib/$(APP_NAME)
+
+PHP_RIGHTS=0644
+NORMAL_FOLDER=0775
+
+default:
+	@echo "******************************************************************"
+	@echo "******* Error: there is no default target in this Makefile! ******"
+	@echo "******************************************************************"
+	@echo "DESTDIR="$(DESTDIR)
+	@echo "APP_DIR="$(APP_DIR)
+	@echo "CONF_DIR="$(CONF_DIR)
+	@echo "DOC_DIR="$(DOC_DIR)
+	@echo "VAR_DIR="$(VAR_DIR)
+	@echo "CURDIR="$(CURDIR)
+	@echo "INSTALL="$(INSTALL)
+	@echo "INSTALL_DIR="$(INSTALL_DIR)
+	@echo ""
+	@exit 1
+
+install:
+	@echo "Running make install..."
+	# Install the app
+	@for i in $(WEB_FILES) ; do $(INSTALL) -m $(PHP_RIGHTS) $$i $(D_APP_DIR)/$$i ; done
+	# Copy the image folder
+	for i in $(CONTENT_FOLDERS) ; do \
+		cp -rfv $$i $(D_APP_DIR) ; \
+	done
+	ln -s ../../javascript/extjs/resources/images/default $(D_APP_DIR)/images/default
+
+	for i in $(EXTJS3_EXT) ; do $(INSTALL) -m $(PHP_RIGHTS) $$i $(D_APP_DIR)/$$i ; done
+
+	##################################################################
+	# Link the embedded libraries with their OS packaged replacement #
+	##################################################################
+	# Strange behavior of the app
+	ln -s ../.. $(D_APP_DIR)/usr
+	# Ext JS
+	ln -s ../../javascript/extjs $(D_APP_DIR)/scripts/extjs3
+	# Edit-area
+	ln -s ../../javascript/edit-area $(D_APP_DIR)/scripts/editarea
+	# YUI
+	ln -s ../../javascript/yui $(D_APP_DIR)/scripts/yui
+	# The libraries folder
+	$(INSTALL_DIR) -m $(NORMAL_FOLDER) $(D_APP_DIR)/libraries
+	# Setup of links for the PEAR and other libs that were embedded in eXtplorer
+	# PEAR.php itself
+	ln -s ../../php/PEAR.php $(D_APP_DIR)/libraries/PEAR.php
+	ln -s ../../php/System.php $(D_APP_DIR)/libraries/System.php
+	# Service/JSON
+	ln -s ../../php/Services/JSON.php $(D_APP_DIR)/libraries/JSON.php
+	# php-geshi
+	ln -s ../../php-geshi $(D_APP_DIR)/libraries/geshi
+	# Net_FTP
+	ln -s ../../php/Net/FTP.php $(D_APP_DIR)/libraries/FTP.php
+	ln -s ../../php/Net/FTP $(D_APP_DIR)/libraries/FTP
+	# Archive_Tar
+	ln -s ../../php/Archive/Tar.php $(D_APP_DIR)/libraries/Tar.php
+	# Console_Getopt
+	ln -s ../../php/Console $(D_APP_DIR)/libraries/Console
+	# Auth
+	$(INSTALL_DIR) -m $(NORMAL_FOLDER) $(D_APP_DIR)/libraries/Auth
+	ln -s ../../../php/Auth/Auth.php $(D_APP_DIR)/libraries/Auth/Auth.php
+	$(INSTALL_DIR) -m $(NORMAL_FOLDER) $(D_APP_DIR)/libraries/Auth/HTTP
+	ln -s ../../../../php/Auth/HTTP.php $(D_APP_DIR)/libraries/Auth/HTTP/HTTP.php	
+	# HTTP_WebDAV_Client
+	ln -s ../../php/HTTP $(D_APP_DIR)/libraries/HTTP
+	# MIME_Type
+	ln -s ../../php/MIME $(D_APP_DIR)/libraries/MIME
+	# The inputfilter class
+	#ln -s ../../php/inputfilter/class.inputfilter_clean.php $(D_APP_DIR)/libraries/inputfilter.php
+
+	##############################################
+	# Manage the config folder in /etc/extplorer #
+	##############################################
+	@for i in $(CONF_FILES) ; do $(INSTALL) -m $(PHP_RIGHTS) config/$$i $(D_CONF_DIR)/$$i ; done
+	@ln -s /etc/extplorer $(D_APP_DIR)/config
+
+	###########################
+	# Make the ftp_tmp folder #
+	###########################
+	@$(INSTALL) -m $(PHP_RIGHTS) ftp_tmp/index.html $(D_VAR_DIR)/ftp_tmp/index.html
+	@ln -s /var/lib/extplorer/ftp_tmp $(D_APP_DIR)/ftp_tmp
+
+	####################
+	# Install the docs #
+	####################
+	$(INSTALL) -m $(PHP_RIGHTS) CHANGELOG.txt $(D_DOC_DIR)/changelog
+	gzip -9 $(D_DOC_DIR)/changelog