-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from joular/develop
0.7.3
- Loading branch information
Showing
10 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name = "powerjoular" | ||
description = "Monitoring the power consumption of multiple platforms and processes" | ||
version = "0.7.2" | ||
version = "0.7.3" | ||
|
||
authors = ["Adel Noureddine"] | ||
maintainers = ["Adel Noureddine <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
#!/bin/sh | ||
|
||
# Create folders for pacakge formats | ||
mkdir deb | ||
# For Debian, Ubuntu (.deb package) | ||
|
||
# Create folder structure for debian | ||
mkdir -p deb/powerjoular/usr/bin deb/powerjoular/etc/systemd/system deb/powerjoular/DEBIAN | ||
for ARCH in amd64 arm64 armhf | ||
do | ||
rm -rf $ARCH | ||
|
||
# Create folder for architecture and package format | ||
mkdir -p $ARCH/powerjoular/usr/bin $ARCH/powerjoular/etc/systemd/system $ARCH/powerjoular/DEBIAN | ||
|
||
# Copy binary files for deb package | ||
cp ../obj/powerjoular ./deb/powerjoular/usr/bin/ | ||
cp ../systemd/powerjoular.service ./deb/powerjoular/etc/systemd/system/ | ||
cp ./debian-control-$1.txt ./deb/powerjoular/DEBIAN/control | ||
# Copy binary files for deb package | ||
cp ../obj/powerjoular ./$ARCH/powerjoular/usr/bin/ | ||
cp ../systemd/powerjoular.service ./$ARCH/powerjoular/etc/systemd/system/ | ||
cp ./debian-control-$ARCH.txt ./$ARCH/powerjoular/DEBIAN/control | ||
|
||
# Create deb package | ||
cd deb | ||
dpkg-deb --build powerjoular | ||
# Create deb package | ||
cd ./$ARCH | ||
VERSION=$(grep '^Version:' powerjoular/DEBIAN/control | awk '{print $2}') | ||
dpkg-deb --build powerjoular | ||
mv powerjoular.deb powerjoular_${VERSION}_${ARCH}.deb | ||
cd .. | ||
done | ||
|
||
# For Red Hat, Fedora (.rpm package) | ||
rm -rf rpmbuild | ||
mkdir rpmbuild | ||
cd rpmbuild | ||
mkdir BUILD RPMS SOURCES SPECS SRPMS | ||
cd .. | ||
cp ../obj/powerjoular ./rpmbuild/SOURCES/ | ||
cp ../systemd/powerjoular.service ./rpmbuild/SOURCES/ | ||
cp ./powerjoular.spec ./rpmbuild/SPECS/ | ||
rpmbuild -bb --define "_topdir $(pwd)/rpmbuild" ./rpmbuild/SPECS/powerjoular.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: powerjoular | ||
Version: 0.7.2 | ||
Version: 0.7.3 | ||
Maintainer: Adel Noureddine | ||
Architecture: amd64 | ||
Description: PowerJoular allows monitoring power consumption of multiple platforms and processes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: powerjoular | ||
Version: 0.7.2 | ||
Version: 0.7.3 | ||
Maintainer: Adel Noureddine | ||
Architecture: arm64 | ||
Description: PowerJoular allows monitoring power consumption of multiple platforms and processes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: powerjoular | ||
Version: 0.7.2 | ||
Version: 0.7.3 | ||
Maintainer: Adel Noureddine | ||
Architecture: armhf | ||
Description: PowerJoular allows monitoring power consumption of multiple platforms and processes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters