aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/deb/hbase
diff options
context:
space:
mode:
authorRoman Shaposhnik <rvs@apache.org>2012-04-25 17:45:22 +0000
committerRoman Shaposhnik <rvs@apache.org>2012-04-25 17:45:22 +0000
commit38cdae8973ff9b80f64215b8d77164952abd51a2 (patch)
treeefafbca9c4b737d9c7e8bd39031801f2b1f403e0 /bigtop-packages/src/deb/hbase
parent8a579e7bcdfc083f2e23ffd0e29d88f646c3d826 (diff)
BIGTOP-561. HBase packaging has dangling symlinks
git-svn-id: https://svn.apache.org/repos/asf/incubator/bigtop/trunk@1330439 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bigtop-packages/src/deb/hbase')
-rwxr-xr-xbigtop-packages/src/deb/hbase/rules8
1 files changed, 4 insertions, 4 deletions
diff --git a/bigtop-packages/src/deb/hbase/rules b/bigtop-packages/src/deb/hbase/rules
index 93eb5888..0688994f 100755
--- a/bigtop-packages/src/deb/hbase/rules
+++ b/bigtop-packages/src/deb/hbase/rules
@@ -27,7 +27,6 @@ export DH_OPTIONS
hadoop_home=/usr/lib/hadoop
zookeeper_home=/usr/lib/zookeeper
hbase_pkg_name=hbase
-hbase_jar_deps_hadoop=hadoop-annotations,hadoop-auth,hadoop-common,hadoop-hdfs,hadoop-mapreduce-client-common,hadoop-mapreduce-client-core,hadoop-yarn-api,hadoop-yarn-common
patch: patch-stamp
patch-stamp:
@@ -43,6 +42,7 @@ clean:
build: patch
dh_testdir
bash debian/do-component-build -Dmaven.repo.local=${HOME}/.m2/repository
+ touch $@
install: build
@@ -52,7 +52,7 @@ install: build
dh_installdirs
cp debian/hbase.default debian/${hbase_pkg_name}/etc/default/${hbase_pkg_name}
sh -x debian/install_hbase.sh \
- --build-dir=. \
+ --build-dir=build \
--conf-dir=/etc/hbase/conf.dist \
--doc-dir=usr/share/doc/${hbase_pkg_name}-doc \
--prefix=debian/tmp
@@ -60,8 +60,8 @@ install: build
cp debian/hbase.nofiles.conf debian/tmp/etc/security/limits.d/${hbase_pkg_name}.nofiles.conf
# Symlink in the dependency jars from their packages. Both of these packages
# provide an unversioned symlink foo.jar -> foo-0.1.2.jar.
- rm -f debian/tmp/usr/lib/${hbase_pkg_name}/lib/{${hbase_jar_deps_hadoop},zookeeper}*.jar
- ln -f -s ${hadoop_home}/{${hbase_jar_deps_hadoop}}.jar ${zookeeper_home}/zookeeper.jar debian/tmp/usr/lib/${hbase_pkg_name}/lib/
+ rm -f debian/tmp/usr/lib/${hbase_pkg_name}/lib/{hadoop,zookeeper}*.jar
+ ln -f -s ${zookeeper_home}/zookeeper.jar debian/tmp/usr/lib/${hbase_pkg_name}/lib/
ln -s /var/log/${hbase_pkg_name} debian/tmp/usr/lib/${hbase_pkg_name}/logs
ln -s /var/run/${hbase_pkg_name} debian/tmp/usr/lib/${hbase_pkg_name}/pids