diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2014-04-04 22:47:17 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2014-04-04 22:47:17 +0200 |
commit | e598272b3e03c173ec395900a107aba078d565c2 (patch) | |
tree | 915fc3d9a47fb5aed02b037e363f1b8efde829b7 | |
parent | app-admin/hp-health: Check for needed kernel modules (diff) | |
download | portage-e598272b3e03c173ec395900a107aba078d565c2.tar.xz |
app-admin/hp-snmp-agents: Check for needed kernel modules
Package-Manager: portage-2.2.10
-rw-r--r-- | app-admin/hp-snmp-agents/ChangeLog | 3 | ||||
-rw-r--r-- | app-admin/hp-snmp-agents/Manifest | 4 | ||||
-rw-r--r-- | app-admin/hp-snmp-agents/hp-snmp-agents-9.50.ebuild | 25 | ||||
-rw-r--r-- | metadata/md5-cache/app-admin/hp-snmp-agents-9.50 | 6 |
4 files changed, 32 insertions, 6 deletions
diff --git a/app-admin/hp-snmp-agents/ChangeLog b/app-admin/hp-snmp-agents/ChangeLog index 3ce82e0c..2e5d3e1f 100644 --- a/app-admin/hp-snmp-agents/ChangeLog +++ b/app-admin/hp-snmp-agents/ChangeLog @@ -1,4 +1,7 @@ 04 Apr 2014; Bertrand Jacquin <beber@meleeweb.net> hp-snmp-agents-9.50.ebuild: + app-admin/hp-snmp-agents: Check for needed kernel modules + + 04 Apr 2014; Bertrand Jacquin <beber@meleeweb.net> hp-snmp-agents-9.50.ebuild: app-admin/hp-snmp-agents: Make executable all shebanged files 04 Apr 2014; Bertrand Jacquin <beber@meleeweb.net> hp-snmp-agents-9.50.ebuild: diff --git a/app-admin/hp-snmp-agents/Manifest b/app-admin/hp-snmp-agents/Manifest index 227ec3ef..cc09f7c4 100644 --- a/app-admin/hp-snmp-agents/Manifest +++ b/app-admin/hp-snmp-agents/Manifest @@ -1,5 +1,5 @@ DIST hp-snmp-agents-9.50-2564.36.rhel6.i686.rpm 937524 SHA256 cd420d5b2862fafa9413aa8ac598eeaf28500619c549499b2f069e4d6ee12c51 WHIRLPOOL 1ccc240b41caaf387fcb86f83572bce2e3286abb3a7b094f4bfc80fa1848be4a54f0adc9466fa2d111d0de8ef773536eff9dfdaad5ad28fcd54f7f44dcadd16d DIST hp-snmp-agents-9.50-2564.40.rhel6.x86_64.rpm 1013640 SHA256 a72a0d4335a356efb3322cbe37b1a5b94eeb4e9304aff9a266892289059a199a WHIRLPOOL 245b75f6cac534c21ec372329ac83473c38980bfcfa659a4ca7540b149f16314b60f2791a008695816b615533f1e2f71dfb73897c197a575bc7926a779884952 -EBUILD hp-snmp-agents-9.50.ebuild 2788 SHA256 9ff73729d65570bee1909a1e287ace92e8f988c44b61c2d35b011f43b431d875 WHIRLPOOL a57f040dcb00f5029490121ed98ed7253003c161bf1286bce1a0cb29881442615fb0c829a31d827474f6b798513a82ef51552b06256680078ee26765e39da658 -MISC ChangeLog 948 SHA256 01d7b7b8782435742935c638a13bd468eef5a1a0eaa7221a7a9a6cbfa81ab7b7 WHIRLPOOL b455fb5b3de8baedd7ca4ef2a75c05a4596aa3f662bd36b656d323d912fa4c892aefd86a7ac918240dff5d91c6fd48f305e2a4687d9cbca3550d59be0ff7822c +EBUILD hp-snmp-agents-9.50.ebuild 3373 SHA256 d6b6440022b3d3483db0d003c56518d76cacd4e186996ba0bf191088794cde81 WHIRLPOOL a9c143bed95862042dead4a2c337318aa1316dd8270ced6421ffe80fcca837dd9494ff091f606af5c2f346daed29f06fb67f66f2e784d2ae9023dd1606ab58ce +MISC ChangeLog 1090 SHA256 370e8307c8cb85d122952661f22045b555f2bdd0175efefc1e6e1537268f13cc WHIRLPOOL f254f7219292a783c49b1809a77ef6306d2b31d9e8b01b53710c52c908e60465867c311898176536367650237e79a455f2abdfe2e93ec6b4701662918921901e MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae diff --git a/app-admin/hp-snmp-agents/hp-snmp-agents-9.50.ebuild b/app-admin/hp-snmp-agents/hp-snmp-agents-9.50.ebuild index 3ade49b3..b4e9b6cf 100644 --- a/app-admin/hp-snmp-agents/hp-snmp-agents-9.50.ebuild +++ b/app-admin/hp-snmp-agents/hp-snmp-agents-9.50.ebuild @@ -3,7 +3,7 @@ # $Header: $ EAPI=5 -inherit eutils toolchain-funcs rpm +inherit eutils linux-info toolchain-funcs rpm DESCRIPTION="HP System SNMP agents" HOMEPAGE="http://h18000.www1.hp.com/products/servers/linux/documentation.html" @@ -30,8 +30,31 @@ QA_PREBUILT="opt/hp/${PN}/*/bin/* opt/hp/${PN}/webagent/* usr/lib*/lib*" +KERNEL_MODULE_CHECK="CONFIG_CHR_DEV_SG" + S="${WORKDIR}" +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_install() { insinto /etc doins etc/*.conf diff --git a/metadata/md5-cache/app-admin/hp-snmp-agents-9.50 b/metadata/md5-cache/app-admin/hp-snmp-agents-9.50 index a9b97e49..6e4f79d5 100644 --- a/metadata/md5-cache/app-admin/hp-snmp-agents-9.50 +++ b/metadata/md5-cache/app-admin/hp-snmp-agents-9.50 @@ -1,4 +1,4 @@ -DEFINED_PHASES=install unpack +DEFINED_PHASES=install setup unpack DEPEND=virtual/awk >=app-arch/rpm2targz-9.0.0.3g DESCRIPTION=HP System SNMP agents EAPI=5 @@ -9,5 +9,5 @@ RDEPEND=virtual/awk app-admin/hp-health dev-libs/openssl:0 net-analyzer/net-snmp RESTRICT=mirror SLOT=0 SRC_URI=x86? ( http://downloads.linux.hp.com/downloads/SPP/RedHatEnterpriseServer/6.5/i686/current/hp-snmp-agents-9.50-2564.36.rhel6.i686.rpm ) amd64? ( http://downloads.linux.hp.com/downloads/SPP/RedHatEnterpriseServer/6.5/x86_64/current/hp-snmp-agents-9.50-2564.40.rhel6.x86_64.rpm ) -_eclasses_=eutils af81d52c25ec93fbdff71e0efb0de7b7 multilib fac675dcccf94392371a6abee62d909f rpm b94b54b44f14d6bee3e966c8f5c86fba toolchain-funcs 48b38a216afb92db6314d6c3187abea3 -_md5_=85edf8dbae53d7be0a38cd4e098e5d35 +_eclasses_=eutils af81d52c25ec93fbdff71e0efb0de7b7 linux-info 90944ede7e9761bd7ef07602acdef9e3 multilib fac675dcccf94392371a6abee62d909f rpm b94b54b44f14d6bee3e966c8f5c86fba toolchain-funcs 48b38a216afb92db6314d6c3187abea3 versionator a8a3963967d6140be9a14b08bb8f047f +_md5_=dbf19f6e39e75009553ea7d8c3d5c9a8 |