1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/ports-mgmt/portmaster/Makefile
Stefan Eßer 4812894fc1 ports-mgmt/portmaster: Make compatible with pkg-1.17.0
The new pkg command uses the ".pkg" extension for all files,
independently of the archive format chosen.

This update adapts portmaster to that convention and removes all
support for other extensions. (This might be considered premature,
but supporting multiple extensions would require logic changes and
I expect all users to quickly convert their local repositories to
comply with the new naming.)

The package format can still be selected as before.

If you have package files in /usr/packages/* that you want to be
visible to portmaster, then rename them, e.g. from "*.txz" to "*.pkg".
(The "mmv" command (misc/mmv port) performs this renaming with the
following command in /usr/packages/All:

	  mmv "*.txz" =1.pkg
2021-07-22 16:14:54 +02:00

53 lines
1.4 KiB
Makefile

PORTNAME= portmaster
PORTVERSION= 3.19
PORTREVISION= 31
CATEGORIES= ports-mgmt
MAINTAINER= se@FreeBSD.org
COMMENT= Manage your ports without external databases or languages
LICENSE= BSD2CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= freebsd
OPTIONS_DEFINE= BASH ZSH
OPTIONS_DEFAULT=BASH ZSH
PLIST_FILES= sbin/portmaster \
etc/portmaster.rc.sample \
man/man8/portmaster.8.gz
BASH_PLIST_FILES= etc/bash_completion.d/portmaster.sh
ZSH_PLIST_FILES= share/zsh/site-functions/_portmaster
NO_ARCH= yes
verify: checksum
do-build:
.for file in portmaster files/portmaster.rc.sample files/portmaster.8
@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \
-e 's#===>>> Version [0-9._]*#===>>> Version ${PKGVERSION}#' ${WRKSRC}/${file}
.endfor
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/portmaster \
${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/files/portmaster.rc.sample \
${STAGEDIR}${PREFIX}/etc
${INSTALL_MAN} ${WRKSRC}/files/portmaster.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8
post-install-BASH-on:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/files/bash-completions \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/portmaster.sh
post-install-ZSH-on:
${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/files/zsh-completions \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_portmaster
.include <bsd.port.mk>