diff options
author | cube <cube@pkgsrc.org> | 2004-09-23 06:43:45 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2004-09-23 06:43:45 +0000 |
commit | 1c233885e0a3a45ccbbdc3a0cc5274177b8f5950 (patch) | |
tree | 42fb84d235f032842777e4c0f0c350285abdf06f /mail/popa3d/Makefile | |
parent | 1e5fc82097764285d69a975b7247cc2bd271067f (diff) | |
download | pkgsrc-1c233885e0a3a45ccbbdc3a0cc5274177b8f5950.tar.gz |
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 (limited to 'mail/popa3d/Makefile')
-rw-r--r-- | mail/popa3d/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/popa3d/Makefile b/mail/popa3d/Makefile index baf7ea205be..1cfb08d58d1 100644 --- a/mail/popa3d/Makefile +++ b/mail/popa3d/Makefile @@ -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 @@ RCD_SCRIPTS= popa3d 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 |