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
|