I have created a package based on http://packaging.ubuntu.com/html/packaging-new-software.html sample. In this sample, sources are c++ files. I want to create my new package from executable jar files source. I found maven, ANT and dhBuild tools but I don't want to use this tools. So I need a way to create my package with command line. please give me some hints or samples to know most about that.
The goal is to create a package that simply puts a shell script where I want it.
mkdir deb
mkdir -p ./deb/usr/local/bin
3.Copy the script into your new directory
cp /path/to/my/script/myscript.sh ./deb/usr/local/bin/
4.Make a subdirectory called "DEBIAN", this will host the package control file.
mkdir -p ./deb/DEBIAN
Create a control file.
touch ./deb/DEBIAN/control
5.Open the control file and enter the text below.
Package: myPackagename (no spaces or underscores allowed)
Priority: optional
Section: misc
Maintainer: Maintainer Name <[email protected]>
Architecture: all
Version: 1.0
Depends: package1, package2, .........
Description: short description here
long description here (don't remove space at the beginning of
line(replace this with an empty line)
Change ownership:
sudo chown -R root:root ./deb
6.Create the debian package.
dpkg -b ./deb /my/output/destination/packagename.deb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With