1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

net-mgmt/ipacctd: Move man pages to share/man

Approved by:	portmgr (blanket)
This commit is contained in:
Christian Weisgerber 2024-03-14 13:55:41 +01:00
parent e2216da9e7
commit 708c87b104
4 changed files with 26 additions and 7 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= ipacctd
PORTVERSION= 1.47
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= LOCAL/skv
@ -11,16 +11,12 @@ LICENSE= BSD2CLAUSE
USES= uidfix
USE_RC_SUBR= ipacctd
MAKE_ENV= BINDIR="${PREFIX}/sbin"
OPTIONS_DEFINE= DOCS
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
post-patch:
@${REINPLACE_CMD} 's,{MANDIR},{DESTDIR}$$&,' ${WRKSRC}/man_ru/Makefile
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/ru
${INSTALL_DATA} ${WRKSRC}/README.ipacctd ${STAGEDIR}${DOCSDIR}/ru

View File

@ -0,0 +1,13 @@
--- man_ru/Makefile.orig 2024-03-14 12:52:55 UTC
+++ man_ru/Makefile
@@ -1,8 +1,8 @@ PREFIX?= /usr/local
PREFIX?= /usr/local
-MANDIR= ${PREFIX}/man/ru.KOI8-R/man
+MANDIR= ${PREFIX}/share/man/ru.KOI8-R/man
MAN8= ipacctd.8
beforeinstall:
- mkdir -p ${MANDIR}8
+ mkdir -p ${DESTDIR}${MANDIR}8
.include <bsd.prog.mk>

View File

@ -0,0 +1,10 @@
--- src/Makefile.orig 2024-03-14 12:52:32 UTC
+++ src/Makefile
@@ -8,6 +8,6 @@ MAN= ipacctd.8
CFLAGS+= -g
MAN= ipacctd.8
-MANDIR= ${PREFIX}/man/man
+MANDIR= ${PREFIX}/share/man/man
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
man/man8/ipacctd.8.gz
man/ru.KOI8-R/man8/ipacctd.8.gz
sbin/ipacctd
%%PORTDOCS%%%%DOCSDIR%%/ru/README.ipacctd
share/man/man8/ipacctd.8.gz
share/man/ru.KOI8-R/man8/ipacctd.8.gz