freebsd-ports/mail/qpopper/Makefile
Akinori MUSHA bd2ce5a5b9 Update to 3.1fc1.
Preserve popauth's name on installation, as it looks up argv[0] and
tries to change its default behavior according to it.

Reported in:	FreeBSD-users-jp@jp.FreeBSD.org mailing list

Cleanup Makefile & patches a bit.
2000-10-05 18:07:01 +00:00

49 lines
1.4 KiB
Makefile

# New ports collection makefile for: qpopper 3.1.b5
# Date created: Di 18 Jul 2000 22:36:34 CEST
# Whom: alex
#
# $FreeBSD$
#
PORTNAME= qpopper
PORTVERSION= 3.1.f1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.qualcomm.com/eudora/servers/unix/popper/beta/ \
ftp://ftp.gmxuk.net/pub/qpopper/beta/ \
ftp://sunsite.doc.ic.ac.uk/Mirrors/ftp.qualcomm.com/eudora/servers/unix/popper/beta/ \
ftp://ftp.kracked.com/pub/qpopper/beta/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.f/fc/}
MAINTAINER= ports@freebsd.org
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-apop=${PREFIX}/etc/qpopper/pop.auth
O_DEFS= -DSETPROCTITLE -DKEEP_TEMP_DROP -DBSD44_DBM -DBIND43 \
-DBULLDB -DNONAUTHFILE='\"/etc/ftpusers\"'
P_LIBS+= -lmd -lutil
# Set FULL_POPD_DEBUG for debug-mode. See also -d option to popper
.if defined(FULL_POPD_DEBUG)
CONFIGURE_ARGS+=--enable-debugging
.endif
CONFIGURE_ENV= LIBS="${P_LIBS}" O_DEFS="${O_DEFS}"
MAN8= popauth.8 qpopper.8
post-patch:
${PERL} -pi -e 's:!!PREFIX!!:${PREFIX}$$1:g' ${WRKSRC}/man/*
do-install:
cd ${WRKSRC} && \
${INSTALL_PROGRAM} popper/popauth ${PREFIX}/bin/ && \
${INSTALL_PROGRAM} popper/popper ${PREFIX}/libexec/qpopper && \
${INSTALL_MAN} man/popauth.8 ${PREFIX}/man/man8/ && \
${INSTALL_MAN} man/popper.8 ${PREFIX}/man/man8/qpopper.8
post-install:
@${SED} -e "s:/usr/local:${PREFIX}:" ${PKGMESSAGE}
.include <bsd.port.mk>