1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/mail/pine4/Makefile
Kris Kennaway 58cf258e73 Mark FORBIDDEN: known buffer overflows exploitable by remote email.
Parenthetically, no software which uses 4299 sprintf/strcpy/strcat
calls can possibly be safe - I don't expect to remove this FORBIDDEN
tag any time soon. :-(
2000-09-29 07:28:47 +00:00

104 lines
3.3 KiB
Makefile

# New ports collection makefile for: pine
# Date created: 09 July 1998
# Whom: Adrian Penisoara <ady@freebsd.ady.ro>
#
# $FreeBSD$
#
# The changes to ?= on some of these lines is required for the
# pine4-ssl port. Also, please mirror changes to the files/
# directory to the pine4-ssl port.
PORTNAME?= pine
PORTVERSION?= 4.21
CATEGORIES= mail news
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/
DISTNAME?= ${PORTNAME}${PORTVERSION}
MAINTAINER?= pine@freebsd.ady.ro
FORBIDDEN= "Remotely exploitable buffer overflows."
Y2K= http://www.washington.edu/pine/QandA/sysadmins.html#Millenium
MAN1= pine.1 pico.1 pilot.1
LIB_DEPENDS= c-client4.7:${PORTSDIR}/mail/cclient
# Define "WITH_LDAP" to include ldap support.
# If the ldap port is installed somewhere other than /usr/local, define
# LDAP_PREFIX as well.
#
.if defined(WITH_LDAP)
LDAP_PREFIX?= ${LOCALBASE}
BUILD_DEPENDS+= ${LDAP_PREFIX}/lib/libldap.a:${PORTSDIR}/net/ldap
.endif
post-patch:
for i in ${WRKSRC}/doc/pine.1 \
${WRKSRC}/pine/init.c \
${WRKSRC}/pine/pine.hlp \
${WRKSRC}/pine/mailcap.c \
${WRKSRC}/pine/osdep/os-bsf.h ; do \
${MV} $$i $$i.sed ; \
${SED} -e "s:@@PREFIX@@:${PREFIX}:g" \
$$i.sed >$$i ; \
${RM} $$i.sed ; \
done
for i in ${WRKSRC}/doc/tech-notes.txt \
${WRKSRC}/doc/tech-notes/*.html ; do \
${MV} $$i $$i.sed ; \
${SED} -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \
$$i.sed >$$i ; \
${RM} $$i.sed ; \
done
.if defined(WITH_LDAP)
-mkdir ${WRKSRC}/ldap
ln -sf ${LDAP_PREFIX}/include ${WRKSRC}/ldap/include
ln -sf ${LDAP_PREFIX}/lib ${WRKSRC}/ldap/libraries
.endif
do-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./build bsf)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/pico ${PREFIX}/bin/pico
${INSTALL_PROGRAM} ${WRKSRC}/bin/pilot ${PREFIX}/bin/pilot
${INSTALL_PROGRAM} ${WRKSRC}/bin/pine ${PREFIX}/bin/pine
${SED} -e 's,@@PREFIX@@,${PREFIX},g' \
< ${FILESDIR}/pgpdecode > ${WRKSRC}/bin/pgpdecode
${SED} -e 's,@@PREFIX@@,${PREFIX},g' \
< ${FILESDIR}/pgpencrypt > ${WRKSRC}/bin/pgpencrypt
${SED} -e 's,@@PREFIX@@,${PREFIX},g' \
< ${FILESDIR}/pgpsign > ${WRKSRC}/bin/pgpsign
${INSTALL_SCRIPT} ${WRKSRC}/bin/pgpencrypt ${PREFIX}/bin/pgpencrypt
${INSTALL_SCRIPT} ${WRKSRC}/bin/pgpdecode ${PREFIX}/bin/pgpdecode
${INSTALL_SCRIPT} ${WRKSRC}/bin/pgpsign ${PREFIX}/bin/pgpsign
${SED} -e 's,@@PREFIX@@,${PREFIX},g' \
< ${FILESDIR}/dot.pinerc.pgp.sample \
> ${WRKSRC}/dot.pinerc.pgp.sample
${INSTALL_DATA} ${WRKSRC}/dot.pinerc.pgp.sample \
${PREFIX}/etc/dot.pinerc.pgp.sample
${INSTALL_MAN} ${WRKSRC}/doc/pico.1 ${PREFIX}/man/man1/pico.1
${INSTALL_MAN} ${WRKSRC}/doc/pilot.1 ${PREFIX}/man/man1/pilot.1
${INSTALL_MAN} ${WRKSRC}/doc/pine.1 ${PREFIX}/man/man1/pine.1
.if !defined(NOPORTDOCS)
${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \
${PREFIX}/share/doc/pine \
${PREFIX}/share/doc/pine/tech-notes
${INSTALL_DATA} ${WRKSRC}/doc/brochure.txt ${PREFIX}/share/doc/pine
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/doc/pine
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes/*.html \
${PREFIX}/share/doc/pine/tech-notes/
.endif
post-install:
${PREFIX}/bin/pine -P ${PREFIX}/etc/pine.conf -conf >${WRKSRC}/pine.conf
${INSTALL_DATA} ${WRKSRC}/pine.conf ${PREFIX}/etc/pine.conf
# hack to allow slave ports to include bsd.port.pre.mk and then this file
.if defined(PRE_MK_INCLUDED)
.include <bsd.port.post.mk>
.else
.include <bsd.port.mk>
.endif