Skip to content

Commit

Permalink
security/keychain: Update manpages path
Browse files Browse the repository at this point in the history
Move manpages to ${PREFIX}/share/man

While here, remove useless REINPLACE_CMD

Sponsored by:	Rubicon Communications, LLC ("Netgate")
  • Loading branch information
rbgarga committed Jan 8, 2024
1 parent 965dd64 commit 7f7f472
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions security/keychain/Makefile
@@ -1,5 +1,6 @@
PORTNAME= keychain
PORTVERSION= 2.8.5
PORTREVISION= 1
CATEGORIES= security

MAINTAINER= garga@FreeBSD.org
Expand All @@ -19,21 +20,17 @@ OPTIONS_DEFINE= DOCS
NO_BUILD= yes

PLIST_FILES= bin/${PORTNAME} \
man/man1/keychain.1.gz
share/man/man1/keychain.1.gz

PORTDOCS= ChangeLog README.md

.if !exists(${LOCALBASE}/bin/ssh-agent) && !exists(/usr/bin/ssh-agent)
RUN_DEPENDS+= ssh-agent:security/openssh-portable
.endif

post-patch:
@${REINPLACE_CMD} -e '1 s,^.*,#!/bin/sh,' \
${WRKSRC}/${PORTNAME}

do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/keychain.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/keychain.1 ${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

Expand Down

0 comments on commit 7f7f472

Please sign in to comment.