util-vserver:Debian

From Linux-VServer

Jump to: navigation, search

Draft - Create your debian package from util-vserver sources

The goal of this page is to enable anyone to create a package for debian using the latest source code from util-vserver:

Warning !!!!


This package does not follow debian guideline it is intended to give you allmost 
the same result as a ./configure; make; make install; make install-distribution of the source package.

DISCLAIMER
It has been made by someone that is NOT fluent in debian packaging but to answer a neeed in the community.
This came with no warrant at all, use it at your own risk it can burn to ashes your server and kill babies in a 4km radius if used. 
You have been warned.

the configure script is in the debian/rules file and basicaly is:

 ./configure $(CROSS) 
--prefix=/usr 
--sysconfdir=/usr/local/etc 
--localstatedir=/var 
--mandir=\$${prefix}/share/man 
--with-initrddir=/etc/init.d 
--infodir=\$${prefix}/share/info 
CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"

 so it put the man page at the right debian place and init.d script also. Binaries are in /usr/xbin if you have a source install better put /usr/local as prefix so it will be at the same place than the source install. I am still wondering wich i will choose /usr is more 'debian', /usr/local is the one used by my source compilation to date so...

DISCLAIMER

First you need the tools to build packages. Those seems to be:

fakeroot
debhelper
gawk
autotools-dev
dietlibc-dev
net-tools
vlan
iptables
wget
procps
module-init-tools
autoconf
libbeecrypt-dev
po-debconf
dpatch
libtool
automake1.9
e2fslibs-dev
libnss3-dev
pkg-config

if you have a compilation warning make sure you have those package, i stole the lits from the debian lenny util-vserver package i have not used my brain for it but this should be safe.

Draft - Create the skeleton of the package

You can use the debian tool for that, later you will need the rule, control, changelog,.. file

it should create the debian directory with all the needed skeleton in it.



Building the package

  • upload the files rules, control, copyright, changelog,util-vserver-basic.util-vserver.init , util-vserver-basic.vprocunhide.init, util-vserver-basic.vservers-default.init

from http://wwww..to be determined

  • add those files to the debian directory in util-vserver source
  • run dpkg-buildpackage -rfakeroot


You should have in the parent directory the package file, now just upload it to the server you need them and use "dpkg -i package.name" to install it. 


Regards, Ghislain.

Personal tools