You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+30-25Lines changed: 30 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,14 @@ Internal Structure
18
18
The repository contains the following set of files:
19
19
20
20
- Files named with **make_** prefix, such as ``make_deb``, are the shell scripts used to build the package. The scripts accept the architecture to build as argument (currently *x86* and *arm*).
21
-
- The **packages** folder contains the list package types to build. At the moment, the only package type we provide is *Debian*
21
+
- The **packages** folder contains the list package types to build. At the moment, the only package type we provide is *Debian*.
22
+
22
23
- Inside the *packages/Debian* folder, we have the **architecture** folders, plus a *common* folder containing files that are common to all the architectures. The architectures that we provide at the moment are *armhf* and *x86_64*.
24
+
23
25
- Inside the architecture folder we have the DEBIAN folder, which contains all the Debian-based files, i.e. control, pre/post inst/rm, needed for the creation of the package.
26
+
24
27
- After the first build, the *packages/Debian* will also contain a **build** folder. This folder contains a copy of what will be used to build the package (in a directory with the same name of the package) and the package itself.
28
+
25
29
- In the *build* folder, folders and files that have a sequence number are a previous package build.
26
30
27
31
@@ -48,41 +52,42 @@ Finally, run the ``make_deb`` command:
48
52
Building Complete.
49
53
$
50
54
51
-
The result will be:
55
+
The result will be:
52
56
53
57
.. code-block:: console
54
58
55
59
$ ls -l packages/Debian/build/
56
-
total 564
57
-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64
58
-
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb
60
+
total 564
61
+
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64
62
+
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb
59
63
$
60
64
61
65
If you execute the ``make_deb`` command again, you will see:
62
66
63
67
.. code-block:: console
64
68
65
69
$ ./make_deb x86
66
-
The package root directory is : /home/foglamp/foglamp-pkg
67
-
The FogLAMP directory is : /usr/local/foglamp
68
-
The FogLAMP version is : 1.2
69
-
The Package will be built in : /home/foglamp/foglamp-pkg/packages/Debian/build
70
-
The architecture is set as : x86_64
71
-
The package name is : foglamp-1.2-x86_64
72
-
73
-
Saving the old working environment as foglamp-1.2-x86_64.0001
74
-
Populating the package...Done.
75
-
Saving the old package as foglamp-1.2-x86_64.deb.0001
76
-
Building the new package...
77
-
dpkg-deb: building package 'foglamp' in 'foglamp-1.2-x86_64.deb'.
78
-
Building Complete.
79
-
$ ls -l packages/Debian/build/
80
-
total 1128
81
-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:53 foglamp-1.2-x86_64
82
-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64.0001
83
-
-rw-r--r-- 1 foglamp foglamp 573080 Mar 23 17:54 foglamp-1.2-x86_64.deb
84
-
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb.0001
85
-
$
70
+
The package root directory is : /home/foglamp/foglamp-pkg
71
+
The FogLAMP directory is : /usr/local/foglamp
72
+
The FogLAMP version is : 1.2
73
+
The Package will be built in : /home/foglamp/foglamp-pkg/packages/Debian/build
74
+
The architecture is set as : x86_64
75
+
The package name is : foglamp-1.2-x86_64
76
+
77
+
Saving the old working environment as foglamp-1.2-x86_64.0001
78
+
Populating the package...Done.
79
+
Saving the old package as foglamp-1.2-x86_64.deb.0001
80
+
Building the new package...
81
+
dpkg-deb: building package 'foglamp' in 'foglamp-1.2-x86_64.deb'.
82
+
Building Complete.
83
+
$
84
+
$ ls -l packages/Debian/build/
85
+
total 1128
86
+
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:53 foglamp-1.2-x86_64
87
+
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64.0001
88
+
-rw-r--r-- 1 foglamp foglamp 573080 Mar 23 17:54 foglamp-1.2-x86_64.deb
89
+
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb.0001
90
+
$
86
91
87
92
... where the previous build is now marked with the suffix *.0001*.
0 commit comments