summaryrefslogtreecommitdiff
path: root/sysutils/topgrade/Makefile
blob: 30cfd17120bd6808a389b807c6269dadc2b46c81 (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
PORTNAME=	topgrade
DISTVERSIONPREFIX=	v
DISTVERSION=	9.0.1
CATEGORIES=	sysutils

MAINTAINER=	freebsd@scd-systems.net
COMMENT=	Tool for upgrade everything

LICENSE=	GPLv3

NOT_FOR_ARCHS=	i386
NOT_FOR_ARCHS_REASON=	failed to run custom build command for `sys-info v0.9.1`

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	r-darwish

PLIST_FILES=	bin/topgrade \
		man/man8/topgrade.8.gz
PORTEXAMPLES=	config.example.toml

OPTIONS_DEFINE=	EXAMPLES

post-install:
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
		${INSTALL_MAN} ${WRKSRC}/topgrade.8 ${STAGEDIR}${PREFIX}/man/man8/

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

.include <bsd.port.mk>