--- iwebadmin-2.1.2.orig/debian/changelog
+++ iwebadmin-2.1.2/debian/changelog
@@ -0,0 +1,33 @@
+iwebadmin (2.1.2-1.1+1.5) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 12 Jul 2026 00:31:48 +0000
+
+iwebadmin (2.1.2-1.1) stable; urgency=low
+
+  * iwebadmin.c: exit with specific error codes defined in iwebadmin.h to indicate the error and help testing iwebadmin with curl
+  * html/mod_user.html: shortened quota input box length
+  * alias.c: fixed null domain getting passed to valias_select_all()
+  * iwebadmin.c, iwebadminx.h, template.c: added configurable mrtg url
+  * user.c: fixed user addition to mailing list in "New Email Account"
+  * user.c: remove user from mailing list subscriptions in 'Delete User"
+  * iwebadmin.c, template.c: added few configurable debug statements
+  * user.c: fixed enabling of catch-all button
+  * user.c, autorespond.c, user.c: removed limits.c, limits.h
+  * auth.[c,h]: added struct passwd argument to set_admin_type function, avoid extra call to sql_getpw
+  * autorespond.h, dotqmail.h, forward.h, html.h, iwebadmin.h, iwebadminx.h, mailinglist.h, printh.h, show.h, template.h, user.h, util.h: prevent multiple inclusion of header file
+  * command.c, iwebadmin.c: added role based access/delegation using vlimits
+  * common.c: iweb_exit() - flush outut before exit
+  * configure.ac: removed depcrated macros
+  * iwebadmin.c: refactored code
+  * Makefile.am: enabled auto dependency tracking
+  * template.c: removed uneccessary output on descriptor 2
+  * iwebadmin.spec, debian/*.dsc.in: updated indimail, indimail-devel minimum version requirement
+  * command.c: corrected defines used for role based access
+  * created mod_user1.html, mod_user2.html for scram, non-scram setup
+  * user.c: fix search by index
+  * user.c: use mod_user1.html, mod_user2.html for scram, non-scram setup
+  * fix gcc14 errors
+
+ -- Manvendra Bhangui <iwebadmin@indimail.org>  Tue, 03 Jun 2025 13:00:17 +0000
--- iwebadmin-2.1.2.orig/debian/compat
+++ iwebadmin-2.1.2/debian/compat
@@ -0,0 +1 @@
+10
--- iwebadmin-2.1.2.orig/debian/control
+++ iwebadmin-2.1.2/debian/control
@@ -0,0 +1,15 @@
+Source: iwebadmin
+Section: misc
+Priority: extra
+Maintainer: Manvendra Bhangui <iwebadmin@indimail.org>
+Standards-Version: 3.9.1
+Build-Depends: cdbs, debhelper (>= 9), gcc, g++, m4, autotools-dev, libqmail-dev, libqmail, libssl-dev, indimail-dev
+Homepage: https://github.com/mbhangui/indimail-virtualdomains
+
+Package: iwebadmin
+Architecture: any
+Depends: ${misc:Depends} ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Description: Web Administration GUI for IndiMail VirtualDomains
+ .
+ iwebadmin provides a Web frontend for administering IndiMail Users
--- iwebadmin-2.1.2.orig/debian/copyright
+++ iwebadmin-2.1.2/debian/copyright
@@ -0,0 +1,43 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: iwebadmin
+Maintainer: Manvendra Bhangui <iwebadmin@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'.
--- iwebadmin-2.1.2.orig/debian/iwebadmin.install
+++ iwebadmin-2.1.2/debian/iwebadmin.install
@@ -0,0 +1,5 @@
+etc/indimail /etc
+usr/share/iwebadmin /usr/share
+var/www/cgi-bin /var/www
+var/www/html /var/www
+usr/share/man/man1 /usr/share/man
--- iwebadmin-2.1.2.orig/debian/postinst
+++ iwebadmin-2.1.2/debian/postinst
@@ -0,0 +1,69 @@
+#!/bin/sh
+set -e
+
+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
+}
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+# we are doing upgrade or removal
+
+ID=`id -u`
+if [ $ID -ne 0 ] ; then
+	echo "You are not root" >&2
+	exit 1
+fi
+if [ -f ${sysconfdir}/iwebadmin.perms ] ; then
+	echo "Fixing Permissions"
+(
+/bin/grep -v "^#" ${sysconfdir}/iwebadmin.perms | while read line
+do
+	fixperms $line
+done
+) > ${sysconfdir}/iwebadmin_stat.override
+fi
--- iwebadmin-2.1.2.orig/debian/postrm
+++ iwebadmin-2.1.2/debian/postrm
@@ -0,0 +1,46 @@
+#!/bin/sh
+set -e
+sysconfdir=/etc/indimail
+rm=/bin/rm
+
+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 ${sysconfdir}/iwebadmin_stat.override -a -f /usr/sbin/dpkg-statoverride ] ; then
+		/bin/cat ${sysconfdir}/iwebadmin_stat.override | while read line
+		do
+			/usr/sbin/dpkg-statoverride --remove $line
+		done
+		${rm} -f ${sysconfdir}/iwebadmin_stat.override 2>/dev/null || true
+	fi
+fi
--- iwebadmin-2.1.2.orig/debian/rules
+++ iwebadmin-2.1.2/debian/rules
@@ -0,0 +1,86 @@
+#!/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
+sysconfdir=/etc/indimail
+version=2.1.2
+#
+DESTDIR=$(CURDIR)/debian/iwebadmin.tmp
+libdir=$(prefix)/lib
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	#
+	# Extract source archives
+	#
+	#
+	# run configure script
+	#
+	./configure $(shell dpkg-buildflags --export=cmdline) \
+		--prefix=$(prefix) \
+		--sysconfdir=$(sysconfdir) \
+		--disable-ipauth \
+		--disable-trivial-password \
+		--enable-ezmlmdir=$(prefix)/bin \
+		--enable-domain-autofill \
+		--enable-modify-quota \
+		--enable-htmldir=/var/www/html \
+		--enable-cgibindir=/var/www/cgi-bin \
+		--enable-imagedir=/var/www/html/images/iwebadmin \
+		--enable-htmllibdir=/usr/share/iwebadmin
+	#
+	# run make
+	#
+	#
+	$(MAKE) -s DESTDIR=$(DESTDIR)
+	touch build-stamp
+
+clean:
+	rm -f build-stamp configure-stamp
+	/bin/rm -rf $(DESTDIR)
+	$(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)
+	mkdir -p $(DESTDIR)$(sysconfdir)
+	if [ -f iwebadmin.perms ] ; then \
+		install -m 0644 iwebadmin.perms "$(DESTDIR)$(sysconfdir)"/iwebadmin.perms; \
+	fi
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_install --sourcedir=$(DESTDIR) -piwebadmin
+	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
