Changeset 5512

Show
Ignore:
Timestamp:
10/29/09 16:12:39 (4 weeks ago)
Author:
solj
Message:

Add new Debian packaging from Sami Haahtinen

Signed-off-by: Sol Jerome <solj@…>

Location:
trunk/bcfg2/debian
Files:
4 added
8 removed
2 modified
5 moved

Legend:

Unmodified
Added
Removed
  • trunk/bcfg2/debian/bcfg2-server.init

    r4891 r5512  
    55# chkconfig: 2345 19 81 
    66# description: bcfg2 server for configuration requests 
    7 #  
     7# 
    88### BEGIN INIT INFO 
    99# Provides:          bcfg2-server 
     
    7171      fi 
    7272    fi 
    73      
     73 
    7474    log_failure_msg "$BINARY is not running" 
    7575    return 3 
  • trunk/bcfg2/debian/bcfg2.init

    r5125 r5512  
    120120        start 
    121121    ;; 
    122     stop)  
     122    stop) 
    123123        stop 
    124124    ;; 
  • trunk/bcfg2/debian/changelog

    r5505 r5512  
     1bcfg2 (1.0.0rc1-1) unstable; urgency=low 
     2 
     3  * Update packaging 
     4    * Switch to plain debhelper 
     5    * Switch from pycentral to python-support 
     6    * Move homepage to the dedicated Homepage field 
     7    * Update Standards-Version to 3.8.3.0 
     8 
     9 -- Sami Haahtinen <ressu@debian.org>  Sat, 24 Oct 2009 00:20:51 +0300 
     10 
    111bcfg2 (1.0.0rc1-0.1) unstable; urgency=low 
    212 
  • trunk/bcfg2/debian/control

    r5507 r5512  
    33Priority: optional 
    44Maintainer: Sami Haahtinen <ressu@debian.org> 
    5 Build-Depends: @cdbs@ 
    6 Standards-Version: 3.7.2.0 
     5Build-Depends: debhelper (>= 7.0.50~), python-dev (>= 2.3.5-11), python-support 
     6Standards-Version: 3.8.3.0 
    77XS-Python-Version: >= 2.3 
    88 
    99Package: bcfg2 
    1010Architecture: all 
    11 Depends: ${python:Depends}, debsums, python-apt, python-lxml (>= 0.9), ucf, lsb-base (>= 3.1-9), python (>= 2.6) | python-m2crypto (>= 0.17) | python-ssl 
     11Depends: ${python:Depends}, ${misc:Depends}, debsums, python-apt, python-lxml (>= 0.9), ucf, lsb-base (>= 3.1-9) 
    1212XB-Python-Version: ${python:Versions} 
     13Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ 
    1314Description: Configuration management client 
    1415 Bcfg2 is a configuration management system that generates configuration sets 
     
    1617 bcfg2 is the client portion of bcfg2 system which installs configuration 
    1718 images provided by bcfg2-server 
    18  . 
    19  Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ 
    2019 
    2120Package: bcfg2-server 
    2221Architecture: all 
    23 Depends: ${python:Depends}, python-lxml (>= 0.9), python-fam | python-gamin, libxml2-utils (>= 2.6.23), gamin | fam, lsb-base (>= 3.1-9), ucf, bcfg2 (= ${Source-Version}), openssl 
    24 Recommends: python-genshi (>= 0.4.4), graphviz, python-profiler 
     22Depends: ${python:Depends}, ${misc:Depends}, python-lxml (>= 0.9), python-fam | python-gamin, libxml2-utils (>= 2.6.23), gamin | fam, lsb-base (>= 3.1-9), ucf, bcfg2 (= ${Source-Version}), openssl, python-profiler 
     23Recommends: python-genshi (>= 0.4.4), graphviz 
    2524XB-Python-Version: ${python:Versions} 
     25Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ 
    2626Description: Configuration management server 
    2727 Bcfg2 is a configuration management system that generates configuration sets 
     
    2929 bcfg2-server is the server for bcfg2 clients, which generates configuration 
    3030 sets and stores statistics of client system states. 
    31  . 
    32  Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ 
  • trunk/bcfg2/debian/rules

    r4453 r5512  
    11#!/usr/bin/make -f 
    2 # -*- mode: makefile; coding: utf-8 -*- 
     2%: 
     3        dh --with python-support $@ 
    34 
    4 # Generate debian/control fron control.in with the following command: 
    5 # DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean 
    6  
    7 # Comment this line if you wish to build without pycentral or pysupport 
    8 DEB_PYTHON_SYSTEM := pycentral 
    9 DEB_PYTHON_MODULE_PACKAGE := bcfg2 
    10 ifdef DEB_PYTHON_SYSTEM 
    11 DEB_DH_INSTALLINIT_ARGS := -n 
    12 else 
    13 DEB_DH_INSTALLINIT_ARGS := --no-start 
    14 endif 
    15 DEB_COMPRESS_EXCLUDE :=*.tif 
    16  
    17 include /usr/share/cdbs/1/rules/debhelper.mk 
    18 include /usr/share/cdbs/1/class/python-distutils.mk 
    19  
    20 # By default use 2.3 as the python version (follow the original behaviour) 
    21 # This only affects the build system if built without pycentral or pysupport 
    22 DEB_PYTHON_VERSIONS = 2.3 
    23  
    24 # Since cdbs is able to handle only one python package at once do things here: 
    25 binary-install/bcfg2-server :: binary-install/%: 
    26 # Mostly borrowed from /usr/share/cdbs/1/class/python-distutils.mk 
    27 ifdef DEB_PYTHON_SYSTEM 
    28   ifeq (pysupport, $(DEB_PYTHON_SYSTEM)) 
    29         dh_pysupport -pbcfg2-server $(DEB_PYTHON_PRIVATE_MODULES_DIRS) 
    30   else 
    31         dh_pycentral -pbcfg2-server 
    32   endif 
    33 endif 
    34         dh_python -pbcfg2-server $(DEB_PYTHON_PRIVATE_MODULES_DIRS) 
    35  
    36 ifdef DEB_PYTHON_SYSTEM 
    37 # Invoke dh_installinit after compiling python modules 
    38 binary-install/bcfg2 :: 
    39         dh_installinit -p$(cdbs_curpkg) -o --no-start 
    40  
    41 binary-install/bcfg2-server :: 
    42         dh_installinit -p$(cdbs_curpkg) -o 
    43 endif 
    44  
     5override_dh_installinit: 
     6        # Install bcfg2 initscript without staring it on postinst 
     7        dh_installinit -p bcfg2 --no-start 
     8        # Install everything else normally 
     9        dh_installinit -N bcfg2