--- logalert-0.4.0.orig/debian/changelog
+++ logalert-0.4.0/debian/changelog
@@ -0,0 +1,19 @@
+logalert (0.4.0-1.1+1.4) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 17 May 2026 09:47:20 +0000
+
+logalert (0.4.0-1.1) stable; urgency=low
+
+  * Refactored logsrv.c, logclient.c incrmesg.c, rpclog.c, showbytes.c - https://github.com/mbhangui/indimail-virtualdomains/pull/29
+  * logclient.c: added -v, -p option
+  * logsrv.c: removed -c option
+  * rpclog.c: print RPC program number, version during startup.
+  * logclient.c: Ensure qmail/tls.h gets included
+  * logclient.c: fixed compilation warnings
+  * parser.y: added missing prototype for yylex()
+  * logalert.spec: added libtirpc-devel for mageia
+  * fix gcc14 errors
+
+ -- Manvendra Bhangui <logalert@indimail.org>  Mon, 06 Oct 2025 11:50:14 +0000
--- logalert-0.4.0.orig/debian/compat
+++ logalert-0.4.0/debian/compat
@@ -0,0 +1 @@
+10
--- logalert-0.4.0.orig/debian/control
+++ logalert-0.4.0/debian/control
@@ -0,0 +1,13 @@
+Source: logalert
+Section: misc
+Priority: extra
+Maintainer: Manvendra Bhangui <logalert@indimail.org>
+Standards-Version: 3.9.1
+Homepage: http://indimail.sourceforge.net
+Build-Depends: cdbs, debhelper (>= 9), gcc, g++, m4, autotools-dev, libqmail-dev, flex, bison
+
+Package: logalert
+Architecture: any
+Description: Logfile monitoring, alert and analysis tool
+ .
+ logalert provides tools for log archival and analysis
--- logalert-0.4.0.orig/debian/copyright
+++ logalert-0.4.0/debian/copyright
@@ -0,0 +1,43 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: IndiMail
+Maintainer: Manvendra Bhangui <logalert@indimail.org>
+Source: https://github.com/mbhangui/indimail-virtualdomains
+
+Copyright: 2008-2020, Manvendra Bhangui <mbhangui@gmail.com>
+License: GPL-3+
+
+License: GPL-3+
+ 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 systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
+License: LGPL-3+
+ This library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This library 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 Lesser General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/LGPL-3'.
--- logalert-0.4.0.orig/debian/postinst
+++ logalert-0.4.0/debian/postinst
@@ -0,0 +1,96 @@
+#!/bin/sh
+set -e
+
+prefix=/usr
+sysconfdir=/etc/indimail
+
+setperm()
+{
+	local user="$1"; shift
+	local group="$1"; shift
+	local mode="$1"; shift
+	local file="$1"; shift
+	/usr/sbin/dpkg-statoverride --list "$file" >/dev/null && return 0
+	/usr/sbin/dpkg-statoverride --update --add "$user" "$group" "$mode" "$file"
+}
+
+fixperms()
+{
+	if [ $# -eq 3 ] ; then # directory
+		lin=$2
+		file=$3
+		if [ ! -d $file ] ; then
+			return 0
+		fi
+	elif [ $# = 2 ] ; then # file
+		lin=$1
+		file=$2
+		if [ ! -f $file ] ; then
+			return 0
+		fi
+	fi
+	perm=`echo $lin|cut -d\( -f2 | cut -d, -f1`
+	perm_f1=`echo $perm | cut -c1`
+	own=`echo $lin|cut -d\( -f2 | cut -d, -f2`
+	grp=`echo $lin|cut -d\( -f2 | cut -d, -f3|cut -d\) -f1`
+	if [ $perm_f1 -eq 0 ] ; then
+		/bin/chown $own:$grp $file
+		/bin/chmod $perm $file
+	else
+		echo $file
+		if [ -f /usr/sbin/dpkg-statoverride ] ; then
+			setperm $own $grp $perm $file
+		else
+			/bin/chown $own:$grp $file
+			/bin/chmod $perm $file
+		fi
+	fi
+}
+
+case "$1" in
+    configure)
+		if [ " $2" = " " ] ; then
+			echo "installing logalert 0.4.0"
+		else
+			echo "upgrading to logalert $2"
+		fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+	exit 0
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+ID=`id -u`
+if [ $ID -ne 0 ] ; then
+	echo "You are not root" >&2
+	exit 1
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+if [ -f ${prefix}/etc/logalert.perms ] ; then
+	echo "Fixing Permissions"
+	(
+	/bin/grep -v "^#" ${sysconfdir}/logalert.perms | while read line
+	do
+		fixperms $line
+	done
+	) > ${sysconfdir}/logalert-stat.override
+fi
+if [ -f /etc/rpc ] ; then
+  set +e
+  grep 536870913 /etc/rpc > /dev/null 2>&1
+  if [ $? -ne 0 ] ; then
+    echo "rpclog      536870913 rpclog" >> /etc/rpc
+  fi
+  set -e
+fi
--- logalert-0.4.0.orig/debian/postrm
+++ logalert-0.4.0/debian/postrm
@@ -0,0 +1,49 @@
+#!/bin/sh
+set -e
+prefix=/usr
+sysconfdir=/etc
+rm=/bin/rm
+rmdir=/bin/rmdir
+
+ID=`id -u`
+if [ $ID -ne 0 ] ; then
+	echo "You are not root" >&2
+	exit 1
+fi
+
+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#
+
+# we are doing upgrade or removal
+if [ " $1" = " upgrade" ] ; then
+	exit 0
+fi
+
+case "$1" in
+    failed-upgrade|abort-install|abort-upgrade|disappear)
+	exit 0
+    ;;
+esac
+if [ " $1" = " remove" ] ; then
+	echo "reverting permissions"
+	if [ -s ${prefix}/etc/logalert_stat.override -a -f /usr/sbin/dpkg-statoverride ] ; then
+		/bin/cat ${prefix}/etc/logalert_stat.override | while read line
+		do
+			/usr/sbin/dpkg-statoverride --remove $line
+		done
+		${rm} -f ${prefix}/etc/logalert_stat.override 2>/dev/null || true
+		${rmdir} --ignore-fail-on-non-empty ${prefix}/etc 2>/dev/null || true
+	fi
+fi
--- logalert-0.4.0.orig/debian/rules
+++ logalert-0.4.0/debian/rules
@@ -0,0 +1,70 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+# export DH_COMPAT=4
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+#
+
+prefix=/usr
+mandir=/usr/share/man
+sysconfdir=/etc/indimail
+version=0.4.0
+#
+DESTDIR=$(CURDIR)/debian/logalert
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	#
+	# Extract source archives
+	#
+	#
+	# run configure script
+	#
+	./configure $(shell dpkg-buildflags --export=cmdline) \
+		--prefix=${prefix} --sysconfdir=${sysconfdir} \
+		--mandir=${prefix}/share/man --datarootdir=${prefix}/share/indimail
+	#
+	# run make
+	#
+	$(MAKE) -s DESTDIR=$(DESTDIR)
+	touch build-stamp
+
+clean:
+	rm -f build-stamp configure-stamp
+	#$(MAKE) -s clean; $(MAKE) -s distclean || true
+	dh_testdir
+	dh_testroot
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep || dh_clean -k
+	dh_installdirs
+	$(MAKE) -s install DESTDIR=$(DESTDIR)
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here. 
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
