Control: tags 1089383 + patch
Control: tags 1089383 + pending


Dear maintainer,

I've prepared an NMU for mailagent (versioned as 1:3.1-106-1.1) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

Regards.

diff -u mailagent-3.1-106/debian/changelog mailagent-3.1-106/debian/changelog
--- mailagent-3.1-106/debian/changelog
+++ mailagent-3.1-106/debian/changelog
@@ -1,3 +1,10 @@
+mailagent (1:3.1-106-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Make package build without requiring root. (Closes: #1089383)
+
+ -- Niels Thykier <[email protected]>  Mon, 30 Dec 2024 11:26:58 +0000
+
 mailagent (1:3.1-106-1) unstable; urgency=medium
    * Upstream has moved to git. This is the new upstream HEAD
diff -u mailagent-3.1-106/debian/control mailagent-3.1-106/debian/control
--- mailagent-3.1-106/debian/control
+++ mailagent-3.1-106/debian/control
@@ -4,6 +4,7 @@
 Section: mail
 Priority: optional
 Maintainer: Manoj Srivastava <[email protected]>
+Rules-Requires-Root: no
 Standards-Version: 4.3.0
 Build-Depends: groff-base, debhelper-compat (= 12), po-debconf, file,
                gettext, libperl4-corelibs-perl, dpkg-dev (>= 1.16.0),
diff -u mailagent-3.1-106/debian/rules mailagent-3.1-106/debian/rules
--- mailagent-3.1-106/debian/rules
+++ mailagent-3.1-106/debian/rules
@@ -8,10 +8,10 @@
     INSTALL_PROGRAM += -s
 endif
 -install_file  = $(INSTALL) -p    -o root -g root  -m  644
-install_program = $(INSTALL) -p           -o root -g root  -m  755
-install_script = $(INSTALL) -p    -o root -g root  -m  755
-make_directory = $(INSTALL) -p -d -o root -g root  -m  755
+install_file   = $(INSTALL) -p    -m   644
+install_program = $(INSTALL) -p           -m   755
+install_script = $(INSTALL) -p    -m   755
+make_directory = $(INSTALL) -p -d -m   755
 email := [email protected]
 TMPTOP:=debian/tmp
 DOCDIR=debian/$(package)/usr/share/doc/$(package)
@@ -57,13 +57,14 @@
        bash -n debian/mailagent.prerm
  override_dh_installdocs:
+       chmod -R u=rwX debian/mailagent
        dh_installdocs
        $(install_file) agent/README            $(DOCDIR)/README.agent
        $(install_file) agent/filter/README     $(DOCDIR)/README.filter
        $(install_file) agent/files/README      $(DOCDIR)/README.shell
        $(install_file) agent/files/help/README $(DOCDIR)/README.server
-       find $(DOCDIR)/help -name \*.SH -exec rm {} \;
-       find $(DOCDIR)/help -name \*Makefile -exec rm {} \;
+       find $(DOCDIR)/help -name \*.SH -exec rm -f {} \;
+       find $(DOCDIR)/help -name \*Makefile -exec rm -f {} \;
  override_dh_install:
        test -d $(MAN1DIR) || $(make_directory) $(MAN1DIR)
@@ -73,7 +74,7 @@
        $(MAKE) install.man
        test ! -f $(DEBDOCDIR)/filter  ||        \
           $(install_program) $(DEBDOCDIR)/filter $(DEBLIBDIR)/filter
-       test ! -f $(DEBDOCDIR)/filter  ||     rm $(DEBDOCDIR)/filter
+       test ! -f $(DEBDOCDIR)/filter  ||     rm -f $(DEBDOCDIR)/filter
        for i in chkagent.sh filter.sh setup.cf mailagent.cf commands; do \
          test ! -f $(DEBDOCDIR)/$$i || mv $(DEBDOCDIR)/$$i $(PKG_DIR); \
        done

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to