Add check for package compatibility

This commit is contained in:
Ed Reel
2020-05-10 12:08:50 -05:00
parent 6abffd37db
commit 9617751bbd
1144 changed files with 1872 additions and 797 deletions

View File

@@ -4,6 +4,7 @@ class Sysstat < Package
description 'The sysstat utilities are a collection of performance monitoring tools for Linux. These include sar, sadf, mpstat, iostat, tapestat, pidstat, cifsiostat and sa tools.'
homepage 'http://sebastien.godard.pagesperso-orange.fr/'
version '12.1.5'
compatibility 'all'
source_url 'http://pagesperso-orange.fr/sebastien.godard/sysstat-12.1.5.tar.xz'
source_sha256 'a496936bb3f5093d780a50735f00e39b0b7f3a688eb89051f2ef5f86739522c5'
@@ -20,20 +21,23 @@ class Sysstat < Package
x86_64: '5aac1bfb1bdf0a8d3dbeb010f179bbddeac24134768755d9dc3ccad01fb26f24',
})
def self.build
def self.patch
system "sed -i 's/GRP=root/GRP=$(whoami)/' configure"
system "sed -i 's/\"root\"/\"$(whoami)\"/g' configure"
system "sed -i 's/root/$(whoami)/g' configure.in"
system "sed -i 's/root/$(whoami)/g' sysstat-#{self.version}.spec"
end
def self.build
system "./configure \
--docdir=#{CREW_PREFIX}/doc \
--infodir=#{CREW_PREFIX}/info \
--mandir=#{CREW_PREFIX}/man"
system "make"
--mandir=#{CREW_MAN_PREFIX}"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end