aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/intel-sdp.eclass')
-rw-r--r--eclass/intel-sdp.eclass24
1 files changed, 24 insertions, 0 deletions
diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass
index b9826016e..14dba837f 100644
--- a/eclass/intel-sdp.eclass
+++ b/eclass/intel-sdp.eclass
@@ -133,6 +133,14 @@ intel-sdp_pkg_pretend() {
#
# e.g. amd64-multilib -> INTEL_ARCH="intel64 ia32"
+# @ ECLASS-FUNCTION: intel-sdp_pkg_setup
+# @DESCRIPTION:
+# The setup finction serves two purposes:
+#
+# * Check that the user has a (valid) license file before going on.
+#
+# * Setting up and sorting some internal variables
+
intel-sdp_pkg_setup() {
local _warn=1 _dirs i _ret arch a p
_dirs=(
@@ -177,6 +185,10 @@ intel-sdp_pkg_setup() {
esac
}
+# @ ECLASS-FUNCTION: intel-sdp_src_unpack
+# @DESCRIPTION:
+# Unpacking necessary rpms from tarball, extract them and rearrange the output.
+
intel-sdp_src_unpack() {
local l r t rpmdir
debug-print "INTEL_RPMS_DIRS are \"${INTEL_RPMS_DIRS}\""
@@ -224,6 +236,10 @@ intel_link_eclipse_plugins() {
popd > /dev/null
}
+# @ ECLASS-FUNCTION: intel-sdp_src_install
+# @DESCRIPTION:
+# Install everything
+
intel-sdp_src_install() {
if ! use doc && [[ -d "${INTEL_SDP_DIR}"/Documentation ]]; then
ebegin "Cleaning out documentation"
@@ -419,6 +435,10 @@ run-test() {
# Full path to intel registry db
INTEL_SDP_DB="${EROOT%/}"/opt/intel/intel-sdp-products.db
+# @ECLASS-FUNCTION
+# @DESCRIPTION:
+# Add things to intel database
+
intel-sdp_pkg_postinst() {
# add product registry to intel "database"
local l r
@@ -430,6 +450,10 @@ intel-sdp_pkg_postinst() {
run-test
}
+# @ECLASS-FUNCTION
+# @DESCRIPTION:
+# Sanitize intel database
+
intel-sdp_pkg_postrm() {
# remove from intel "database"
if [[ -e ${INTEL_SDP_DB} ]]; then