d37383893e
installs sample files PR: 30903 Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
83 lines
1.5 KiB
Makefile
83 lines
1.5 KiB
Makefile
# New ports collection makefile for: pgp4pine
|
|
# Date created: 29 February 2000
|
|
# Whom: Holger Lamm <holger@flatline.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pgp4pine
|
|
PORTVERSION= 1.76
|
|
PORTREVISION= 2
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://pgp4pine.flatline.de/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-1
|
|
|
|
MAINTAINER= holger@flatline.de
|
|
|
|
# Global variables
|
|
#
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-docdir=${PREFIX}/share/doc
|
|
|
|
MAN1= pgp4pine.1
|
|
|
|
MSG_FILE= ${PKGDIR}/pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
# Local variables
|
|
#
|
|
|
|
SAMPLEDIR= ${PREFIX}/share/examples/${PORTNAME}
|
|
SCRIPTDIR= ${SAMPLEDIR}
|
|
|
|
# Post-patch
|
|
#
|
|
|
|
post-patch: patch-path patch-message
|
|
|
|
patch-path:
|
|
@${PERL} -pi.fbsd -e \
|
|
's|/usr/local|${PREFIX}|g;s|/doc/|/share/examples/|g' \
|
|
${WRKSRC}/INSTALL \
|
|
${WRKSRC}/insert_entries.pl ${WRKSRC}/remove_entries.pl
|
|
|
|
patch-message:
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
|
|
|
|
# Post-configure
|
|
#
|
|
|
|
post-configure: patch-man
|
|
|
|
patch-man:
|
|
@${PERL} -pi.fbsd -e 's|/doc/|/examples/|g' \
|
|
${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}
|
|
|
|
.include <bsd.port.mk>
|