2000-02-29 07:59:38 +00:00
|
|
|
# New ports collection makefile for: pgp4pine
|
2000-02-29 08:07:12 +00:00
|
|
|
# Date created: 29 February 2000
|
|
|
|
# Whom: Holger Lamm <holger@flatline.de>
|
2000-02-29 07:59:38 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 20:01:08 +00:00
|
|
|
PORTNAME= pgp4pine
|
2001-04-17 11:26:31 +00:00
|
|
|
PORTVERSION= 1.76
|
2001-10-17 13:14:13 +00:00
|
|
|
PORTREVISION= 2
|
2000-02-29 07:59:38 +00:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://pgp4pine.flatline.de/
|
2001-05-30 16:49:20 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-1
|
2000-02-29 07:59:38 +00:00
|
|
|
|
2002-11-23 17:18:39 +00:00
|
|
|
MAINTAINER= holger@e-gitt.net
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT= Tool to use PGP 2/5/6 or GPG with Pine
|
2000-02-29 07:59:38 +00:00
|
|
|
|
2001-10-17 13:14:13 +00:00
|
|
|
# Global variables
|
|
|
|
#
|
|
|
|
|
2001-06-01 17:47:25 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2000-02-29 07:59:38 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-04-17 11:26:31 +00:00
|
|
|
CONFIGURE_ARGS= --with-docdir=${PREFIX}/share/doc
|
2002-11-04 00:46:29 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-02-29 07:59:38 +00:00
|
|
|
|
2001-10-17 13:14:13 +00:00
|
|
|
MAN1= pgp4pine.1
|
|
|
|
|
|
|
|
MSG_FILE= ${PKGDIR}/pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
|
|
|
|
SAMPLEDIR= ${PREFIX}/share/examples/${PORTNAME}
|
|
|
|
SCRIPTDIR= ${SAMPLEDIR}
|
|
|
|
|
2004-03-04 09:17:47 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-10-17 13:14:13 +00:00
|
|
|
# Post-patch
|
|
|
|
#
|
|
|
|
|
2002-11-04 00:46:29 +00:00
|
|
|
post-patch: patch-path patch-pkgmessage
|
2001-10-17 13:14:13 +00:00
|
|
|
|
|
|
|
patch-path:
|
2002-11-04 00:46:29 +00:00
|
|
|
@${REINPLACE_CMD} \
|
2001-10-17 13:14:13 +00:00
|
|
|
's|/usr/local|${PREFIX}|g;s|/doc/|/share/examples/|g' \
|
|
|
|
${WRKSRC}/INSTALL \
|
|
|
|
${WRKSRC}/insert_entries.pl ${WRKSRC}/remove_entries.pl
|
|
|
|
|
2002-11-04 00:46:29 +00:00
|
|
|
patch-pkgmessage:
|
2001-10-17 13:14:13 +00:00
|
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
|
|
|
|
|
|
|
|
# Post-configure
|
|
|
|
#
|
|
|
|
|
|
|
|
post-configure: patch-man
|
|
|
|
|
|
|
|
patch-man:
|
2002-11-04 00:46:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/doc/|/examples/|g' \
|
2001-10-17 13:14:13 +00:00
|
|
|
${WRKSRC}/pgp4pine/docs/en/pgp4pine.1
|
|
|
|
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
|
|
|
post-install: install-sample install-script uninstall-doc display-message
|
|
|
|
|
|
|
|
install-sample:
|
|
|
|
@${MKDIR} ${SAMPLEDIR}
|
|
|
|
@${MV} ${DOCSDIR}/pgp4pinerc.example ${SAMPLEDIR}
|
|
|
|
|
|
|
|
install-script:
|
|
|
|
@${MKDIR} ${SCRIPTDIR}
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/insert_entries.pl \
|
|
|
|
${WRKSRC}/remove_entries.pl ${SCRIPTDIR}
|
|
|
|
|
|
|
|
uninstall-doc:
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${RM} -rf ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
display-message:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2004-03-04 09:17:47 +00:00
|
|
|
.include <bsd.port.post.mk>
|