--- dhis-mx-sendmail-engine-5.0.orig/debian/changelog +++ dhis-mx-sendmail-engine-5.0/debian/changelog @@ -0,0 +1,12 @@ +dhis-mx-sendmail-engine (5.0-2) unstable; urgency=low + + * #include instead of . Closes: #194896 + + -- Guus Sliepen Tue, 27 May 2003 17:19:33 +0200 + +dhis-mx-sendmail-engine (5.0-1) unstable; urgency=low + + * Initial Release. + + -- Guus Sliepen Sat, 22 Jun 2002 12:42:24 +0200 + --- dhis-mx-sendmail-engine-5.0.orig/debian/control +++ dhis-mx-sendmail-engine-5.0/debian/control @@ -0,0 +1,17 @@ +Source: dhis-mx-sendmail-engine +Section: net +Priority: optional +Maintainer: Guus Sliepen +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.5.9 + +Package: dhis-mx-sendmail-engine +Architecture: any +Depends: ${shlibs:Depends}, dhis-server, sendmail +Description: Dynamic Host Information System - sendmail MX engine + This package contains a mail relaying service module to be used + with dhisd release 5 or above and the dynamic DNS module. + . + While the DHIS server dhisd retrieves dynamic IP addresses + from clients, this module allows the server to deliver messages + that were previously queued for the newly online host. --- dhis-mx-sendmail-engine-5.0.orig/debian/copyright +++ dhis-mx-sendmail-engine-5.0/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Guus Sliepen on +Sat, 22 Jun 2002 11:28:45 +0200. + +It was downloaded from http://www.dhis.org/dhis/r5/ + +Upstream Author: Joao Cabral + +Copyright: + + Copyright (c) 1998-2001 Joao Cabral (jcnc@dhis.org) + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + + DHIS(c) Dynamic Host Information System Release 5.1 --- dhis-mx-sendmail-engine-5.0.orig/debian/dirs +++ dhis-mx-sendmail-engine-5.0/debian/dirs @@ -0,0 +1 @@ +usr/lib/dhis-server --- dhis-mx-sendmail-engine-5.0.orig/debian/docs +++ dhis-mx-sendmail-engine-5.0/debian/docs @@ -0,0 +1,2 @@ +README +CONTRIBUTORS --- dhis-mx-sendmail-engine-5.0.orig/debian/rules +++ dhis-mx-sendmail-engine-5.0/debian/rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=3 + + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/dhis-mx-sendmail-engine.sgml > dhis-mx-sendmail-engine.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/dhis-mx-sendmail-engine. + $(MAKE) install DESTDIR=$(CURDIR)/debian/dhis-mx-sendmail-engine + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- dhis-mx-sendmail-engine-5.0.orig/Makefile +++ dhis-mx-sendmail-engine-5.0/Makefile @@ -26,12 +26,12 @@ # DHIS(c) Dynamic Host Information System Release 5.0 CC=gcc -CFLAGS=-Wall +CFLAGS=-Wall -O2 -pipe LFLAGS= LIBS= RM=rm -f -INSTALLDIR=/etc/dhis/bin +INSTALLDIR=$(DESTDIR)/usr/lib/dhis-server MODE=700 OWNER=root MKDIR=mkdir -p --- dhis-mx-sendmail-engine-5.0.orig/dhis-mx-sendmail-engine.c +++ dhis-mx-sendmail-engine-5.0/dhis-mx-sendmail-engine.c @@ -46,10 +46,10 @@ #include #include #include -#include +#include -#define DHISD_DB "/etc/dhis/db/dhis.db" -#define DHISE_LOG "/etc/dhis/log/dhis-mx-sendmail-engine.log" +#define DHISD_DB "/etc/dhis-server/dhis.db" +#define DHISE_LOG "/var/log/dhis-mx-sendmail-engine.log" #define SENDMAIL "/usr/sbin/sendmail" #define MAX_HOSTNAME 64