aboutsummaryrefslogtreecommitdiff
path: root/security/pgp/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-10-27 22:29:46 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-10-27 22:29:46 +0000
commit338eecf23761d8a27351a0657ead88ab54a8f9da (patch)
tree2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /security/pgp/Makefile
parent2078f2a7ae31de5a4474e59c2d813276c225277f (diff)
Notes
Diffstat (limited to 'security/pgp/Makefile')
-rw-r--r--security/pgp/Makefile32
1 files changed, 12 insertions, 20 deletions
diff --git a/security/pgp/Makefile b/security/pgp/Makefile
index 44213970aa39..3c3fe9f6417f 100644
--- a/security/pgp/Makefile
+++ b/security/pgp/Makefile
@@ -12,37 +12,29 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= PGP International version - Public-Key encryption for the masses
ONLY_FOR_ARCHS= i386 alpha amd64 sparc64
-NO_STAGE= yes
+USES= manpages
WRKSRC= ${WRKDIR}/src
MAKEFILE= makefile
ALL_TARGET= freebsd-${ARCH:S/x86_64/amd64/}
MAKE_ENV= OS_CFLAGS="${CFLAGS}"
-PGPLIB= ${PREFIX}/share/pgp
+PGPLIB= ${STAGEDIR}${PREFIX}/share/pgp
MAN1= pgp.1 pgp2.1
-do-install:
- cd ${WRKSRC}; ${INSTALL_PROGRAM} -c -o bin -g bin -m 555 pgp ${PREFIX}/bin
- cd ${WRKSRC}/../doc; \
- ${INSTALL_MAN} -c -o bin -g bin -m 444 pgp.1 ${PREFIX}/man/man1
- -${MKDIR} ${PGPLIB}
- ${CHMOD} 555 ${PGPLIB}
- cd ${WRKSRC}/..; \
- ${INSTALL_DATA} -c -o bin -g bin -m 444 pgp.hlp \
- doc/pgpdoc1.txt doc/pgpdoc2.txt ${PGPLIB}; \
- ${INSTALL_DATA} -c -o bin -g bin -m 444 language.txt ${PGPLIB}/language.txt-dist; \
- [ -f ${PGPLIB}/language.txt ] || \
- ${INSTALL_DATA} -c -o bin -g bin -m 444 language.txt ${PGPLIB}; \
- ${INSTALL_DATA} -c -o bin -g bin -m 444 config.txt ${PGPLIB}/config.txt-dist; \
- [ -f ${PGPLIB}/config.txt ] || \
- ${INSTALL_DATA} -c -o bin -g bin -m 444 config.txt ${PGPLIB}
- -${PREFIX}/bin/pgp > /dev/null 2>&1 # update .idx file
-
post-extract:
cd ${WRKDIR}; ${TAR} -xf pgp263ii.tar; \
${RM} -f pgp263ii.tar
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pgp ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/../doc/pgp.1 ${STAGEDIR}${PREFIX}/man/man1/
+ -${MKDIR} ${PGPLIB}
+ cd ${WRKSRC}/.. && \
+ ${INSTALL_DATA} pgp.hlp doc/pgpdoc1.txt doc/pgpdoc2.txt ${PGPLIB}/
+ ${INSTALL_DATA} ${WRKSRC}/../language.txt ${PGPLIB}/language.txt-dist
+ ${INSTALL_DATA} ${WRKSRC}/../config.txt ${PGPLIB}/config.txt-dist
+
post-install:
- @${CP} ${PREFIX}/man/man1/pgp.1 ${PREFIX}/man/man1/pgp2.1
+ @${INSTALL_MAN} ${STAGEDIR}${PREFIX}/man/man1/pgp.1 ${STAGEDIR}${PREFIX}/man/man1/pgp2.1
.include <bsd.port.mk>