#!/usr/bin/make -f # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # -*- makefile -*- # Uncomment this to turn on verbose mode. 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 hbase_jar_deps=${hadoop_home}/hadoop-core.jar ${zookeeper_home}/zookeeper.jar patch: patch-stamp patch-stamp: touch $@ clean: dh_testdir dh_testroot rm -f *-stamp dh_clean find debian -name .\*swp -exec rm -f {} \; build: dh_testdir bash debian/do-component-build -Dmaven.repo.local=${HOME}/.m2/repository install: build dh_testdir dh_testroot dh_clean -k dh_installdirs cp debian/hbase.default debian/${hbase_pkg_name}/etc/default/${hbase_pkg_name} sh -x debian/install_hbase.sh \ --build-dir=. \ --conf-dir=/etc/hbase/conf.dist \ --doc-dir=usr/share/doc/${hbase_pkg_name}-doc \ --prefix=debian/tmp mkdir -p debian/tmp/etc/security/limits.d 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/hadoop-* rm -f debian/tmp/usr/lib/zookeeper-* ln -f -s ${hbase_jar_deps} 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 # Wage war on "executable-not-elf-or-script" warnings: ### ruby scripts should not be executable - they require ### hbase org.jruby.Main