aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/deb/hbase
diff options
context:
space:
mode:
authorrvs <rvs@13f79535-47bb-0310-9956-ffa450edef68>2012-10-22 15:21:40 +0000
committerRoman Shaposhnik <rvs@cloudera.com>2012-11-02 08:39:24 -0700
commita3bc72115e21b3708f3202de2b29ce946d63f17a (patch)
tree18631c9cfdf250d294645fec1479fc9a01afeab0 /bigtop-packages/src/deb/hbase
parenta893c8ec296d262a8dbdf444063fd9d528a0177a (diff)
BIGTOP-713. use newer debhelper and source format 3.0 (quilt) for Debian and Ubuntu packaging (James Page, Sean Mackrory, Anatoli Fomenko via rvs)
git-svn-id: https://svn.apache.org/repos/asf/bigtop/trunk@1400914 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bigtop-packages/src/deb/hbase')
-rw-r--r--bigtop-packages/src/deb/hbase/compat2
-rw-r--r--bigtop-packages/src/deb/hbase/control2
-rwxr-xr-xbigtop-packages/src/deb/hbase/rules58
-rw-r--r--bigtop-packages/src/deb/hbase/source/format1
4 files changed, 7 insertions, 56 deletions
diff --git a/bigtop-packages/src/deb/hbase/compat b/bigtop-packages/src/deb/hbase/compat
index 1e8b3149..7f8f011e 100644
--- a/bigtop-packages/src/deb/hbase/compat
+++ b/bigtop-packages/src/deb/hbase/compat
@@ -1 +1 @@
-6
+7
diff --git a/bigtop-packages/src/deb/hbase/control b/bigtop-packages/src/deb/hbase/control
index efa9a42f..e9668c85 100644
--- a/bigtop-packages/src/deb/hbase/control
+++ b/bigtop-packages/src/deb/hbase/control
@@ -16,7 +16,7 @@ Source: hbase
Section: misc
Priority: extra
Maintainer: Bigtop <bigtop-dev@incubator.apache.org>
-Build-Depends: debhelper (>= 6), git-core, adduser
+Build-Depends: debhelper (>= 7.0.50~), git-core, adduser
Standards-Version: 3.8.0
Homepage: http://hbase.apache.org/
diff --git a/bigtop-packages/src/deb/hbase/rules b/bigtop-packages/src/deb/hbase/rules
index 4c74b156..9a6ddc8a 100755
--- a/bigtop-packages/src/deb/hbase/rules
+++ b/bigtop-packages/src/deb/hbase/rules
@@ -24,32 +24,17 @@ export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
-hadoop_home=/usr/lib/hadoop
zookeeper_home=/usr/lib/zookeeper
hbase_pkg_name=hbase
-patch: patch-stamp
-patch-stamp:
- touch $@
+%:
+ dh $@
-clean:
- dh_testdir
- dh_testroot
- rm -f *-stamp
- dh_clean
- find debian -name .\*swp -exec rm -f {} \;
-
-build: patch
- dh_testdir
+override_dh_auto_build:
bash debian/do-component-build -Dmaven.repo.local=${HOME}/.m2/repository
- touch $@
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
+override_dh_auto_install:
cp debian/hbase.default debian/${hbase_pkg_name}/etc/default/${hbase_pkg_name}
sh -x debian/install_hbase.sh \
--build-dir=build \
@@ -71,39 +56,4 @@ install: build
find debian/tmp/usr/lib/${hbase_pkg_name}/bin debian/tmp/usr/lib/${hbase_pkg_name}/lib -name \*.rb -exec chmod 644 {} \;
### webapps should not be executable either
find debian/tmp/usr/lib/${hbase_pkg_name}/hbase-webapps -type f -exec chmod 644 {} \;
-
- (dh_lintian) || /bin/true
-
- touch $@
-
-install-indep:
- dh_install --sourcedir=debian/tmp
sh debian/install_init_scripts.sh
-
-binary-common:
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installman
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_makeshlibs
- dh_installinit --onlyscripts
- # dh_installinit has a bug whereby it makes preinst/postinst files
- # even for subpackages that don't have an init script!
- rm -f debian/${hbase_pkg_name}-doc*debhelper debian/${hbase_pkg_name}.*debhelper || :
-
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary-indep: build install install-indep
- $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-binary: binary-indep
-.PHONY: clean build binary-indep binary install configure
diff --git a/bigtop-packages/src/deb/hbase/source/format b/bigtop-packages/src/deb/hbase/source/format
new file mode 100644
index 00000000..163aaf8d
--- /dev/null
+++ b/bigtop-packages/src/deb/hbase/source/format
@@ -0,0 +1 @@
+3.0 (quilt)