Skip to content
FogLAMP South plugin for fetching system information forth host machine running FogLAMP at defined intervals
Branch: develop
Clone or download
Singhal-Vaibhav Merge pull request #18 from foglamp/master
v1.6.0 release - master to develop
Latest commit dd239cd May 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages/Debian/DEBIAN changed version Sep 21, 2018
python/foglamp/plugins/south/systeminfo requirements.sh file added Feb 26, 2019
test version, readme and test fixes Feb 7, 2019
.gitignore System Info plugin Aug 2, 2018
Description FOGL-2774 Add package control files May 10, 2019
LICENSE
Package FOGL-2774 Fix x86_64 May 15, 2019
README.rst
VERSION.south.systeminfo VERSION changed May 22, 2019
make_deb System Info plugin Aug 2, 2018
requirements.sh

README.rst

foglamp-south-systeminfo

FogLAMP South Plugin for systeminfo. read more

Packaging for systeminfo

This repo contains the scripts used to create a foglamp-south-systeminfo package.

The make_deb script

$ ./make_deb help
make_deb help [clean|cleanall]
This script is used to create the Debian package of foglamp south systeminfo
Arguments:
 help     - Display this help text
 clean    - Remove all the old versions saved in format .XXXX
 cleanall - Remove all the versions, including the last one
$

Building a Package

Finally, run the make_deb command:

$ ./make_deb
The package root directory is         : /home/pi/foglamp-south-systeminfo
The FogLAMP south systeminfo version is : 1.0.0
The package will be built in          : /home/pi/foglamp-south-systeminfo/packages/build
The package name is                   : foglamp-south-systeminfo-1.0.0

Populating the package and updating version file...Done.
Building the new package...
dpkg-deb: building package 'foglamp-south-systeminfo' in 'foglamp-south-systeminfo-1.0.0.deb'.
Building Complete.
$

The result will be:

$ ls -l packages/build/
  total 12
  drwxr-xr-x 4 pi pi 4096 Jun 14 10:03 foglamp-south-systeminfo-1.0.0
  -rw-r--r-- 1 pi pi 4522 Jun 14 10:03 foglamp-south-systeminfo-1.0.0.deb
$

If you execute the make_deb command again, you will see:

$ ./make_deb
The package root directory is         : /home/pi/foglamp-south-systeminfo
The FogLAMP south systeminfo version is : 1.0.0
The package will be built in          : /home/pi/foglamp-south-systeminfo/packages/build
The package name is                   : foglamp-south-systeminfo-1.0.0

Saving the old working environment as foglamp-south-systeminfo-1.0.0.0001
Populating the package and updating version file...Done.
Saving the old package as foglamp-south-systeminfo-1.0.0.deb.0001
Building the new package...
dpkg-deb: building package 'foglamp-south-systeminfo' in 'foglamp-south-systeminfo-1.0.0.deb'.
Building Complete.
$


$ ls -l packages/build/
total 24
drwxr-xr-x 4 pi pi 4096 Jun 14 10:06 foglamp-south-systeminfo-1.0.0
drwxr-xr-x 4 pi pi 4096 Jun 14 10:03 foglamp-south-systeminfo-1.0.0.0001
-rw-r--r-- 1 pi pi 4518 Jun 14 10:06 foglamp-south-systeminfo-1.0.0.deb
-rw-r--r-- 1 pi pi 4522 Jun 14 10:03 foglamp-south-systeminfo-1.0.0.deb.0001
$

... where the previous build is now marked with the suffix .0001.

Cleaning the Package Folder

Use the clean option to remove all the old packages and the files used to make the package. Use the cleanall option to remove all the packages and the files used to make the package.

You can’t perform that action at this time.