diff options
| author | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-07-04 21:48:08 +0200 |
|---|---|---|
| committer | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-07-04 21:48:08 +0200 |
| commit | b1696a55c38a1838ca25ebad58cd5b9ad48a9b75 (patch) | |
| tree | 4c027e7413e50b4951aea9c8a980a40a9e6940d4 /docs/muttdelay.txt | |
| parent | 5361f26e75d3541968fb585a7e2d0af5283994e8 (diff) | |
rename
Diffstat (limited to 'docs/muttdelay.txt')
| -rw-r--r-- | docs/muttdelay.txt | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/docs/muttdelay.txt b/docs/muttdelay.txt new file mode 100644 index 0000000..2ce9cb3 --- /dev/null +++ b/docs/muttdelay.txt @@ -0,0 +1,114 @@ +NAME + muttdelay - A muttdelay 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 + muttdelay. + + 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/muttdelay + + 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: + + ../muttdelay_0.0.0.0_all.deb + ../muttdelay_0.0.0.0.dsc + ../muttdelay_0.0.0.0_amd64.changes + ../muttdelay_0.0.0.0.tar.gz + + It should create a debian package in ../. Check and install it, e.g: + + lintian --pedantic ../muttdelay_0.0.0.0_all.deb + sudo dpkg -i ../muttdelay_0.0.0.0_all.deb + + Run + + dpkg -L muttdelay + + to see whats in there. You can now run + + /usr/bin/muttdelay + + or for example + + man muttdelay + + 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 muttdelay is using POD for creating manual pages. Edit + ./docs/muttdelay.pod and run + + make documentation + + in order to build ./docs/muttdelay.1. The page will be included in the + resulting debian package automatically. You can review the page with + + man ./docs/muttdelay.1 + + Renaming muttdelay into your project name + Rename all files which have *muttdelay* included into your own new + package name. You can do that with: + + PROJECTNAME=yourproject + find . -name \*muttdelay\* | + while read muttdelay; do git mv $muttdelay ${muttdelay/muttdelay/$PROJECTNAME}; done + + Search all content and rename *muttdelay* into your own new package name. + You can do that with: + + grep -R muttdelay . | grep -v .git | + cut -d: -f1 | uniq | xargs sed -i "s/muttdelay/$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 + |
