Editing
Util-vserver:Debian
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 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: <pre> 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 </pre> First you need the tools to build packages. Those seems to be: <pre> 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 </pre> 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 * upload the source from http://people.linux-vserver.org/~dhozac/t/uv-testing/ * untar it * cd into the created directory * run dh_make -e youremail@adress -f ../util-vserver-0.30.216-xxx (change for the real name of course :) ) 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.
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information