blob: 43046dedbcecbe2f2674e9a6f1598ea6dd1416c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# 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>
|