1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

mail/sendmail-devel: use ${PREFIX}/share/man

This commit is contained in:
Dirk Meyer 2024-01-11 19:00:48 +01:00
parent 600a4eef8e
commit f1fbe644d3
2 changed files with 12 additions and 9 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= sendmail
PORTVERSION= 8.17.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/
DISTNAME= ${PORTNAME}.${PORTVERSION}
@ -31,7 +31,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DOCS= KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES \
sendmail/TRACEFLAGS sendmail/SECURITY sendmail/TUNING
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==} \
MANPREFIX=${MANPREFIX:S=$=/=:S=${PREFIX}==:S=^/==}
MANPREFIX=${PREFIX}/share/
SUB_FILES= pkg-message
WCONF= ${WRKSRC}/devtools/Site
@ -217,7 +217,10 @@ post-build:
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} op.txt)
pre-install:
${MKDIR} ${STAGEDIR}/etc/mail
${MKDIR} ${STAGEDIR}/etc/mail \
${STAGEDIR}${PREFIX}/share/man/cat1 \
${STAGEDIR}${PREFIX}/share/man/cat5 \
${STAGEDIR}${PREFIX}/share/man/cat8
@${CAT} ${PKGDIR}/pkg-plist >${PLIST}
@cd ${WRKSRC} && ${FIND} cf -type f | \
${AWK} '{print "share/sendmail/" $$1}' >>${PLIST}
@ -244,18 +247,18 @@ post-install:
(cd ${WRKSRC}/rmail && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} force-install)
.for i in ${LMAN8}
${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${MANPREFIX}/man/man8/
${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${PREFIX}/share/man/man8/
.endfor
.for i in ${LMAN5}
${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${MANPREFIX}/man/man5/
${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${PREFIX}/share/man/man5/
.endfor
.for i in ${LMAN1}
${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${MANPREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/*/${i} ${STAGEDIR}${PREFIX}/share/man/man1/
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/share/sendmail
${TAR} -C ${WRKSRC} -cf - cf | \
${TAR} -C ${STAGEDIR}${PREFIX}/share/sendmail -xf -
${RM} ${STAGEDIR}${PREFIX}/man/cat*/*
${RM} -rfv ${STAGEDIR}${PREFIX}/share/man/cat*
# final perm of sendmail is 2555 (see plist), needed for strip cmd
${CHMOD} 755 ${STAGEDIR}${PREFIX}/sbin/sendmail
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vacation

View File

@ -1,6 +1,6 @@
define(`confEBINDIR',`%%PREFIX%%/libexec')
define(`confMANROOT',`%%PREFIX%%/man/cat')
define(`confMANROOTMAN',`%%PREFIX%%/man/man')
define(`confMANROOT',`%%PREFIX%%/share/man/cat')
define(`confMANROOTMAN',`%%PREFIX%%/share/man/man')
define(`confMBINDIR',`%%PREFIX%%/sbin')
define(`confSBINDIR',`%%PREFIX%%/sbin')
define(`confUBINDIR',`%%PREFIX%%/bin')