~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to debian/README

  • Committer: Osmo Antero Maatta
  • Date: 2011-01-17 08:09:50 UTC
  • Revision ID: osmoma@gmail.com-20110117080950-4cbm2fnnsr0332jw
InitialĀ importĀ 17.jan.2011

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
debian/README
 
2
 
 
3
The Debian Package rec-applet
 
4
-------------------------------
 
5
 
 
6
Comments regarding the Package
 
7
 -- Osmo Antero Maatta (moma) <osmoma@gmail.com>  Mon, 04 Aug 2010 21:03:12 +0100
 
8
 
 
9
Important files:
 
10
****************
 
11
rec-applet*/debian/README - This file.
 
12
rec-applet*/README  - Important information about this program.
 
13
rec-applet*/INSTALL - Building and installing this application from source.
 
14
 
 
15
Build environment:
 
16
******************
 
17
I created the Debian (deb) package by mainly following these guides:
 
18
http://www.linux.com/articles/60383
 
19
https://help.ubuntu.com/ubuntu/packagingguide/C/basic-scratch.html
 
20
 
 
21
You must setup the necessary build-environment as guided.
 
22
 
 
23
Package dependencies:
 
24
**********************
 
25
Runtime requirements (package dependencies) are explained in the README file, section "Runtime".
 
26
Compilation/build requirements are explained in the INSTALL file.
 
27
Read them.
 
28
 
 
29
Creating a deb package:
 
30
***********************
 
31
Read: https://wiki.ubuntu.com/PackagingGuide/Basic
 
32
      https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage
 
33
 
 
34
You can re-create the debian package by typing:
 
35
 
 
36
export DEBFULLNAME="Osmo Antero Maatta" <-- Your name and email here.
 
37
export DEBEMAIL="osmoma@gmail.com"
 
38
cd rec-applet*
 
39
debuild -S -sa
 
40
 
 
41
Sometimes debuild fails to find the GPG-key so you have to use the -k option. First list your GPG-keys
 
42
gpg --list-secret-keys
 
43
 
 
44
/home/moma/.gnupg/pubring.gpg
 
45
-----------------------------
 
46
pub   2048R/549B8DD1 2010-08-04
 
47
uid                  Osmo Antero Maatta <osmoma@gmail.com>
 
48
sub   2048R/903F7123 2010-08-04
 
49
 
 
50
Then use -k option liek this:
 
51
 
 
52
debuild -S -sa -k549B8DD1
 
53
Successfully signed dsc and changes files!
 
54
 
 
55
# -us -uc turns off GPG signing, but you cannot upload packages to PPA (Launchpad) without signing them. 
 
56
# debuild  -us -uc  
 
57
 
 
58
 
 
59
It will generate and put a new debian package to rec-applet's parent directory.
 
60
 
 
61
ls -l .. 
 
62
-rw-r--r-- 1 moma moma   52340 Mar 15 10:43 rec-applet_0.1_i386.build
 
63
-rw-r--r-- 1 moma moma    1215 Mar 15 10:43 rec-applet_0.1_i386.changes
 
64
-rw-r--r-- 1 moma moma 5619684 Mar 15 10:43 rec-applet_0.1_i386.deb
 
65
-rw-r--r-- 1 moma moma 5781184 Mar 15 10:43 rec-applet_0.1.tar.gz
 
66
 
 
67
Now install the .deb package by typing (as root or sudo):
 
68
dpkg -i rec-applet-<ver>.deb
 
69
 
 
70
It will probably complain about missing dependencies. Run apt-get install -f to fix it (as root or sudo): 
 
71
apt-get install -f
 
72
 
 
73
Uninstallation is done by (as root or sudo):
 
74
apt-get remove rec-applet
 
75
 
 
76
Notes:
 
77
******
 
78
I have removed these lines from the debian/rules file.
 
79
#       dh_installman
 
80
Uncomment the dh_installman line when manual pages are ready.
 
81
--
 
82
Added "pkill gnome-panel 2>/dev/null" command to postinst.ex.
 
83
Renamed "postinst.ex" (example script) to "postinst".
 
84
It will reload applet configurations from /usr/lib/bonobo/servers/*
 
85
so the installed applet becomes visible in the "Add to panel..." list.
 
86
--
 
87
 
 
88
 
 
89
 
 
90