Creating an hello world debian source package from scratch
- From: markhobley@xxxxxxxxxxxxxxxxxxxxxxxx (Mark Hobley)
- Date: Sun, 25 Mar 2007 23:03:30 GMT
I am tring to create an absolute bare minimum "hello world" package for
installation from a customized local repository. I want to make all the source
files from scratch, without the use of debhelper.
I have created the source code file:
~/helloworld/src/hello.c
I have also created the debian control file:
~/helloworld/debian/control
I will create a symlink ~helloworld_1.0.0 to the ~helloworld directory, so that
the build tools know the package version.
Is that step necessary, or could I build from the helloworld directory, and
add the package version to the ~/helloworld/debian/control file?
I now need to build a rules file. Can I skip invoking debhelper during
installation, I simply want to invoke the compiler, and put the file in the
right place, for creating a .deb file. Can I simplify the rules file?
Building the binary is case of simply compiling, as follows:
cc hello.c -o hello
What do I do about path names in the rules file? I know debhelper handles all
this in a generated file.
What rules do I actually need to build the .deb file?
I have not created a separate Makefile to build the program. Do I need one, or
can I just use the rules file to handle this?
How do I set the install path, ownership and attributes of the hello binary in
the source file, so that this information is forwarded to the resulting binary
file?
Thanks in advance to anyone that can help.
Mark.
--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE
Telephone: (0121) 247 1596
International: 0044 121 247 1596
Email: markhobley at hotpop dot donottypethisbit com
http://markhobley.yi.org/
.
- Follow-Ups:
- Re: Creating an hello world debian source package from scratch
- From: Mark Hobley
- Re: Creating an hello world debian source package from scratch
- Prev by Date: test
- Next by Date: Re: windows .dll files and linux
- Previous by thread: test
- Next by thread: Re: Creating an hello world debian source package from scratch
- Index(es):
Relevant Pages
|