diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2014-04-04 22:44:54 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2014-04-04 22:44:54 +0200 |
commit | 52dac348441fc8a8aba1c07fcd7fbc14ec608245 (patch) | |
tree | e1fcca053aab0acda08c1337625982138f523c26 /app-admin/hp-health | |
parent | profiles/server: KEYWORD galera stuff (diff) | |
download | portage-52dac348441fc8a8aba1c07fcd7fbc14ec608245.tar.xz |
app-admin/hp-health: Check for needed kernel modules
Package-Manager: portage-2.2.10
Diffstat (limited to 'app-admin/hp-health')
-rw-r--r-- | app-admin/hp-health/ChangeLog | 3 | ||||
-rw-r--r-- | app-admin/hp-health/Manifest | 4 | ||||
-rw-r--r-- | app-admin/hp-health/hp-health-9.50.ebuild | 27 |
3 files changed, 31 insertions, 3 deletions
diff --git a/app-admin/hp-health/ChangeLog b/app-admin/hp-health/ChangeLog index f306696f..c4afde2b 100644 --- a/app-admin/hp-health/ChangeLog +++ b/app-admin/hp-health/ChangeLog @@ -1,4 +1,7 @@ 04 Apr 2014; Bertrand Jacquin <beber@meleeweb.net> hp-health-9.50.ebuild: + app-admin/hp-health: Check for needed kernel modules + + 04 Apr 2014; Bertrand Jacquin <beber@meleeweb.net> hp-health-9.50.ebuild: app-admin/hp-health: Make executable all shebanged files 04 Apr 2014; Bertrand Jacquin <beber@meleeweb.net> diff --git a/app-admin/hp-health/Manifest b/app-admin/hp-health/Manifest index 6ae04c95..38ab6926 100644 --- a/app-admin/hp-health/Manifest +++ b/app-admin/hp-health/Manifest @@ -1,6 +1,6 @@ AUX 9.50-initd-module-comp.patch 1080 SHA256 c8f64f82ee9bd498076740c416fbde1cf588a60c4e89c1559e74b16322d8295e WHIRLPOOL fbfbd6ad5fae08869f838bb1a4c555a2694446808b06baa538d3bf5b55a0f4889a5b2fd451f7ff0ea1914d871bf73689826cff13aee2b45841094cdce269d79b DIST hp-health-9.50-1628.32.rhel6.x86_64.rpm 328532 SHA256 8dc1247dded64d620d72b02384997d3e6bf582233fa766ee9bd35c7ef17ecaed WHIRLPOOL a14ab562e22fbbdb3415ec595151001559e8ddf43f90d93bfd90eda40ace80a299b56622226199120192036db9d506174fa1bc2ede544e28f1cdf79b18e73de8 DIST hp-health-9.50-1628.33.rhel6.i686.rpm 408816 SHA256 7ee31c9843e5e8b06d42143c5b5f167fef5c62e5f22b759bd2da7caf84ce48ca WHIRLPOOL 7207ba5af89b211b06e505f5334607c20792d8fac844c33e018bbf12054096612f9c60232a7629acf951b780fa2c19e457e5e6a410b1bf277c1b7d0449439ef3 -EBUILD hp-health-9.50.ebuild 2433 SHA256 f7b78913810964c6ee2fb06d6ccdae919c6e937f4e7f9dc63b5ad2514a38a58f WHIRLPOOL 0e74cde2d1133cd3d1ac1ad96052f7bad4c620411b1d3920dae392df3368c4cac4eec7d035ea5c8919b87624902d5debcd957f112c827bf1b77975e506aa1010 -MISC ChangeLog 853 SHA256 8c049506f9f883503e3c08986f71718806cfcd426bfe5c1d7bc3ec6d7be22e1c WHIRLPOOL 321df3d56fcfa4c8f6499f01998c1e53f7e2d1b5ae82b3662a36a1ff7876105755051562eb18e4f0e08bd233e0a0fe37472161d4bb6088c311d238dad9260aac +EBUILD hp-health-9.50.ebuild 3061 SHA256 5e594ca89248dbc88892485cd2ff6448a79e339fbd7eac7c67627625e9585588 WHIRLPOOL dfa6f59ba380b8d4c811e53b94193079ac89ae6c2aa109fad762600fc0a7213a210f878c3d03dfa8b1f29bd08e117ba5c2537cbf910f141bac3d8554ef24af81 +MISC ChangeLog 985 SHA256 149995e9a806899ccb3b35be6114dc1e54ea9357e90b773dfe05084362a3984f WHIRLPOOL ce2612e86de99c072dea10dc144db58989b573f71adfef8e21f8b6e757bedd54e172a327049751b2591317eb12c0ee06a9e1f9be6c8a3aa9ff0514b8f66c5e9f MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae diff --git a/app-admin/hp-health/hp-health-9.50.ebuild b/app-admin/hp-health/hp-health-9.50.ebuild index 3351b2d6..b3f2659d 100644 --- a/app-admin/hp-health/hp-health-9.50.ebuild +++ b/app-admin/hp-health/hp-health-9.50.ebuild @@ -3,7 +3,7 @@ # $Header: $ EAPI=5 -inherit eutils multilib-minimal rpm +inherit eutils linux-info multilib-minimal rpm x86_VER="1628.33" amd64_VER="1628.32" @@ -33,10 +33,35 @@ QA_PREBUILT="opt/hp/${PN}/bin/* usr/lib*/lib* sbin/*" +KERNEL_MODULE_CHECK=" + CONFIG_IPMI_SI CONFIG_IPMI_DEVICE_INTERFACE + CONFIG_HP_ILO" + S="${WORKDIR}" x86_S="${S}/build-x86" amd64_S="${S}/build-amd64" +pkg_setup() { + if ! linux_config_exists ; then + ewarn "Unable to check for the following kernel config options due" + ewarn "to absence of any configured kernel sources or compiled" + ewarn "config:" + + for config in ${KERNEL_MODULE_CHECK}; do + ewarn " ${config}=m" + done + + ewarn "You're on your own to make sure they are set if needed." + return 0 + fi + + for config in ${KERNEL_MODULE_CHECK} ; do + if ! linux_chkconfig_module "${config}" ; then + ewarn "Kernel is missing ${config}=m for ${PN} to properly work" + fi + done +} + src_unpack() { if use abi_x86_32 ; then mkdir "${x86_S}" |