aboutsummaryrefslogtreecommitdiff
path: root/sysutils/freebsd-rustdate/Makefile
blob: 164e2972a02ba5cb40bd2543ce26dc3fcba1d46b (plain) (blame)
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=	freebsd-rustdate
DISTVERSION=	1.2.1
CATEGORIES=	sysutils
MASTER_SITES=	https://rustdate.over-yonder.net/dl/ \
		https://distfiles.over-yonder.net/freebsd-rustdate/
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265703
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	fullermd@over-yonder.net
COMMENT=	Faster freebsd-update replacement
WWW=		https://rustdate.over-yonder.net/

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo ssl tar:xz

PLIST_FILES=	bin/freebsd-rustdate \
		etc/bash_completion.d/freebsd-rustdate.bash \
		share/fish/completions/freebsd-rustdate.fish \
		share/zsh/site-functions/_freebsd-rustdate

post-install:
	@${MKDIR} \
		${STAGEDIR}${PREFIX}/etc/bash_completion.d \
		${STAGEDIR}${PREFIX}/share/fish/completions \
		${STAGEDIR}${PREFIX}/share/zsh/site-functions
	${STAGEDIR}${PREFIX}/bin/freebsd-rustdate complete -s bash > \
		${STAGEDIR}${PREFIX}/etc/bash_completion.d/freebsd-rustdate.bash
	${STAGEDIR}${PREFIX}/bin/freebsd-rustdate complete -s fish > \
		${STAGEDIR}${PREFIX}/share/fish/completions/freebsd-rustdate.fish
	${STAGEDIR}${PREFIX}/bin/freebsd-rustdate complete -s zsh > \
		${STAGEDIR}${PREFIX}/share/zsh/site-functions/_freebsd-rustdate

.include <bsd.port.mk>