HomeFeaturesScreenshotsFaqInstallCodeDownloads
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
VERSION=$(shell head -1 debian/changelog 2>/dev/null | awk  '{gsub(/\(/,"",$$2); gsub(/\)/, "" , $$2); print $$2}' )


#all:
# cd languages && make

test:
@echo "Baifox version="$(VERSION)

clean:
rm -rf `find ../* -type d -name .svn`
# find -type f -name "*~" | xargs rm -f
# rm -f build-stamp
# rm -f smarty/templates_c/*
# rm -f smarty/cache/*

echo:
echo $$(find -type f $(EDIT_FILES) )


#gedit: clean
# gedit $$(find -type f $(EDIT_FILES) ) &


#permisos:
# chown -R www-data:www-data smarty/

#pot:
# cd languages && make pot

install:
install -d $(DESTDIR)/usr/share/baifox/nanowebserver
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/log
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/doc
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/doc/html
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/lib
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/lib/nanoconfig
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/lib/vhosts
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/lib/defaultroot
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/lib/modules
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/lib/icons
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/bin
install -d $(DESTDIR)/usr/share/baifox/nanowebserver/etc
install -d $(DESTDIR)/usr/share/baifox/panel
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_dominios
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_apache
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_filesystem
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_ezmlm
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_awstats
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_xmlconfig
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_vpopmail
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_pureftpd
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/images
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/includes
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/includes/xml
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/includes/lang
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/includes/os
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/includes/mb
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/templates
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/templates/classic
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_sysinfo/templates/classic/images
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_procesos
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_logrotate
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_cron
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_bandwidth
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_clientes
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_addons
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_addons/scripts
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_addons/scripts/mod_wordpress
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_filemanager
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_filemanager/images
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_filemanager/images/icon
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_db_mysql
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_usuarios
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_bind
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_redirecciones
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/modulos/mod_health
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/update
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/update/images
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/sistema
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/sistema/filemanager
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/sistema/sysinfo
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/sistema/procesos
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/configuracion
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/configuracion/usuarios
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/configuracion/health
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/logrotate
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/apache
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/cron
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/bandwidth
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/awstats
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/vpopmail
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/pureftpd
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/db_mysql
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/servicios/bind
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/gestion
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/gestion/dominios
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/gestion/clientes
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/gestion/addons
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/webpanel/gestion/redirecciones
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/smarty
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/smarty/internals
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/smarty/plugins
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/gettext
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/patconfig
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/patconfig/patconfiguration
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/patconfig/patconfiguration/Reader
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/patconfig/patconfiguration/Writer
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/xajax
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/xajax/xajax_js
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/interface/compat
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/plantillas
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/plantillas/servicios
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/plantillas/emails
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/plantillas/webapp
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/cache
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/cache/smarty
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/cache/sessions
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/cache/smarty_admin
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/cache/smarty_user
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/images
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/images/menu
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/config
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/locale
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/locale/es_ES
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/locale/es_ES/LC_MESSAGES
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/smarty
install -d $(DESTDIR)/usr/share/baifox/panel/admin_panel/javascript
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/plantillas
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/plantillas/emails
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/plantillas/webapp
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/images
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/javascript
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/general
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/general/contacta
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/general/dominio
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/principal
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/copiaseguridad
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/ezmlm
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/awstats
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/redireccorreo
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/ftp
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/correo
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/subdominios
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/paginaserror
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/protegedir
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/autorespuesta
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/mysql
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/logsapache
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/addons
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/filemanager
install -d $(DESTDIR)/usr/share/baifox/panel/user_panel/webpanel/dominio/redirecweb
install -d $(DESTDIR)/usr/share/baifox/panel/addons_install
install -d $(DESTDIR)/usr/share/baifox/panel/xml_rpc
install -d $(DESTDIR)/usr/share/baifox/scripts

# Nanoweb
install -m 744 nanowebserver/bin/htpasswd_debian.php $(DESTDIR)/usr/share/baifox/nanowebserver/bin/htpasswd.php
install -m 744 nanowebserver/bin/in.nanoweb $(DESTDIR)/usr/share/baifox/nanowebserver/bin/in.nanoweb
install -m 744 nanowebserver/bin/nanoctl $(DESTDIR)/usr/share/baifox/nanowebserver/bin/nanoctl
install -m 744 nanowebserver/bin/nanoweb_debian.php $(DESTDIR)/usr/share/baifox/nanowebserver/bin/nanoweb.php
for i in `find nanowebserver/doc/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done
for i in `find nanowebserver/etc/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done

install -m 644 nanowebserver/etc/default.theme $(DESTDIR)/usr/share/baifox/nanowebserver/etc/default.theme
install -m 644 nanowebserver/etc/fancy.theme $(DESTDIR)/usr/share/baifox/nanowebserver/etc/fancy.theme
install -m 644 nanowebserver/etc/mime.types $(DESTDIR)/usr/share/baifox/nanowebserver/etc/mime.types
install -m 644 nanowebserver/etc/modules.conf $(DESTDIR)/usr/share/baifox/nanowebserver/etc/modules.conf
install -m 644 nanowebserver/etc/nanoweb_debian.conf $(DESTDIR)/usr/share/baifox/nanowebserver/etc/nanoweb.conf
install -m 644 nanowebserver/etc/nanoweb.theme $(DESTDIR)/usr/share/baifox/nanowebserver/etc/nanoweb.theme
install -m 644 nanowebserver/etc/vhosts.conf $(DESTDIR)/usr/share/baifox/nanowebserver/etc/vhosts.conf
sed -i "s/\/usr\/local\/baifox\/panel/\/usr\/share\/baifox\/panel/g" $(DESTDIR)/usr/share/baifox/nanowebserver/etc/vhosts.conf

for i in `find nanowebserver/lib/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done

# panel
for i in `find panel/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done
install -m 744 panel/admin_panel/cron.php $(DESTDIR)/usr/share/baifox/panel/admin_panel/cron.php
install -m 644 panel/admin_panel/config/main_config_debian.php $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/main_config.php
rm $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/main_config_debian.php

# scripts
for i in `find scripts/ -type f -name "*.php"`; do install -m 744 $$i $(DESTDIR)/usr/share/baifox/$$i; done


targz: clean
dh_clean
rm -rf ../tmp 2> /dev/null
mkdir ../tmp
cp -ra * ../tmp
rm -rf `find ../tmp/* -type d -name .svn`
mv ../tmp ../baifox-$(VERSION)
tar -czf ../baifox-$(VERSION).tar.gz ../baifox-$(VERSION)
rm -rf ../baifox-$(VERSION)

#patch_version:
# nothing to patch

#patch_dapper: patch_version
# nothing to patch

#patch_edgy: patch_version
# nothing to patch

#patch_feisty: patch_version
# nothing to patch

#patch_gutsy: patch_version
# nothing to patch

#patch_etch: patch_version
# nothing to patch

#patch_unstable: patch_version
# nothing to patch