[DebianBRTeam-commits] r595 - in /packages/hapm/trunk/debian: README.source changelog compat control copyright dirs docs patches/ patches/00list patches/01_Makefile_adjust.dpacth patches/02_init.d_compliant.dpatch rules watch

eriberto-guest at users.alioth.debian.org eriberto-guest at users.alioth.debian.org
Sun Mar 7 03:38:40 UTC 2010


Author: eriberto-guest
Date: Sun Mar  7 03:38:39 2010
New Revision: 595

URL: http://svn.debian.org/wsvn/?sc=1&rev=595
Log:
Initial upload.

Added:
    packages/hapm/trunk/debian/README.source
    packages/hapm/trunk/debian/changelog
    packages/hapm/trunk/debian/compat
    packages/hapm/trunk/debian/control
    packages/hapm/trunk/debian/copyright
    packages/hapm/trunk/debian/dirs
    packages/hapm/trunk/debian/docs
    packages/hapm/trunk/debian/patches/
    packages/hapm/trunk/debian/patches/00list
    packages/hapm/trunk/debian/patches/01_Makefile_adjust.dpacth
    packages/hapm/trunk/debian/patches/02_init.d_compliant.dpatch
    packages/hapm/trunk/debian/rules   (with props)
    packages/hapm/trunk/debian/watch

Added: packages/hapm/trunk/debian/README.source
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/README.source?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/README.source (added)
+++ packages/hapm/trunk/debian/README.source Sun Mar  7 03:38:39 2010
@@ -1,0 +1,38 @@
+This package uses dpatch to manage all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To get the fully patched source after unpacking the source package, cd
+to the root level of the source package and run:
+
+    debian/rules patch
+
+Removing a patch is as simple as removing its entry from the
+debian/patches/00list file, and please also remove the patch file
+itself.
+
+Creating a new patch is done with "dpatch-edit-patch patch XX_patchname"
+where you should replace XX with a new number and patchname with a
+descriptive shortname of the patch. You can then simply edit all the
+files your patch wants to edit, and then simply "exit 0" from the shell
+to actually create the patch file.
+
+To tweak an already existing patch, call "dpatch-edit-patch XX_patchname"
+and replace XX_patchname with the actual filename from debian/patches
+you want to use.
+
+To clean up afterwards again, "debian/rules unpatch" will do the
+work for you - or you can of course choose to call
+"fakeroot debian/rules clean" all together.
+
+
+--- 
+
+this documentation is part of dpatch package, and may be used by
+packages using dpatch to comply with policy on README.source. This
+documentation is meant to be useful to users who are not proficient in
+dpatch in doing work with dpatch-based packages. Please send any
+improvements to the BTS of dpatch package.
+
+original text by Gerfried Fuchs, edited by Junichi Uekawa <dancer at debian.org>
+10 Aug 2008.

