Skip to content

Commit

Permalink
net/openntpd: Sanitize MANPREFIX
Browse files Browse the repository at this point in the history
Approved by:    portmgr (blanket)
  • Loading branch information
5u623l20 committed Jan 22, 2024
1 parent c61055d commit 58509c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions net/openntpd/Makefile
@@ -1,6 +1,6 @@
PORTNAME= openntpd
PORTVERSION= 6.8p1
PORTREVISION= 8
PORTREVISION= 9
PORTEPOCH= 2
CATEGORIES= net
MASTER_SITES= OPENBSD/OpenNTPD
Expand All @@ -22,9 +22,9 @@ USERS= _ntp
GROUPS= _ntp

GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share

SUB_FILES= 480.status-openntpd pkg-message
SUB_LIST= MANPREFIX="${MANPREFIX}"

pre-build:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
Expand Down
4 changes: 2 additions & 2 deletions net/openntpd/files/pkg-message.in
@@ -1,11 +1,11 @@
[
{ type: install
message: <<EOM
OpenNTPD's man page has been installed as %%MANPREFIX%%/man/man8/ntpd.8.
OpenNTPD's man page has been installed as %%PREFIX%%/share/man/man8/ntpd.8.
To view it instead of the base system ntpd's, override the manual search
path:

MANPATH=%%MANPREFIX%%/man man ntpd
MANPATH=%%PREFIX%%/share/man man ntpd
EOM
}
]
6 changes: 3 additions & 3 deletions net/openntpd/pkg-plist
@@ -1,7 +1,7 @@
@sample etc/ntpd.conf.sample
etc/periodic/daily/480.status-openntpd
man/man5/ntpd.conf.5.gz
man/man8/ntpctl.8.gz
man/man8/ntpd.8.gz
share/man/man5/ntpd.conf.5.gz
share/man/man8/ntpctl.8.gz
share/man/man8/ntpd.8.gz
sbin/ntpctl
sbin/ntpd

0 comments on commit 58509c8

Please sign in to comment.