2003-06-02 03:15:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.69 2003/06/02 01:18:39 jschauma Exp $
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2003-01-23 08:37:18 +01:00
|
|
|
DISTNAME= pine4.53
|
|
|
|
PKGNAME= pine-4.53
|
2003-05-02 13:53:34 +02:00
|
|
|
PKGREVISION= 1
|
1997-11-22 06:27:54 +01:00
|
|
|
CATEGORIES= mail news
|
1999-11-22 09:57:24 +01:00
|
|
|
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/ \
|
2000-02-09 23:17:44 +01:00
|
|
|
ftp://ftp.fu-berlin.de/unix/mail/pine/
|
2002-12-14 11:34:43 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2003-06-02 03:15:31 +02:00
|
|
|
MAINTAINER= tech-pkg@netbsd.org
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://www.washington.edu/pine/
|
2001-08-06 04:58:57 +02:00
|
|
|
COMMENT= Program for Internet News and E-mail
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2001-06-05 00:22:43 +02:00
|
|
|
LICENSE= pine-license
|
|
|
|
|
2001-03-13 05:41:19 +01:00
|
|
|
BUILD_DEFS+= PINE_USE_LDAP
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2002-12-14 11:34:43 +01:00
|
|
|
USE_BUILDLINK2= YES
|
2002-10-09 01:31:01 +02:00
|
|
|
|
|
|
|
.if defined(PINE_USE_LDAP) && (${PINE_USE_LDAP} == "YES")
|
|
|
|
. include "../../databases/openldap/buildlink2.mk"
|
2001-10-26 17:17:38 +02:00
|
|
|
LDAPCFLAGS= LDAPCFLAGS="-DENABLE_LDAP"
|
2001-03-13 05:41:19 +01:00
|
|
|
LDAPLIBS= LDAPLIBS="-lldap -llber"
|
|
|
|
.endif
|
|
|
|
|
2000-09-19 15:27:00 +02:00
|
|
|
pre-patch:
|
2000-12-18 19:09:11 +01:00
|
|
|
# Make sure the imap lib that comes with pine isn't
|
2000-09-19 15:27:00 +02:00
|
|
|
# used (see http://www.securityfocus.com/advisories/2646)
|
2000-10-22 00:45:28 +02:00
|
|
|
${RM} -fr ${WRKSRC}/imap
|
2000-09-19 15:27:00 +02:00
|
|
|
|
1998-07-19 07:21:34 +02:00
|
|
|
do-configure:
|
2002-07-18 16:18:48 +02:00
|
|
|
${CP} -f ${WRKSRC}/pine/osdep/os-${BUILDFILE}.h ${WRKSRC}/pine/osdep/os-${BUILDFILE}.h.orig
|
2000-09-19 15:27:00 +02:00
|
|
|
${SED} \
|
|
|
|
-e 's@/usr/local/lib/@${PREFIX}/etc/@' \
|
2001-11-06 21:04:46 +01:00
|
|
|
-e 's@DEFAULT_DEBUG.*2@DEFAULT_DEBUG 0@' \
|
2002-07-18 16:18:48 +02:00
|
|
|
<${WRKSRC}/pine/osdep/os-${BUILDFILE}.h.orig >${WRKSRC}/pine/osdep/os-${BUILDFILE}.h
|
1998-11-13 17:32:37 +01:00
|
|
|
@${RM} -rf ${WRKSRC}/pico
|
2002-10-09 01:31:01 +02:00
|
|
|
@${LN} -sf ${BUILDLINK_DIR}/include/pico ${WRKSRC}/pico
|
1997-11-22 06:41:33 +01:00
|
|
|
|
|
|
|
do-build:
|
2002-10-09 01:31:01 +02:00
|
|
|
cd ${WRKSRC} && ./build ${BUILDNAME} ${LDAPCFLAGS} ${LDAPLIBS} \
|
|
|
|
PREFIX=${PREFIX} \
|
|
|
|
CC="${BUILDLINK_CC} ${CFLAGS} ${LDFLAGS}"
|
1997-11-22 06:41:33 +01:00
|
|
|
|
|
|
|
do-install:
|
2002-01-02 01:46:55 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/pine ${PREFIX}/bin/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/rpdump ${PREFIX}/bin/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/rpload ${PREFIX}/bin/
|
1998-07-19 05:39:17 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/pgpencrypt ${PREFIX}/bin/
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/pgpdecode ${PREFIX}/bin/
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/pgpsign ${PREFIX}/bin/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pine
|
1999-11-11 18:40:16 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/dot.pinerc.pgp.sample ${PREFIX}/share/examples/pine/dot.pinerc.pgp
|
1998-07-19 05:39:17 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/pine.1 ${PREFIX}/man/man1/pine.1
|
1998-01-24 21:36:06 +01:00
|
|
|
( ${ECHO} '# (This file is not part of the pine distribution! - HF)' ; \
|
|
|
|
${PREFIX}/bin/pine -conf ) | ${SED} \
|
1997-11-22 06:41:33 +01:00
|
|
|
-e 's|^\(use-only-domain-name\)=.*$$|\1=No|g' \
|
|
|
|
-e 's|^\(feature-list\)=.*$$|\1=enable-mail-check-cue,enable-suspend,expanded-view-of-addressbooks,include-header-in-reply,include-text-in-reply,show-selected-in-boldface,signature-at-bottom|g' \
|
|
|
|
-e 's|^\(sort-key\)=.*$$|\1=Arrival/Reverse|g' \
|
1999-11-11 18:40:16 +01:00
|
|
|
>${PREFIX}/share/examples/pine/pine.conf
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/pine.conf.fixed ${PREFIX}/share/examples/pine/
|
|
|
|
@[ -f ${PREFIX}/etc/pine.conf ] || ${CP} ${PREFIX}/share/examples/pine/pine.conf ${PREFIX}/etc/
|
2000-11-09 04:37:26 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pine
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pine/contrib
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pine/contrib/utils
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/pine/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/krb5-setup ${PREFIX}/share/pine/contrib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/ldap-setup ${PREFIX}/share/pine/contrib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/utils/* ${PREFIX}/share/pine/contrib/utils
|
2001-11-27 04:12:54 +01:00
|
|
|
${CHMOD} +x ${PREFIX}/share/pine/contrib/utils/*.sh
|
1997-11-22 06:27:54 +01:00
|
|
|
|
2002-10-09 01:31:01 +02:00
|
|
|
.include "../../editors/pico/buildlink2.mk"
|
|
|
|
.include "../../mail/imap-uw/buildlink2.mk"
|
|
|
|
.include "../../security/openssl/buildlink2.mk"
|
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|
2002-10-09 01:31:01 +02:00
|
|
|
|
2000-01-04 17:58:50 +01:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2002-10-27 19:04:05 +01:00
|
|
|
BUILDNAME= so5
|
|
|
|
BUILDFILE= sol
|
2002-06-21 16:13:36 +02:00
|
|
|
.elif ${OPSYS} == "Linux"
|
2002-07-18 16:18:48 +02:00
|
|
|
BUILDNAME= lrh
|
|
|
|
BUILDFILE= lnx
|
2002-07-28 07:49:28 +02:00
|
|
|
.elif ${OPSYS} == "Darwin"
|
|
|
|
BUILDNAME= osx
|
|
|
|
BUILDFILE= osx
|
2000-01-04 17:58:50 +01:00
|
|
|
.else
|
|
|
|
BUILDNAME= neb
|
2002-07-18 16:18:48 +02:00
|
|
|
BUILDFILE= neb
|
2000-01-04 17:58:50 +01:00
|
|
|
.endif
|