# New ports collection makefile for: esmtp # Date created: 12.07.2003 # Whom: Kirill Ponomarew # # $FreeBSD$ # PORTNAME= esmtp PORTVERSION= 0.5.0 PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= krion@FreeBSD.org COMMENT= Relay-only Mail Transfer Agent with sendmail compatible syntax LIB_DEPENDS= esmtp.6:${PORTSDIR}/mail/libesmtp USE_SIZE= yes USE_BZIP2= yes GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} USE_GETOPT_LONG= yes USE_OPENSSL= yes USE_REINPLACE= yes USE_BISON= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" DOC_FILES= README MAN1= esmtp.1 MAN5= esmtprc.5 post-patch: @${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|g' \ ${WRKSRC}/sample.esmtprc @${REINPLACE_CMD} -e 's|sendmail(1)|sendmail(8)|g ; \ s|/etc|${PREFIX}/etc|g' ${WRKSRC}/${PORTNAME}.1 @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' \ ${WRKSRC}/parser.c ${WRKSRC}/parser.y do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/esmtprc.5 ${PREFIX}/man/man5 ${INSTALL_DATA} ${WRKSRC}/sample.esmtprc \ ${PREFIX}/etc/esmtprc.sample @${ECHO} "------------------------------------------------------------" @${ECHO} "Sample of configuration file placed at" @${ECHO} "${PREFIX}/etc/esmtprc.sample" @${ECHO} "------------------------------------------------------------" post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for doc in ${DOC_FILES} @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} .endfor .endif .include