Added: packages/hapm/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/changelog?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/changelog (added)
+++ packages/hapm/trunk/debian/changelog Sun Mar  7 03:38:39 2010
@@ -1,0 +1,15 @@
+hapm (0.4-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add ${shlibs:Depends}. (Closes: #553160).
+  * Make clean not ignore errors.
+  * Add README.source for dpatch patch system.
+  * Bump Standards Version to 3.8.3. (No changes needed).
+
+ -- Barry deFreese <bdefreese at debian.org>  Sat, 31 Oct 2009 13:53:47 -0400
+
+hapm (0.4-1) unstable; urgency=low
+
+  * Initial release (Closes: #389798)  
+
+ -- Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>  Sun,  8 Oct 2006 18:57:29 +0000

Added: packages/hapm/trunk/debian/compat
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/compat?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/compat (added)
+++ packages/hapm/trunk/debian/compat Sun Mar  7 03:38:39 2010
@@ -1,0 +1,1 @@
+5

Added: packages/hapm/trunk/debian/control
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/control?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/control (added)
+++ packages/hapm/trunk/debian/control Sun Mar  7 03:38:39 2010
@@ -1,0 +1,21 @@
+Source: hapm
+Section: admin
+Priority: optional
+Maintainer: Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>
+Build-Depends: debhelper (>= 5), dpatch
+Standards-Version: 3.8.3
+
+Package: hapm
+Architecture: any
+Depends: ${shlibs:Depends}, heartbeat | heartbeat-2
+Description: light and fast high availability port monitor
+ High Availability Port Monitor (HAPM) is an application to check the local
+ ports status. It is a simple, light and fast daemon to check TCP/UDP ports. 
+ .
+ HAPM works with Heartbeat daemon. Heartbeat is an essential element used
+ in high availability projects.
+ .
+ If one or more monitored ports (per IP) go down then the primary
+ Heartbeat will be killed by HAPM and the secondary host will take over
+ virtual IP.
+Enhances: heartbeat, heartbeat-2

Added: packages/hapm/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/copyright?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/copyright (added)
+++ packages/hapm/trunk/debian/copyright Sun Mar  7 03:38:39 2010
@@ -1,0 +1,36 @@
+This package was debianized by Joao Eriberto Mota Filho
+<eriberto at eriberto.pro.br> on Wed,  8 Oct 2006 18:57:29 +0000.
+
+It was downloaded from http://hapm.sourceforge.net.
+
+Upstream Authors: 
+
+	Alexandre Antonio Antunes de Almeida <4aalmeida at tutopia.com.br>
+	Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>
+	Rosemeri Dantas de Oliveira <odr at uol.com.br>
+
+Copyright: 2006, Alexandre Antonio Antunes de Almeida, Joao Eriberto Mota Filho,
+                 Rosemeri Dantas de Oliveira.
+
+License:
+
+   This package 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 2 of the License, or
+   (at your option) any later version.
+
+   This package 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 package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2006, Joao Eriberto Mota Filho
+<eriberto at eriberto.pro.br> and is licensed under the GPL, see above.
+

Added: packages/hapm/trunk/debian/dirs
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/dirs?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/dirs (added)
+++ packages/hapm/trunk/debian/dirs Sun Mar  7 03:38:39 2010
@@ -1,0 +1,4 @@
+etc/init.d
+usr/sbin
+usr/share/man/man8
+

Added: packages/hapm/trunk/debian/docs
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/docs?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/docs (added)
+++ packages/hapm/trunk/debian/docs Sun Mar  7 03:38:39 2010
@@ -1,0 +1,4 @@
+AUTHORS
+README
+TODO
+

Added: packages/hapm/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/patches/00list?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/patches/00list (added)
+++ packages/hapm/trunk/debian/patches/00list Sun Mar  7 03:38:39 2010
@@ -1,0 +1,2 @@
+01_Makefile_adjust.dpacth
+02_init.d_compliant.dpatch

Added: packages/hapm/trunk/debian/patches/01_Makefile_adjust.dpacth
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/patches/01_Makefile_adjust.dpacth?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/patches/01_Makefile_adjust.dpacth (added)
+++ packages/hapm/trunk/debian/patches/01_Makefile_adjust.dpacth Sun Mar  7 03:38:39 2010
@@ -1,0 +1,50 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_Makefile_adjust.dpatch by Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Adjust Makefile to make a correct install.
+
+ at DPATCH@
+
+diff -Naur hapm-0.3.orig/Makefile hapm-0.3/Makefile
+--- hapm-0.3.orig/Makefile	2006-09-29 00:34:30.000000000 +0000
++++ hapm-0.3/Makefile	2006-10-04 02:42:22.000000000 +0000
+@@ -1,11 +1,11 @@
+ # Makefile.in for hapm
+ 
+ CC 		= gcc
+-SYSCONFDIR      = /etc/ha.d
+-INITDIR		= /etc/init.d
++SYSCONFDIR      = $(DESTDIR)/etc/ha.d
++INITDIR		= $(DESTDIR)/etc/init.d
+ INSTALL 	= cp
+-INSTALLDIR	= /usr/sbin
+-MANDIR		= /usr/share/man/man8
++INSTALLDIR	= $(DESTDIR)/usr/sbin
++MANDIR		= $(DESTDIR)/usr/share/man/man8
+ CFLAGS 		= -O2 -g -w
+ 
+ INSTALL_PROGRAM = $(INSTALL)
+@@ -25,14 +25,14 @@
+ 	#
+ 
+ install:
+-	@if test ! -e hapm; then \
+-		echo -e '\nERROR: Run "# make" before "# make install".\n'; \
+-		exit 1; \
+-	fi
+-	@if test  -e $(INSTALLDIR)/hapm; then \
+-		echo -e "\nERROR: hapm already installed.\n"; \
+-		exit 1; \
+-	fi
++#	@if test ! -e hapm; then \
++#		echo -e '\nERROR: Run "# make" before "# make install".\n'; \
++#		exit 1; \
++#	fi
++#	@if test  -e $(INSTALLDIR)/hapm; then \
++#		echo -e "\nERROR: hapm already installed.\n"; \
++#		exit 1; \
++#	fi
+ 	- at if test ! -d $(SYSCONFDIR); then \
+ 		echo "creating $(SYSCONFDIR)"; \
+ 		mkdir $(SYSCONFDIR); \

Added: packages/hapm/trunk/debian/patches/02_init.d_compliant.dpatch
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/patches/02_init.d_compliant.dpatch?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/patches/02_init.d_compliant.dpatch (added)
+++ packages/hapm/trunk/debian/patches/02_init.d_compliant.dpatch Sun Mar  7 03:38:39 2010
@@ -1,0 +1,30 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_init.d_compliant.dpatch by Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make init.d script compliant with LSB
+
+ at DPATCH@
+
+diff -Naur hapm-0.4.orig/init.d/hapm hapm-0.4/init.d/hapm
+--- hapm-0.4.orig/init.d/hapm	2006-10-08 15:30:03.000000000 -0300
++++ hapm-0.4/init.d/hapm	2006-10-09 11:45:46.000000000 -0300
+@@ -2,6 +2,18 @@
+ # Start/stop the hapm daemon.
+ # by Eriberto.
+ 
++### BEGIN INIT INFO
++# Provides:		hapm
++# Required-Start:	$syslog
++# Required-Stop:	$syslog
++# Default-Start:	2 3 4 5
++# Default-Stop:		0 1 6
++# Short-Description:	Start HAPM at boot time
++# Description:		Used to start/stop/restart HAPM daemon.
++#			HAPM is a simple and fast local TCP/UDP
++#			port check.
++### END INIT INFO
++
+ PATH=/bin:/sbin:/usr/sbin:/usr/bin
+ 
+ test -x /usr/sbin/hapm || echo "Sorry, HAPM don't exist." 

Added: packages/hapm/trunk/debian/rules
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/rules?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/rules (added)
+++ packages/hapm/trunk/debian/rules Sun Mar  7 03:38:39 2010
@@ -1,0 +1,72 @@
+#!/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.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: patch-stamp configure-stamp 
+	dh_testdir
+	DESTDIR=./debian/hapm
+	$(MAKE)
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	$(MAKE) clean
+	dh_clean 
+
+install: build
+install:
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/hapm
+
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installinit -o --update-rcd-params='start 76 2 3 4 5 . stop 04 0 1 6 .'
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure

Propchange: packages/hapm/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: packages/hapm/trunk/debian/watch
URL: http://svn.debian.org/wsvn/packages/hapm/trunk/debian/watch?rev=595&op=file
==============================================================================
--- packages/hapm/trunk/debian/watch (added)
+++ packages/hapm/trunk/debian/watch Sun Mar  7 03:38:39 2010
@@ -1,0 +1,3 @@
+version=3
+http://sf.net/hapm/hapm-(.*)\.tar\.gz
+




More information about the debian-br-team-commits mailing list