summaryrefslogtreecommitdiff
path: root/sysutils/topgrade/Makefile
blob: 9009ec20444a941dea43e6b0cf54bae4cd8faefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PORTNAME=	topgrade
DISTVERSIONPREFIX=	v
DISTVERSION=	10.2.4
PORTREVISION=	4
CATEGORIES=	sysutils

MAINTAINER=	freebsd@scd-systems.net
COMMENT=	Tool for upgrade everything
WWW=		https://github.com/topgrade-rs/topgrade

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	sudo:security/sudo

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	topgrade-rs

PLIST_FILES=	bin/topgrade \
		share/man/man1/topgrade.1.gz
PORTEXAMPLES=	config.example.toml

OPTIONS_DEFINE=	EXAMPLES

post-install:
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
		${STAGEDIR}${PREFIX}/bin/${PORTNAME} --gen-manpage > ${WRKSRC}/${PORTNAME}.1
		${INSTALL_MAN} ${WRKSRC}/topgrade.1 ${STAGEDIR}${PREFIX}/share/man/man1/

post-install-EXAMPLES-on:
		${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
		${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>