Changeset ,422

Show
Ignore:
Timestamp:
11/21/07 10:43:09 (14 months ago)
Author:
fidojones
branch-nick:
bzr
Message:

preparación de paquete debian

Location:
trunk
Files:
1 removed
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r421 r422  
    22 
    33 
    4 all: 
    5         cd languages && make 
     4#all: 
     5#       cd languages && make 
    66 
    77test: 
    8         @echo "TCOSPHPMONITOR version="$(VERSION) 
     8        @echo "Baifox version="$(VERSION) 
    99 
    1010clean: 
    11         find -type f -name "*~" | xargs rm -f 
    12         rm -f build-stamp 
    13         rm -f smarty/templates_c/* 
    14         rm -f smarty/cache/* 
     11        rm -rf `find ../* -type d -name .svn` 
     12#       find -type f -name "*~" | xargs rm -f 
     13#       rm -f build-stamp 
     14#       rm -f smarty/templates_c/* 
     15#       rm -f smarty/cache/* 
    1516 
    1617echo: 
     
    1819         
    1920 
    20 gedit: clean 
    21         gedit $$(find -type f $(EDIT_FILES) ) & 
    22  
    23  
    24 permisos: 
    25         chown -R www-data:www-data smarty/ 
    26  
    27 pot: 
    28         cd languages && make pot 
     21#gedit: clean 
     22#       gedit $$(find -type f $(EDIT_FILES) ) & 
     23 
     24 
     25#permisos: 
     26#       chown -R www-data:www-data smarty/ 
     27 
     28#pot: 
     29#       cd languages && make pot 
    2930 
    3031install: 
     
    163164        install -d $(DESTDIR)/usr/share/baifox/scripts 
    164165 
    165         install -m 644 data.inc.php $(DESTDIR)/usr/share/tcosphpmonitor/ 
    166         install -m 644 config.inc.php $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php 
    167  
    168         # configure __VERSION__ and DEBUG 
    169         sed -i s/'__VERSION__'/'$(VERSION)'/g $(DESTDIR)/usr/share/tcosphpmonitor/data.inc.php 
    170  
    171         sed -i "/DEBUG/s/"true"/"false"/g"    $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php 
    172  
    173         # empty username and password 
    174         sed -i "/USERNAME/s/"admin"/""/g"    $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php 
    175         sed -i "/PASSWORD/s/"admin"/""/g"    $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php 
    176  
    177         install -m 644 apache.conf    $(DESTDIR)/etc/tcosphpmonitor/apache.conf 
    178  
    179         for i in `find www/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done 
    180         for i in `find www/js -type f -name "*.js" -o -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done 
    181         for i in `find www/css -type f -name "*.css"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done 
    182         for i in `find www/img -type f -name "*.png" -o -name "*.jpg" -o -name "*.gif"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done 
    183  
    184  
    185         for i in `find classes/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done 
    186         for i in `find modules/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done 
    187         for i in `find templates/ -type f -name "*.tpl"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done 
    188  
    189         install -m 644 helpers/tcos-dbus.py $(DESTDIR)/usr/share/tcosphpmonitor/helpers/tcos-dbus.py 
    190  
    191         cd languages && make install DESTDIR=$(DESTDIR) 
     166#       Nanoweb 
     167        install -m 744 nanowebserver/bin/htpasswd_debian.php $(DESTDIR)/usr/share/baifox/nanowebserver/bin/htpasswd.php 
     168        install -m 744 nanowebserver/bin/in.nanoweb $(DESTDIR)/usr/share/baifox/nanowebserver/bin/in.nanoweb 
     169        install -m 744 nanowebserver/bin/nanoctl $(DESTDIR)/usr/share/baifox/nanowebserver/bin/nanoctl 
     170        install -m 744 nanowebserver/bin/nanoweb_debian.php $(DESTDIR)/usr/share/baifox/nanowebserver/bin/nanoweb.php 
     171        for i in `find nanowebserver/doc/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done 
     172        for i in `find nanowebserver/etc/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done 
     173 
     174        install -m 644 nanowebserver/etc/default.theme $(DESTDIR)/usr/share/baifox/nanowebserver/etc/default.theme 
     175        install -m 644 nanowebserver/etc/fancy.theme $(DESTDIR)/usr/share/baifox/nanowebserver/etc/fancy.theme 
     176        install -m 644 nanowebserver/etc/mime.types $(DESTDIR)/usr/share/baifox/nanowebserver/etc/mime.types 
     177        install -m 644 nanowebserver/etc/modules.conf $(DESTDIR)/usr/share/baifox/nanowebserver/etc/modules.conf 
     178        install -m 644 nanowebserver/etc/nanoweb_debian.conf $(DESTDIR)/usr/share/baifox/nanowebserver/etc/nanoweb.conf 
     179        install -m 644 nanowebserver/etc/nanoweb.theme $(DESTDIR)/usr/share/baifox/nanowebserver/etc/nanoweb.theme 
     180        install -m 644 nanowebserver/etc/vhosts.conf $(DESTDIR)/usr/share/baifox/nanowebserver/etc/vhosts.conf 
     181        sed -i "s/\/usr\/local\/baifox\/panel/\/usr\/share\/baifox\/panel/g"    $(DESTDIR)/usr/share/baifox/nanowebserver/etc/vhosts.conf 
     182 
     183        for i in `find nanowebserver/lib/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done 
     184 
     185#       panel 
     186        for i in `find panel/ -type f -name "*"`; do install -m 644 $$i $(DESTDIR)/usr/share/baifox/$$i; done 
     187        install -m 744 panel/admin_panel/cron.php $(DESTDIR)/usr/share/baifox/panel/admin_panel/cron.php 
     188        install -m 644 panel/admin_panel/config/main_config_debian.php $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/main_config.php 
     189        rm $(DESTDIR)/usr/share/baifox/panel/admin_panel/config/main_config_debian.php 
     190 
     191#       scripts 
     192        for i in `find scripts/ -type f -name "*.php"`; do install -m 744 $$i $(DESTDIR)/usr/share/baifox/$$i; done 
     193 
    192194 
    193195targz: clean 
     
    197199        cp -ra * ../tmp 
    198200        rm -rf `find ../tmp/* -type d -name .svn` 
    199         mv ../tmp ../tcosphpmonitor-$(VERSION) 
    200         tar -czf ../tcosphpmonitor-$(VERSION).tar.gz ../tcosphpmonitor-$(VERSION) 
    201         rm -rf ../tcosphpmonitor-$(VERSION) 
    202  
    203 patch_version: 
    204         # nothing to patch 
    205  
    206 patch_dapper: patch_version 
    207         # nothing to patch 
    208  
    209  
    210 patch_edgy: patch_version 
    211         # nothing to patch 
    212  
    213 patch_feisty: patch_version 
    214         # nothing to patch 
    215  
    216 patch_gutsy: patch_version 
    217         # nothing to patch 
    218  
    219 patch_etch: patch_version 
    220         # nothing to patch 
    221  
    222 patch_unstable: patch_version 
    223         # nothing to patch 
    224  
    225  
     201        mv ../tmp ../baifox-$(VERSION) 
     202        tar -czf ../baifox-$(VERSION).tar.gz ../baifox-$(VERSION) 
     203        rm -rf ../baifox-$(VERSION) 
     204 
     205#patch_version: 
     206#        nothing to patch 
     207 
     208#patch_dapper: patch_version 
     209#        nothing to patch 
     210 
     211#patch_edgy: patch_version 
     212#        nothing to patch 
     213 
     214#patch_feisty: patch_version 
     215#        nothing to patch 
     216 
     217#patch_gutsy: patch_version 
     218#        nothing to patch 
     219 
     220#patch_etch: patch_version 
     221#        nothing to patch 
     222 
     223#patch_unstable: patch_version 
     224#        nothing to patch 
     225 
     226 
  • trunk/debian/README.Debian

    r421 r422  
    1 tcosphpmonitor for Debian 
     1Baifox for Debian 
    22------------------------- 
    33 
    4 This package will create an virtualhost file in: 
     4Primera version 
    55 
    6   /etc/apache2/conf.d/tcosphpmonitor.conf 
    7   /etc/apache/conf.d/tcosphpmonitor.conf 
    8  
    9 You should open any browser and go to: 
    10  
    11   http://server_name_or_ip/tcosphpmonitor 
    12  
    13 Perpahps you need to restart apache to load settings. 
    14  
    15  -- Mario Izquierdo (mariodebian) <mariodebian@gmail.com>, Fri, 30 Mar 2007 20:35:34 +0200 
     6 -- Lorenzo Tejera (fidojones) <fidojones@fidojones.com>, Tue, 20 Nov 2007 20:35:34 +0200 
  • trunk/debian/control

    r421 r422  
    33Priority: optional 
    44Maintainer: Lorenzo Tejera (fidojones) <fidojones@fidojones.com> 
    5 Build-Depends:  debhelper (>= 5.0.37.2), python, python-support (>= 0.3) 
     5Build-Depends:  debhelper (>= 5) 
    66Standards-Version: 3.7.2 
    7 XS-Python-Version: >= 2.4 
    87XS-Vcs-Browser: http://www.baifox.org/trac/browser/trunk 
    98XS-Vcs-Svn: http://www.baifox.org/baifox/trunk 
     
    1110Package: baifox 
    1211Architecture: all 
    13 Depends:  libapache2-mod-php4 | libapache-mod-php4 | libapache2-mod-php5 | libapache-mod-php5 , 
    14           apache2 | apache, smarty, php4 | php5,  
    15           ${misc:Depends}, ${shlibs:Depends}, ${python:Depends}, python-dbus | python2.4-dbus 
    16 XB-Python-Version: ${python:Versions} 
    17 Description: Small PHP web based app to monitor a TCOS thin client network. 
    18  TCOS, thin Client Operating System is a method to create small embedded os 
    19  based on debian/ubuntu with normal debian kernel's. 
    20  . 
    21  baifox is a small PHP web based app to monitor a thin client network. 
    22  . 
    23   Homepage: http://www.baifox.org 
     12Depends:  apache 
     13Description: Baifox is a GPL control panel to managed  
     14    services of a hosting service. 
     15Homepage: http://www.baifox.org 
  • trunk/debian/copyright

    r421 r422  
    1 This package was debianized by Mario Izquierdo (mariodebian) <mariodebian@gmail.com> on 
    2 Fri, 30 Mar 2007 18:35:34 +0200. 
     1This package was debianized by Lorenzo Tejera (fidojones) <fidojones@fidojones.com> on 
     2Tue, 20 Nov 2007 18:35:34 +0200. 
    33 
    4 It was created by Mario Izquierdo (mariodebian) 
    5        mariodebian@gmail.com 
     4It was created by Lorenzo Tejera (fidojones) 
     5       fidojones@fidojones.com 
    66 
    77 
    88License: 
    99 
    10  * web/js/ files: builder.js controls.js dragdrop.js effects.js  
    11                   scriptaculous.js slider.js unittest.js 
    12  
    13    Downloaded from: http://script.aculo.us/ 
    14    License: http://www.opensource.org/licenses/mit-license.php 
    15  
    16  Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) 
    17  
    18  Permission is hereby granted, free of charge, to any person obtaining 
    19  a copy of this software and associated documentation files (the 
    20  "Software"), to deal in the Software without restriction, including 
    21  without limitation the rights to use, copy, modify, merge, publish, 
    22  distribute, sublicense, and/or sell copies of the Software, and to 
    23  permit persons to whom the Software is furnished to do so, subject to 
    24  the following conditions: 
    25  
    26  The above copyright notice and this permission notice shall be 
    27  included in all copies or substantial portions of the Software. 
    28  
    29  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
    30  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
    31  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
    32  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
    33  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
    34  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
    35  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
    36  
    37  For details, see the script.aculo.us web site: http://script.aculo.us/ 
    38  
    39 ------------------------------------------------------------------------ 
    40  
    41    This package is free software; you can redistribute it and/or modify 
    42    it under the terms of the GNU General Public License as published by 
    43    the Free Software Foundation; version 2 dated June, 1991. 
    44  
    45    This package is distributed in the hope that it will be useful, 
    46    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    47    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    48    GNU General Public License for more details. 
    49  
    50    You should have received a copy of the GNU General Public License 
    51    along with this package; if not, write to the Free Software 
    52    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 
    53    USA. 
    54  
    5510On Debian systems, the complete text of the GNU General 
    5611Public License can be found in `/usr/share/common-licenses/GPL'. 
  • trunk/debian/docs

    r421 r422  
    1 README 
  • trunk/debian/postinst

    r421 r422  
    11#!/bin/bash 
    2 set -e 
     2#set -e 
    33 
    4 if [ -d /etc/apache2/conf.d/ ] && [ ! -e /etc/apache2/conf.d/tcosphpmonitor.conf ] ; then 
     4#if [ -d /etc/apache2/conf.d/ ] && [ ! -e /etc/apache2/conf.d/tcosphpmonitor.conf ] ; then 
    55# ln -s /etc/tcosphpmonitor/apache.conf /etc/apache2/conf.d/tcosphpmonitor.conf 
    6 fi 
     6#fi 
    77 
    8 if [ -d /etc/apache/conf.d/ ] && [ ! -e /etc/apache/conf.d/tcosphpmonitor.conf ]; then 
     8i#f [ -d /etc/apache/conf.d/ ] && [ ! -e /etc/apache/conf.d/tcosphpmonitor.conf ]; then 
    99# ln -s /etc/tcosphpmonitor/apache.conf /etc/apache/conf.d/tcosphpmonitor.conf 
     10#fi 
     11 
     12if [ -f "/etc/init.d/baifox" ]; then 
     13  update-rc.d baifox defaults 99 >/dev/null 
    1014fi 
    1115 
  • trunk/debian/postrm

    r421 r422  
    11#!/bin/bash 
    2 set -e 
     2#set -e 
    33 
    4 if [ "$1" = "purge" ]; then 
    5   if [ -f /etc/apache2/conf.d/tcosphpmonitor.conf ]; then 
     4#if [ "$1" = "purge" ]; then 
     5#  if [ -f /etc/apache2/conf.d/tcosphpmonitor.conf ]; then 
    66#   rm /etc/apache2/conf.d/tcosphpmonitor.conf 
    7   fi 
     7#  fi 
    88 
    9   if [ -d /etc/apache/conf.d/tcosphpmonitor.conf ]; then 
     9#  if [ -d /etc/apache/conf.d/tcosphpmonitor.conf ]; then 
    1010#  rm /etc/apache/conf.d/tcosphpmonitor.conf 
    11   fi 
     11#  fi 
    1212 
    13   rm -rf /var/cache/tcosphpmonitor 
    14 fi 
     13#  rm -rf /var/cache/tcosphpmonitor 
     14#fi 
    1515 
    1616#DEBHELPER# 
  • trunk/debian/rules

    r421 r422  
    2828        dh_installdirs 
    2929 
    30         $(MAKE) install DESTDIR=$(CURDIR)/debian/tcosphpmonitor 
    31  
    32  
    33         chown root:www-data $(CURDIR)/debian/tcosphpmonitor/etc/tcosphpmonitor/tcosphpmonitor.php 
    34         chmod 640 $(CURDIR)/debian/tcosphpmonitor/etc/tcosphpmonitor/tcosphpmonitor.php 
    35         dh_link /etc/tcosphpmonitor/tcosphpmonitor.php /usr/share/tcosphpmonitor/config.inc.php 
    36  
    37         chown root:www-data $(CURDIR)/debian/tcosphpmonitor/var/cache/tcosphpmonitor 
    38         chmod 770 $(CURDIR)/debian/tcosphpmonitor/var/cache/tcosphpmonitor 
    39  
     30        $(MAKE) install DESTDIR=$(CURDIR)/debian/baifox 
    4031 
    4132# Build architecture-independent files here. 
     
    4536        dh_installchangelogs  
    4637        dh_installdocs 
    47         dh_pysupport 
    4838        dh_link 
    4939        dh_strip 
    5040        dh_compress 
    51         dh_fixperms -X/var/cache/tcosphpmonitor -X/etc/tcosphpmonitor/tcosphpmonitor.php 
     41        dh_fixperms 
    5242        dh_installdeb 
    5343        dh_shlibdeps 
  • trunk/panel/admin_panel/config/main_config_debian.php

    r410 r422  
    77define("_CFG_INTERFACE_MYSQLUSER","baifox_panel"); //usuario de la base de datos baifox 
    88define("_CFG_INTERFACE_MYSQLPASSWORD","[VAR_MYSQLBAIFOX_PASSWORD]"); //contraseña de la base de datos baifox 
    9 define("_CFG_INTERFACE_DIR","/usr/local/baifox/panel/"); 
     9define("_CFG_INTERFACE_DIR","/usr/share/baifox/panel/"); 
    1010define("_CFG_INTERFACE_DIRMODULES",_CFG_INTERFACE_DIR."admin_panel/modulos/"); 
    1111define("_CFG_INTERFACE_LIBRERIA",_CFG_INTERFACE_DIR."libreria.php");