From 02e1ef1f60d6606be65e458fbe62e38de525ca3b Mon Sep 17 00:00:00 2001 From: "Paul C. Buetow (mars.fritz.box)" Date: Fri, 20 Jun 2014 00:26:20 +0200 Subject: rename to netdiff --- docs/netdiff.txt | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 docs/netdiff.txt (limited to 'docs/netdiff.txt') diff --git a/docs/netdiff.txt b/docs/netdiff.txt new file mode 100644 index 0000000..815c823 --- /dev/null +++ b/docs/netdiff.txt @@ -0,0 +1,114 @@ +NAME + netdiff - A netdiff project + +WTF? + You may use this project in order to build your own Debian package for + your own project. This has been tested with Debian GNU/Linux Squeeze and + Debian GNU/Linux Wheezy. + + Feel free to modify any aspects. This project is just an empty example + netdiff. + + Follow these steps: + + Install required packages + Run the following: + + sudo aptitude install lintian devscripts dpkg-dev make perl + + Todo: Ensure this are the correct packages. In order to test that I + would have to setup a blank Debian system. + + Compile the project + Go to the to level directory and run + + make + + To test run + + ./bin/netdiff + + It should print out the version number of the project. + + Create a Debian package + Go to the to level directory and run + + make deb + + It will create the files like: + + ../netdiff_0.0.0.0_all.deb + ../netdiff_0.0.0.0.dsc + ../netdiff_0.0.0.0_amd64.changes + ../netdiff_0.0.0.0.tar.gz + + It should create a debian package in ../. Check and install it, e.g: + + lintian --pedantic ../netdiff_0.0.0.0_all.deb + sudo dpkg -i ../netdiff_0.0.0.0_all.deb + + Run + + dpkg -L netdiff + + to see whats in there. You can now run + + /usr/bin/netdiff + + or for example + + man netdiff + + Read the Makefile + Read the Makefile in order to understand what's going on. + +Customize + Now, since you understood everything feel free to customize everything + the way you want it. E.g.: + + Don't use POD for documentation but LaTeX + + Compile a C program + + Include a ./lib dir, add it to the 'install' Makefile rule + + etc etc. + + You should also consider the following: + + Manual page + This netdiff is using POD for creating manual pages. Edit + ./docs/netdiff.pod and run + + make documentation + + in order to build ./docs/netdiff.1. The page will be included in the + resulting debian package automatically. You can review the page with + + man ./docs/netdiff.1 + + Renaming netdiff into your project name + Rename all files which have *netdiff* included into your own new + package name. You can do that with: + + PROJECTNAME=yourproject + find . -name \*netdiff\* | + while read netdiff; do git mv $netdiff ${netdiff/netdiff/$PROJECTNAME}; done + + Search all content and rename *netdiff* into your own new package name. + You can do that with: + + grep -R netdiff . | grep -v .git | + cut -d: -f1 | uniq | xargs sed -i "s/netdiff/$PROJECTNAME/g" + + Updating ./debian + Edit the following files accordingly to your new project (e.g. with + vim): + + vim ./debian/{control,copyright,README} + + Update changelog + Go to the to level directory and run + + dch -i + -- cgit v1.2.3