diff options
author | Sean Mackrory <mackrorysd@apache.org> | 2013-11-01 14:55:41 -0700 |
---|---|---|
committer | Sean Mackrory <mackrorysd@apache.org> | 2013-11-01 14:55:41 -0700 |
commit | ddae974d32bdcdff1ad90689f2fce62a96c6edac (patch) | |
tree | 3d1e44b14292defb10a48dfe94bd2f2ba8d7c14f /bigtop-packages | |
parent | cb8a5a1d6078f0541d9fa21b329df1732439811e (diff) |
BIGTOP-1092. Adding Hue documentation package
Diffstat (limited to 'bigtop-packages')
-rw-r--r-- | bigtop-packages/src/common/hue/do-component-build | 4 | ||||
-rw-r--r-- | bigtop-packages/src/common/hue/install_hue.sh | 4 | ||||
-rw-r--r-- | bigtop-packages/src/deb/hue/control | 5 | ||||
-rw-r--r-- | bigtop-packages/src/deb/hue/hue-doc.install | 1 | ||||
-rw-r--r-- | bigtop-packages/src/rpm/hue/SPECS/hue.spec | 11 |
5 files changed, 24 insertions, 1 deletions
diff --git a/bigtop-packages/src/common/hue/do-component-build b/bigtop-packages/src/common/hue/do-component-build index 6c13e5f1..659b4035 100644 --- a/bigtop-packages/src/common/hue/do-component-build +++ b/bigtop-packages/src/common/hue/do-component-build @@ -19,7 +19,9 @@ set -ex #FIXME: this needs to be fixed upstream sed -i -e "s#${FULL_VERSION}-SNAPSHOT#${FULL_VERSION}#g" `grep -lR ${FULL_VERSION}-SNAPSHOT .` -make MAVEN_VERSION='$(DESKTOP_VERSION)' apps +make MAVEN_VERSION='$(DESKTOP_VERSION)' apps docs +# Workaround for https://issues.cloudera.org/browse/HUE-1603 +rename .md .html build/docs/user-guide/*.md # Make the entire tree relocatable bash tools/relocatable.sh diff --git a/bigtop-packages/src/common/hue/install_hue.sh b/bigtop-packages/src/common/hue/install_hue.sh index ab8c4455..7dbc3a20 100644 --- a/bigtop-packages/src/common/hue/install_hue.sh +++ b/bigtop-packages/src/common/hue/install_hue.sh @@ -90,6 +90,7 @@ done PREFIX=`echo $PREFIX | sed -e 's#/*$##'` BUILD_DIR=`echo $BUILD_DIR | sed -e 's#/*$##'` +DOC_DIR=${DOC_DIR:-/usr/share/doc/hue} CONF_DIR=${CONF_DIR:-/etc/hue} LIB_DIR=${LIB_DIR:-/usr/lib/hue} VAR_DIR=${VAR_DIR:-/var/lib/hue} @@ -182,6 +183,9 @@ done # Remove bogus files rm -fv `find $PREFIX -iname "build_log.txt"` +install -d ${PREFIX}/${DOC_DIR} +cp -r ${BUILD_DIR}/build/docs/* ${PREFIX}/${DOC_DIR}/ + # FXIME: for Hue 3.0 the following section would need to go away (hence it is kept at the bottom) # Move desktop.db to a var location diff --git a/bigtop-packages/src/deb/hue/control b/bigtop-packages/src/deb/hue/control index 20edf6a4..d66ba650 100644 --- a/bigtop-packages/src/deb/hue/control +++ b/bigtop-packages/src/deb/hue/control @@ -42,6 +42,11 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, hue-common (= ${source:Version}) Description: Service Scripts for Hue This package provides the service scripts for Hue server. +Package: hue-doc +Architecture: all +Description: Documentation for Hue + This package provides the installation manual, user guide, SDK documentation, and release notes. + Package: hue-beeswax Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.4), python (<< 3), make (>= 3.8), hue-common (= ${source:Version}), hive diff --git a/bigtop-packages/src/deb/hue/hue-doc.install b/bigtop-packages/src/deb/hue/hue-doc.install new file mode 100644 index 00000000..74eab932 --- /dev/null +++ b/bigtop-packages/src/deb/hue/hue-doc.install @@ -0,0 +1 @@ +/usr/share/doc/hue diff --git a/bigtop-packages/src/rpm/hue/SPECS/hue.spec b/bigtop-packages/src/rpm/hue/SPECS/hue.spec index 6b9aab60..8f150ee6 100644 --- a/bigtop-packages/src/rpm/hue/SPECS/hue.spec +++ b/bigtop-packages/src/rpm/hue/SPECS/hue.spec @@ -307,6 +307,17 @@ This package provides the service scripts for Hue server. %post -n %{name}-server /sbin/chkconfig --add hue +# Documentation +%package -n %{name}-doc +Summary: Documentation for Hue +Group: Documentation + +%description -n %{name}-doc +This package provides the installation manual, user guide, SDK documentation, and release notes. + +%files -n %{name}-doc +%attr(0755,root,root) /usr/share/doc/hue + ######################################## # Pre-uninstall ######################################## |