pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/popa3d Resurrect support for making the daemon ru...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/add671b90052
branches:  trunk
changeset: 480978:add671b90052
user:      cube <cube%pkgsrc.org@localhost>
date:      Thu Sep 23 06:43:45 2004 +0000

description:
Resurrect support for making the daemon run as something else than
"popa3d", and factor the resulting grep with the other one.

Bump PKGREVISION.

Based on patch by pancake at phreaker dot net in PR 27018.

diffstat:

 mail/popa3d/Makefile         |  13 +++++++------
 mail/popa3d/distinfo         |   4 ++--
 mail/popa3d/patches/patch-aa |  11 ++++++++++-
 3 files changed, 19 insertions(+), 9 deletions(-)

diffs (67 lines):

diff -r 42a6c749cfe2 -r add671b90052 mail/popa3d/Makefile
--- a/mail/popa3d/Makefile      Thu Sep 23 04:33:21 2004 +0000
+++ b/mail/popa3d/Makefile      Thu Sep 23 06:43:45 2004 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.35 2004/07/23 14:14:23 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2004/09/23 06:43:45 cube Exp $
 #
 
 DISTNAME=      popa3d-0.6.4.1
+PKGREVISION=   1
 CATEGORIES=    mail
 MASTER_SITES=  http://www.openwall.com/popa3d/ \
                ftp://ftp.openwall.com/pub/projects/popa3d/ \
@@ -27,11 +28,11 @@
 FILES_SUBST+=  POPA3D_USER=${POPA3D_USER}
 FILES_SUBST+=  POPA3D_GROUP=${POPA3D_GROUP}
 
-post-patch:
-       cd ${WRKSRC} && \
-               ${SED} "s,/var/empty,${PREFIX}/share/empty," \
-                       params.h > params.h.new && \
-               ${MV} params.h.new params.h
+SUBST_CLASSES+=                params
+SUBST_STAGE.params=    post-patch
+SUBST_FILES.params=    params.h
+SUBST_SED.params=      -e 's,/var/empty,${PREFIX}/share/empty,'        \
+                       -e 's,@@POPA3D_USER@@,"${POPA3D_USER}",'
 
 do-install:
        ${INSTALL_PROGRAM} -m 500 ${WRKSRC}/popa3d ${PREFIX}/sbin
diff -r 42a6c749cfe2 -r add671b90052 mail/popa3d/distinfo
--- a/mail/popa3d/distinfo      Thu Sep 23 04:33:21 2004 +0000
+++ b/mail/popa3d/distinfo      Thu Sep 23 06:43:45 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.15 2004/07/23 14:14:23 wiz Exp $
+$NetBSD: distinfo,v 1.16 2004/09/23 06:43:45 cube Exp $
 
 SHA1 (popa3d-0.6.4.1.tar.gz) = 0d664db4a1d9129cb03aca57112f39c302cb31d4
 Size (popa3d-0.6.4.1.tar.gz) = 32061 bytes
-SHA1 (patch-aa) = 672b3b4d7319a4af1580af2df955f380bcddbb45
+SHA1 (patch-aa) = 64fdf319d959c9632274e6c658f229048bec2485
 SHA1 (patch-ab) = 9ea78b98fa9279a147a20ca8fc5f938b98365d27
diff -r 42a6c749cfe2 -r add671b90052 mail/popa3d/patches/patch-aa
--- a/mail/popa3d/patches/patch-aa      Thu Sep 23 04:33:21 2004 +0000
+++ b/mail/popa3d/patches/patch-aa      Thu Sep 23 06:43:45 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.9 2003/04/15 08:28:19 wiz Exp $
+$NetBSD: patch-aa,v 1.10 2004/09/23 06:43:45 cube Exp $
 
 --- params.h.orig      Sat Apr 12 16:16:01 2003
 +++ params.h
@@ -20,6 +20,15 @@
  
  #if DAEMON_LIBWRAP
  /*
+@@ -99,7 +99,7 @@
+  * A pseudo-user to run as before authentication. The user and its UID
+  * must not be used for any other purpose.
+  */
+-#define POP_USER                      POP_SERVER
++#define POP_USER                      @@POPA3D_USER@@
+ 
+ /*
+  * An empty directory to chroot to before authentication. The directory
 @@ -144,8 +144,8 @@
   *
   * Note that there's no built-in password aging support.



Home | Main Index | Thread Index | Old Index