Software/Create

Make the debian package folder "PACKAGE NAME"
Inside the directory make sure you have the folders where you need to install your files-binaries, configs, logs
we needed our files to go in etc,var and bin folders on the installers machine
We created these directories and put the respective files that needed to go there. Now create the DEBIAN folder, inside the DEBIAN folder two most important files are
rules - Installation happens here
control - Contains all the dependencies, package info
We also have files there for post and pre installation tasks along with log rotation file for logrotate
For building the package run the following command from outside the package folder

dpkg-deb --build asn-gw

This will create your debian package. Now copy this debian package to your apt repository. Steps for having an apt repository are followed.