[Pkg-samba-maint] r1691 - in trunk/ctdb: . debian
mparent-guest at alioth.debian.org
mparent-guest at alioth.debian.org
Sat Jan 19 16:51:17 UTC 2008
Author: mparent-guest
Date: 2008-01-19 16:51:17 +0000 (Sat, 19 Jan 2008)
New Revision: 1691
Added:
trunk/ctdb/debian/
trunk/ctdb/debian/README.Debian
trunk/ctdb/debian/changelog
trunk/ctdb/debian/compat
trunk/ctdb/debian/control
trunk/ctdb/debian/copyright
trunk/ctdb/debian/ctdb.TODO
trunk/ctdb/debian/ctdb.init
trunk/ctdb/debian/ctdb.postinst
trunk/ctdb/debian/ctdb.postinst.debhelper
trunk/ctdb/debian/ctdb.postrm
trunk/ctdb/debian/ctdb.postrm.debhelper
trunk/ctdb/debian/ctdb.preinst
trunk/ctdb/debian/ctdb.prerm
trunk/ctdb/debian/ctdb.prerm.debhelper
trunk/ctdb/debian/rules
Log:
First version. Almost working
Added: trunk/ctdb/debian/README.Debian
===================================================================
--- trunk/ctdb/debian/README.Debian (rev 0)
+++ trunk/ctdb/debian/README.Debian 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,13 @@
+ctdb for Debian
+---------------
+
+For more information, see the man pages.
+
+Upstream site is : http://ctdb.samba.org/
+
+To install ctdb, follow upstream documentation, beginning with ''Configuring CTDB''
+
+Note that you should replace ''onnode all service ctdb start'' by the Debian-way
+''onnode all invoke-rc.d ctdb start''
+
+ -- Mathieu PARENT <math.parent at gmail.com> Tue, 15 Jan 2008 23:43:47 +0100
Added: trunk/ctdb/debian/changelog
===================================================================
--- trunk/ctdb/debian/changelog (rev 0)
+++ trunk/ctdb/debian/changelog 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,6 @@
+ctdb (0.0.0.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #460114)
+
+ -- Mathieu PARENT <math.parent at gmail.com> Tue, 15 Jan 2008 23:16:44 +0100
+
Added: trunk/ctdb/debian/compat
===================================================================
--- trunk/ctdb/debian/compat (rev 0)
+++ trunk/ctdb/debian/compat 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1 @@
+5
Added: trunk/ctdb/debian/control
===================================================================
--- trunk/ctdb/debian/control (rev 0)
+++ trunk/ctdb/debian/control 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,17 @@
+Source: ctdb
+Section: net
+Priority: optional
+Maintainer: Mathieu PARENT <math.parent at gmail.com>
+Build-Depends: debhelper (>= 5)
+Homepage: http://ctdb.samba.org/
+Standards-Version: 3.7.3
+XS-DM-Upload-Allowed: yes
+Vcs-Svn: svn://svn.debian.org/pkg-samba/trunk/ctdb
+
+Package: ctdb
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, lsof, ethtool
+Suggests: samba | vsftpd | nfs | nfs-kernel-server
+Description: Clustered TDB
+ CTDB is a cluster implementation of the TDB database used by Samba and other
+ projects to store temporary data.
Added: trunk/ctdb/debian/copyright
===================================================================
--- trunk/ctdb/debian/copyright (rev 0)
+++ trunk/ctdb/debian/copyright 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,37 @@
+This package was debianized by Mathieu PARENT <math.parent at gmail.com> on
+Tue, 15 Jan 2008 23:43:47 +0100.
+
+It was downloaded from <http://ctdb.samba.org/>
+
+Upstream Authors:
+ Andrew Tridgell
+ Ronnie Sahlberg
+ Peter Somogyi
+ Volker Lendecke
+
+Copyright:
+ Copyright (C) Andrew Tridgell 2007
+ Copyright (C) Ronnie sahlberg 2007
+
+
+License:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, see http://www.gnu.org/licenses/.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2008, Mathieu PARENT <math.parent at gmail.com> and
+is licensed under the GPL version 3 or (at your option) any later version,
+see `/usr/share/common-licenses/GPL'.
Added: trunk/ctdb/debian/ctdb.TODO
===================================================================
--- trunk/ctdb/debian/ctdb.TODO (rev 0)
+++ trunk/ctdb/debian/ctdb.TODO 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,9 @@
+* patch file and directory path in ctdb_diagnostics
+* missing man pages (report upstream)
+W: ctdb: binary-without-manpage usr/bin/ctdb_diagnostics
+W: ctdb: binary-without-manpage usr/bin/ctdb_ipmux
+W: ctdb: binary-without-manpage usr/bin/onnode.rsh
+W: ctdb: binary-without-manpage usr/bin/onnode.ssh
+W: ctdb: binary-without-manpage usr/bin/smnotify
+* /etc/ctdb/events.d/README should not be executable (report upstream)
+W: ctdb: executable-not-elf-or-script ./etc/ctdb/events.d/README
\ No newline at end of file
Added: trunk/ctdb/debian/ctdb.init
===================================================================
--- trunk/ctdb/debian/ctdb.init (rev 0)
+++ trunk/ctdb/debian/ctdb.init 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,220 @@
+#!/bin/sh
+#
+# based on the ''Example init.d script with LSB support.''
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs at debian.org>
+#
+# This is free software; you may redistribute it and/or modify
+# it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2,
+# or (at your option) any later version.
+#
+# This is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License with
+# the Debian operating system, in /usr/share/common-licenses/GPL; if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides: ctdb
+# Required-Start: $network $local_fs $remote_fs
+# Required-Stop: $network $local_fs $remote_fs
+# Should-Start:
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: start ctdb daemon
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/sbin/ctdbd # Introduce the server's location here
+NAME=ctdb # Introduce the short server's name here
+DESC="Clustered TDB" # Introduce a short description here
+LOGDIR=/var/log/ctdb # Log directory to use
+
+
+test -x $DAEMON || exit 0
+test -x $DAEMON_WRAPPER || exit 0
+
+. /lib/lsb/init-functions
+
+[ -z "$CTDB_BASE" ] && {
+ export CTDB_BASE="/etc/ctdb"
+}
+
+. $CTDB_BASE/functions
+
+# Default options, these can be overriden by the information
+# at /etc/default/$NAME
+CTDB_OPTIONS="" # Additional options given to the server
+
+LOGFILE=$LOGDIR/$NAME.log # Server logfile
+#DAEMONUSER=ctdb # Users to run the daemons as. If this value
+ # is set start-stop-daemon will chuid the server
+
+# Include defaults if available
+if [ -f /etc/default/$NAME ] ; then
+ . /etc/default/$NAME
+fi
+
+[ -z "$CTDB_RECOVERY_LOCK" ] && {
+ echo "You must configure the location of the CTDB_RECOVERY_LOCK"
+ exit 1
+}
+CTDB_OPTIONS="$CTDB_OPTIONS --reclock=$CTDB_RECOVERY_LOCK"
+
+# build up CTDB_OPTIONS variable from optional parameters
+[ -z "$CTDB_LOGFILE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --logfile=$CTDB_LOGFILE"
+[ -z "$CTDB_NODES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --nlist=$CTDB_NODES"
+[ -z "$CTDB_SOCKET" ] || CTDB_OPTIONS="$CTDB_OPTIONS --socket=$CTDB_SOCKET"
+[ -z "$CTDB_PUBLIC_ADDRESSES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-addresses=$CTDB_PUBLIC_ADDRESSES"
+[ -z "$CTDB_PUBLIC_INTERFACE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-interface=$CTDB_PUBLIC_INTERFACE"
+[ -z "$CTDB_SINGLE_PUBLIC_IP" ] || CTDB_OPTIONS="$CTDB_OPTIONS --single-public-ip=$CTDB_SINGLE_PUBLIC_IP"
+[ -z "$CTDB_DBDIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir=$CTDB_DBDIR"
+[ -z "$CTDB_DBDIR_PERSISTENT" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir-persistent=$CTDB_DBDIR_PERSISTENT"
+[ -z "$CTDB_EVENT_SCRIPT_DIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --event-script-dir $CTDB_EVENT_SCRIPT_DIR"
+[ -z "$CTDB_TRANSPORT" ] || CTDB_OPTIONS="$CTDB_OPTIONS --transport $CTDB_TRANSPORT"
+[ -z "$CTDB_DEBUGLEVEL" ] || CTDB_OPTIONS="$CTDB_OPTIONS -d $CTDB_DEBUGLEVEL"
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+ if getent passwd | grep -q "^$DAEMONUSER:"; then
+ # Obtain the uid and gid
+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+ else
+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+ exit 1
+ fi
+fi
+
+
+set -e
+
+running() {
+ ps -e | awk '{print $4}' | grep "^ctdbd$" > /dev/null && return 0
+ return 1
+}
+
+start_server() {
+# Start the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ start-stop-daemon --start --quiet --background \
+ --exec $DAEMON -- $CTDB_OPTIONS
+ errcode=$?
+ else
+# if we are using a daemonuser then change the user id
+ start-stop-daemon --start --quiet --background \
+ --chuid $DAEMONUSER \
+ --exec $DAEMON -- $CTDB_OPTIONS
+ errcode=$?
+ fi
+ sleep 1
+ # set any tunables from the config file
+ set | grep ^CTDB_SET_ | cut -d_ -f3- |
+ while read v; do
+ varname=`echo $v | cut -d= -f1`
+ value=`echo $v | cut -d= -f2`
+ ctdb setvar $varname $value || errcode=1
+ done || exit 1
+ return $errcode
+}
+
+stop_server() {
+# Stop the process using the wrapper
+ ctdb shutdown
+ errcode=$?
+ if [ -z "$DAEMONUSER" ] ; then
+ start-stop-daemon --stop --quiet \
+ --exec $DAEMON
+ errcode=$?
+ else
+# if we are using a daemonuser then look for process that match
+ start-stop-daemon --stop --quiet \
+ --user $DAEMONUSER \
+ --exec $DAEMON
+ errcode=$?
+ fi
+ count=0
+ while killall -q -0 ctdbd; do
+ sleep 1
+ count=`expr $count + 1`
+ [ $count -gt 10 ] && {
+ echo -n $"killing ctdbd "
+ killall -q -9 ctdbd
+ pkill -9 -f $CTDB_BASE/events.d/
+ }
+ done
+
+ return $errcode
+}
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC " "$NAME"
+ # Check if it's running first
+ if running ; then
+ log_progress_msg "already running"
+ log_end_msg 0
+ exit 0
+ fi
+ if start_server && running ; then
+ # It's ok, the server started and is running
+ log_end_msg 0
+ else
+ # Either we could not start it or it is not running
+ # after we did
+ # NOTE: Some servers might die some time after they start,
+ # this code does not try to detect this and might give
+ # a false positive (use 'status' for that)
+ log_end_msg 1
+ fi
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ if running ; then
+ # Only stop the server if we see it running
+ stop_server
+ log_end_msg $?
+ else
+ # If it's not running don't do anything
+ log_progress_msg "not running"
+ log_end_msg 0
+ exit 0
+ fi
+ ;;
+ restart|force-reload)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ running && stop_server
+ start_server
+ running
+ log_end_msg $?
+ ;;
+ status)
+
+ log_daemon_msg "Checking status of $DESC" "$NAME"
+ if running ; then
+ log_progress_msg "running"
+ echo
+ ctdb status
+ log_end_msg 0
+ else
+ log_progress_msg "not running"
+ log_end_msg 0
+ exit 3
+ fi
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Added: trunk/ctdb/debian/ctdb.postinst
===================================================================
--- trunk/ctdb/debian/ctdb.postinst (rev 0)
+++ trunk/ctdb/debian/ctdb.postinst 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for ctdb
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Added: trunk/ctdb/debian/ctdb.postinst.debhelper
===================================================================
--- trunk/ctdb/debian/ctdb.postinst.debhelper (rev 0)
+++ trunk/ctdb/debian/ctdb.postinst.debhelper 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,20 @@
+# Automatically added by dh_installinit
+if [ -x "/etc/init.d/ctdb" ]; then
+ update-rc.d ctdb defaults >/dev/null
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d ctdb start || exit $?
+ else
+ /etc/init.d/ctdb start || exit $?
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installinit
+if [ -x "/etc/init.d/ctdb" ]; then
+ update-rc.d ctdb defaults >/dev/null
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d ctdb start || exit $?
+ else
+ /etc/init.d/ctdb start || exit $?
+ fi
+fi
+# End automatically added section
Added: trunk/ctdb/debian/ctdb.postrm
===================================================================
--- trunk/ctdb/debian/ctdb.postrm (rev 0)
+++ trunk/ctdb/debian/ctdb.postrm 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for ctdb
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Added: trunk/ctdb/debian/ctdb.postrm.debhelper
===================================================================
--- trunk/ctdb/debian/ctdb.postrm.debhelper (rev 0)
+++ trunk/ctdb/debian/ctdb.postrm.debhelper 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,10 @@
+# Automatically added by dh_installinit
+if [ "$1" = "purge" ] ; then
+ update-rc.d ctdb remove >/dev/null || exit $?
+fi
+# End automatically added section
+# Automatically added by dh_installinit
+if [ "$1" = "purge" ] ; then
+ update-rc.d ctdb remove >/dev/null || exit $?
+fi
+# End automatically added section
Added: trunk/ctdb/debian/ctdb.preinst
===================================================================
--- trunk/ctdb/debian/ctdb.preinst (rev 0)
+++ trunk/ctdb/debian/ctdb.preinst 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for ctdb
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Added: trunk/ctdb/debian/ctdb.prerm
===================================================================
--- trunk/ctdb/debian/ctdb.prerm (rev 0)
+++ trunk/ctdb/debian/ctdb.prerm 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for ctdb
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Added: trunk/ctdb/debian/ctdb.prerm.debhelper
===================================================================
--- trunk/ctdb/debian/ctdb.prerm.debhelper (rev 0)
+++ trunk/ctdb/debian/ctdb.prerm.debhelper 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,18 @@
+# Automatically added by dh_installinit
+if [ -x "/etc/init.d/ctdb" ]; then
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d ctdb stop || exit $?
+ else
+ /etc/init.d/ctdb stop || exit $?
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installinit
+if [ -x "/etc/init.d/ctdb" ]; then
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d ctdb stop || exit $?
+ else
+ /etc/init.d/ctdb stop || exit $?
+ fi
+fi
+# End automatically added section
Added: trunk/ctdb/debian/rules
===================================================================
--- trunk/ctdb/debian/rules (rev 0)
+++ trunk/ctdb/debian/rules 2008-01-19 16:51:17 UTC (rev 1691)
@@ -0,0 +1,149 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+
+# 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
+
+# Set the host and build architectures for use with config.cache loading,
+# cross-building, etc.
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
+export DEB_HOST_GNU_TYPE
+export DEB_BUILD_GNU_TYPE
+export DEB_HOST_ARCH_OS
+
+CFLAGS = -g -Wall
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+DESTDIR=$(CURDIR)/debian/ctdb
+
+conf_args = \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+ ./autogen.sh
+ CFLAGS="$(CFLAGS)" ./configure $(conf_args)
+ touch configure-stamp
+
+
+#Architecture
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: configure-stamp
+
+ # Add here commands to compile the arch part of the package.
+ [ ! -f Makefile ] || $(MAKE)
+
+build-indep: build-indep-stamp
+build-indep-stamp: configure-stamp
+
+ # Add here commands to compile the indep part of the package.
+ #$(MAKE) doc
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp build-indep-stamp configure-stamp
+ rm -f configure config.h.in
+ rm -f utils/smnotify/smnotify.h utils/smnotify/gen_smnotify.c
+
+ # Add here commands to clean up after the build process.
+ rm -rf $(DESTDIR)
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+ dh_clean
+
+install: install-indep install-arch
+install-indep:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+
+ # Add here commands to install the indep part of the package into
+ # debian/<package>-doc.
+ #INSTALLDOC#
+
+ dh_install -i
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+
+ # Create the target build directory hierarchy
+ mkdir -p $(DESTDIR)/etc/init.d
+ mkdir -p $(DESTDIR)/etc/default/
+ # Add here commands to install the arch part of the package into
+ # debian/tmp.
+ $(MAKE) DESTDIR=$(DESTDIR) install
+ install -m644 config/ctdb.sysconfig $(DESTDIR)/etc/default/ctdb
+ dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+ DH_OPTIONS= dh_installinit -pctdb --no-start --no-restart-on-upgrade
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+ $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
Property changes on: trunk/ctdb/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-samba-maint
mailing list