#!/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 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/hadoop-hbase/etc/default/hbase sh -x debian/install_hbase.sh \ --build-dir=. \ --doc-dir=usr/share/doc/hadoop-hbase-doc \ --prefix=debian/tmp mkdir -p debian/tmp/etc/security/limits.d cp debian/hbase.nofiles.conf debian/tmp/etc/security/limits.d # Symlink in the dependency jars from their packages. Both of these packages # provide an unversioned symlink foo.jar -> foo-0.1.2.jar. rm debian/tmp/usr/lib/hbase/lib/zookeeper-*.jar rm debian/tmp/usr/lib/hbase/lib/hadoop-*.jar ln -s /usr/lib/zookeeper/zookeeper.jar debian/tmp/usr/lib/hbase/lib/zookeeper.jar ln -s /usr/lib/hadoop/hadoop-core.jar debian/tmp/usr/lib/hbase/lib/hadoop-core.jar ln -s /var/log/hbase debian/tmp/usr/lib/hbase/logs ln -s /var/run/hbase debian/tmp/usr/lib/hbase/pids # Wage war on "executable-not-elf-or-script" warnings: ### ruby scripts should not be executable - they require ### hbase org.jruby.Main