Commit f0febe0a authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #4176 from uberhacker/update-swatchdog-package

Update swatchdog package and add dependencies
parents 5f08f9ce 20669bdb
require 'package'
class Perl_carp_clan < Package
description 'Report errors from perspective of caller of a "clan" of modules'
homepage 'https://metacpan.org/pod/Carp::Clan'
version '6.08'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/E/ET/ETHER/Carp-Clan-6.08.tar.gz'
source_sha256 'c75f92e34422cc5a65ab05d155842b701452434e9aefb649d6e2289c47ef6708'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_carp_clan-6.08-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/perl_carp_clan-6.08-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/perl_carp_clan-6.08-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_carp_clan-6.08-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '34f5a19b0f6d50b9c808b706aacac94c851608545f253ee812f1c34baea93b92',
armv7l: '34f5a19b0f6d50b9c808b706aacac94c851608545f253ee812f1c34baea93b92',
i686: '38300c01e5721e453e498a09037d5e6ca5e221544eeca93dbbdd5fefcbfff6dc',
x86_64: '777456ea1e8bde75969472f97838926b3ed40a5c02c1bad27d5416f87488e86d',
})
def self.build
system 'perl', 'Makefile.PL'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Perl_date_calc < Package
description 'Gregorian calendar date calculations'
homepage 'https://metacpan.org/pod/Date::Calc'
version '6.4'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/S/ST/STBEY/Date-Calc-6.4.tar.gz'
source_sha256 '7ce137b2e797b7c0901f3adf1a05a19343356cd1f04676aa1c56a9f624f859ad'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_calc-6.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_calc-6.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_calc-6.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_calc-6.4-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '90ad46018f2e5c87be03c6af856c5dcb0b7a48374be980be47c6e1a79c5c36d8',
armv7l: '90ad46018f2e5c87be03c6af856c5dcb0b7a48374be980be47c6e1a79c5c36d8',
i686: '0d4b3245024b920cc13334882bdd005c40acc291d4c7cd9791497aed63b404df',
x86_64: '9ef0460ae307268e3855b9060bb424a158afc59f15ed6c88c2b6d9fdaa908e99',
})
def self.build
system 'perl', 'Makefile.PL'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Perl_date_format < Package
description 'Date formating subroutines'
homepage 'https://metacpan.org/pod/Date::Format'
version '2.33'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/TimeDate-2.33.tar.gz'
source_sha256 'c0b69c4b039de6f501b0d9f13ec58c86b040c1f7e9b27ef249651c143d605eb2'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_format-2.33-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_format-2.33-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_format-2.33-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_format-2.33-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '74d7cd93d8ab1f1f143be489f57d4379be75524cbf0423a486986d363e64d4ac',
armv7l: '74d7cd93d8ab1f1f143be489f57d4379be75524cbf0423a486986d363e64d4ac',
i686: '4833d86c673142afde1cf51e83f852d626c7e0adca756ac4ba0cb565b05984ed',
x86_64: '4098fabdb8fc6d0ba4011c984a1f1d1b1e7247526e19ee57da9933625d3ccee4',
})
def self.build
system 'perl', 'Makefile.PL'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Perl_date_manip < Package
description 'Date manipulation routines'
homepage 'https://metacpan.org/pod/Date::Manip'
version '6.82'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-6.82.tar.gz'
source_sha256 'fa96bcf94c6b4b7d3333f073f5d0faad59f546e5aec13ac01718f2e6ef14672a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_manip-6.82-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_manip-6.82-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_manip-6.82-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_date_manip-6.82-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '8bb3990ae8ae820b943beb44e4b180176177b3af132cfae85218b24b3cbb1629',
armv7l: '8bb3990ae8ae820b943beb44e4b180176177b3af132cfae85218b24b3cbb1629',
i686: '42ffbe1fe5a9f32d769e546ead28e079a0e4fad8adb2390c3fd0c1bf495bda3c',
x86_64: '8b8d2e4baef4aad3238cdd476a851a6e3c6eb33fd585dbc59788247f89d8b130',
})
def self.build
system 'perl', 'Makefile.PL'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Perl_file_tail < Package
description 'Perl extension for reading from continously updated files'
homepage 'https://metacpan.org/pod/File::Tail'
version '1.3'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/M/MG/MGRABNAR/File-Tail-1.3.tar.gz'
source_sha256 '26d09f81836e43eae40028d5283fe5620fe6fe6278bf3eb8eb600c48ec34afc7'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_file_tail-1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/perl_file_tail-1.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/perl_file_tail-1.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/perl_file_tail-1.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'b229def8b897d284dbb4358272c80d66efcf5a07a5a754af6845667b57296fb3',
armv7l: 'b229def8b897d284dbb4358272c80d66efcf5a07a5a754af6845667b57296fb3',
i686: 'e3a076ec4e1fa188338a6830cb88f13dd99b7dcc1863010a79a441ee32525d65',
x86_64: '3ddfb4ca1947794e63e375a7b68bab4e676f565ac2b7b1ceca3bcb6c4f45d9aa',
})
def self.build
system 'perl', 'Makefile.PL'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package' require 'package'
class Swatchdog < Package class Swatchdog < Package
description "swatchdog.pl started out as swatch, the 'simple watchdog' for activity monitoring log files produced by UNIX's syslog facility." description 'The "simple watchdog" for activity monitoring log files produced by UNIX\'s syslog facility.'
homepage 'https://sourceforge.net/projects/swatch/' homepage 'http://swatch.sourceforge.net/'
version '3.2.4' version '3.2.4-1'
compatibility 'all' compatibility 'all'
source_url 'https://downloads.sourceforge.net/project/swatch/swatchdog/swatchdog-3.2.4.tar.gz' source_url 'https://downloads.sourceforge.net/project/swatch/swatchdog/swatchdog-3.2.4.tar.gz'
source_sha256 '5bb644d3750ee89b9aecab797df66b28b9fd174a5f0f96cd62367af8975b4f63' source_sha256 '5bb644d3750ee89b9aecab797df66b28b9fd174a5f0f96cd62367af8975b4f63'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/swatchdog-3.2.4-1-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '380538365ae9ac2b7a5fa52b27f7c98bf32bc0bd5a9f3982731979d27948eea2', aarch64: '731c2d136119b6be6ddf66ffea0fbddc653f80cc9ad3a8ed5d51bee7cbf43fec',
armv7l: '380538365ae9ac2b7a5fa52b27f7c98bf32bc0bd5a9f3982731979d27948eea2', armv7l: '731c2d136119b6be6ddf66ffea0fbddc653f80cc9ad3a8ed5d51bee7cbf43fec',
i686: '6561010781c6bed14fba8aa260e8f179d47a7bf03d17cf82aef4c788748a6ad3', i686: '68806febf6e69df75274f48e9c88eb0a0025b6a76f2961f0d2b0564bee0c5780',
x86_64: '8e0dc2bb5643b837bea9f6a68c4316c260590e80ed7610a8d389ff655d4823cf', x86_64: '58d94d0e0043a1f234ecf67592cf056115cd5f69afdae83affba5078ad6445c1',
}) })
depends_on 'perl_carp_clan'
depends_on 'perl_date_calc'
depends_on 'perl_date_format'
depends_on 'perl_date_manip'
depends_on 'perl_file_tail'
def self.build def self.build
system 'cpan -i File::Tail' system 'perl', 'Makefile.PL'
system 'cpan -i Date::Calc'
system 'cpan -i Date::Parse'
system 'cpan -i inc::latest'
system 'perl Makefile.PL'
system 'make' system 'make'
end end
def self.check
system 'make', 'test'
end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.mkdir_p CREW_DEST_HOME
system "cat << 'EOF' > #{CREW_DEST_HOME}/.swatchdogrc
watchfor /err/i
echo red
EOF"
end
def self.postinstall
puts
puts "Example: swatchdog -t /var/log/messages".lightblue
puts
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment