Here are two simple patches for qpopper.

The first patch adds DESTDIR support for the "make install" step.
This is very handy for building packages (RPMs / .deb files) of
qpopper.  (When building packages, software is installed into a
temporary directory hierarchy, instead of being installed directly to
the actual location.)

The second patch removes the double dashes from the NAME section of
the man pages.  (Most catman/makewhatis packages expect only one dash,
and fail to catalog any of the qpopper package's man pages due to the
double dashes.)

-- 
James Ralston, Information Technology
Software Engineering Institute
Carnegie Mellon University, Pittsburgh, PA, USA
--- qpopper4.0.3/popper/Makefile.in.destdir     Sun Apr 22 18:59:15 2001
+++ qpopper4.0.3/popper/Makefile.in     Mon Apr  8 13:40:19 2002
@@ -199,8 +199,8 @@
 ${POPAUTHSRCS}:
 
 install: popper ${pop_auth}
-       ${INSTALL} -s -m 0755 -o root popper ${installdir}/popper
-       echo "Installed popper as ${installdir}/popper"
+       ${INSTALL} -s -m 0755 popper $(DESTDIR)${installdir}/popper
+       echo "Installed popper as $(DESTDIR)${installdir}/popper"
        if [ "x${poppassd}" != "x" ]; then \
            cd ${password_dir} && ${MAKE} $@ ;\
        fi
--- qpopper4.0.3/Makefile.in.destdir    Sun Apr 22 18:59:14 2001
+++ qpopper4.0.3/Makefile.in    Mon Apr  8 13:40:19 2002
@@ -58,10 +58,10 @@
        cd ${popper_dir}  && ${MAKE} all
 
 install:
-       ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popper.8  ${mandir}/man8/
-       echo "Installed man/popper.8 as ${mandir}/man8/popper.8"
-       ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popauth.8 ${mandir}/man8/
-       echo "Installed man/popauth.8 as ${mandir}/man8/popauth.8"
+       ${INSTALL} -m 0644 ${top_srcdir}/man/popper.8  $(DESTDIR)${mandir}/man8/
+       echo "Installed man/popper.8 as $(DESTDIR)${mandir}/man8/popper.8"
+       ${INSTALL} -m 0644 ${top_srcdir}/man/popauth.8 $(DESTDIR)${mandir}/man8/
+       echo "Installed man/popauth.8 as $(DESTDIR)${mandir}/man8/popauth.8"
        cd ${popper_dir}  && ${MAKE} install
 
 clean:
--- qpopper4.0.3/man/popauth.8.man      Tue Apr  3 20:23:13 2001
+++ qpopper4.0.3/man/popauth.8  Mon Apr  8 14:45:23 2002
@@ -9,7 +9,7 @@
 .\"
 .TH POPAUTH 8
 .SH NAME
-popauth \-\- manipulate POP authorization DB
+popauth \- manipulate POP authorization DB
 .SH SYNOPSIS
 .B popauth
 [
--- qpopper4.0.3/man/poppassd.8.man     Tue Apr  3 20:23:13 2001
+++ qpopper4.0.3/man/poppassd.8 Mon Apr  8 14:45:18 2002
@@ -8,7 +8,7 @@
 .\"
 .TH POPAUTH 8
 .SH NAME
-poppassd \-\- password-changing daemon
+poppassd \- password-changing daemon
 .SH SYNOPSIS
 .B poppassd
 [
--- qpopper4.0.3/man/popper.8.man       Tue Apr  3 20:23:13 2001
+++ qpopper4.0.3/man/popper.8   Mon Apr  8 14:45:12 2002
@@ -17,7 +17,7 @@
 .UC 6
 .ad
 .SH NAME
-qpopper \-\- POP3 server (v4.0)
+qpopper \- POP3 server (v4.0)
 .SH SYNOPSIS
 .B /usr/local/lib/popper
 [

Reply via email to