~audio-recorder/audio-recorder/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
debian/README

The Debian Package rec-applet
-------------------------------

Comments regarding the Package
 -- Osmo Antero Maatta (moma) <osmoma@gmail.com>  Mon, 04 Aug 2010 21:03:12 +0100

Important files:
****************
rec-applet*/debian/README - This file.
rec-applet*/README  - Important information about this program.
rec-applet*/INSTALL - Building and installing this application from source.

Build environment:
******************
I created the Debian (deb) package by mainly following these guides:
http://www.linux.com/articles/60383
https://help.ubuntu.com/ubuntu/packagingguide/C/basic-scratch.html

You must setup the necessary build-environment as guided.

Package dependencies:
**********************
Runtime requirements (package dependencies) are explained in the README file, section "Runtime".
Compilation/build requirements are explained in the INSTALL file.
Read them.

Creating a deb package:
***********************
Read: https://wiki.ubuntu.com/PackagingGuide/Basic
      https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage

You can re-create the debian package by typing:

export DEBFULLNAME="Osmo Antero Maatta" <-- Your name and email here.
export DEBEMAIL="osmoma@gmail.com"
cd rec-applet*
debuild -S -sa

Sometimes debuild fails to find the GPG-key so you have to use the -k option. First list your GPG-keys
gpg --list-secret-keys

/home/moma/.gnupg/pubring.gpg
-----------------------------
pub   2048R/549B8DD1 2010-08-04
uid                  Osmo Antero Maatta <osmoma@gmail.com>
sub   2048R/903F7123 2010-08-04

Then use -k option liek this:
 
debuild -S -sa -k549B8DD1
Successfully signed dsc and changes files!

# -us -uc turns off GPG signing, but you cannot upload packages to PPA (Launchpad) without signing them. 
# debuild  -us -uc  


It will generate and put a new debian package to rec-applet's parent directory.

ls -l .. 
-rw-r--r-- 1 moma moma   52340 Mar 15 10:43 rec-applet_0.1_i386.build
-rw-r--r-- 1 moma moma    1215 Mar 15 10:43 rec-applet_0.1_i386.changes
-rw-r--r-- 1 moma moma 5619684 Mar 15 10:43 rec-applet_0.1_i386.deb
-rw-r--r-- 1 moma moma 5781184 Mar 15 10:43 rec-applet_0.1.tar.gz

Now install the .deb package by typing (as root or sudo):
dpkg -i rec-applet-<ver>.deb

It will probably complain about missing dependencies. Run apt-get install -f to fix it (as root or sudo): 
apt-get install -f

Uninstallation is done by (as root or sudo):
apt-get remove rec-applet

Notes:
******
I have removed these lines from the debian/rules file.
#	dh_installman
Uncomment the dh_installman line when manual pages are ready.
--
Added "pkill gnome-panel 2>/dev/null" command to postinst.ex.
Renamed "postinst.ex" (example script) to "postinst".
It will reload applet configurations from /usr/lib/bonobo/servers/*
so the installed applet becomes visible in the "Add to panel..." list.
--