summaryrefslogtreecommitdiff
path: root/dns/dog/Makefile
blob: 48c7a9da5fb4e3c9b26bc78ffbf1bbfcb695d09c (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
PORTNAME=	dog
DISTVERSIONPREFIX=	v
DISTVERSION=	0.1.0
PORTREVISION=	10
CATEGORIES=	dns net

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Command-line DNS client

LICENSE=	EUPL
LICENSE_NAME=	European Union Public Licence V. 1.2
LICENSE_FILE=	${WRKSRC}/LICENCE
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USES=		cargo ssl
USE_GITHUB=	yes
GH_ACCOUNT=	ogham

CONFLICTS_INSTALL=	py*-datadog

CARGO_CRATES=	addr2line-0.14.0 \
		adler-0.2.3 \
		ansi_term-0.11.0 \
		ansi_term-0.12.1 \
		atty-0.2.14 \
		autocfg-1.0.1 \
		backtrace-0.3.54 \
		bitflags-1.2.1 \
		byteorder-1.3.4 \
		cc-1.0.61 \
		cfg-if-0.1.10 \
		cfg-if-1.0.0 \
		core-foundation-0.7.0 \
		core-foundation-sys-0.7.0 \
		ctor-0.1.16 \
		datetime-0.5.1 \
		difference-2.0.0 \
		failure-0.1.8 \
		failure_derive-0.1.8 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		getopts-0.2.21 \
		getrandom-0.1.15 \
		gimli-0.23.0 \
		hermit-abi-0.1.17 \
		httparse-1.3.4 \
		ipconfig-0.2.2 \
		itoa-0.4.6 \
		json-0.12.4 \
		lazy_static-1.4.0 \
		libc-0.2.80 \
		log-0.4.11 \
		miniz_oxide-0.4.3 \
		native-tls-0.2.4 \
		object-0.22.0 \
		openssl-0.10.30 \
		openssl-probe-0.1.2 \
		openssl-sys-0.9.58 \
		output_vt100-0.1.2 \
		pkg-config-0.3.19 \
		ppv-lite86-0.2.10 \
		pretty_assertions-0.6.1 \
		proc-macro2-1.0.24 \
		quote-1.0.7 \
		rand-0.7.3 \
		rand_chacha-0.2.2 \
		rand_core-0.5.1 \
		rand_hc-0.2.0 \
		redox_syscall-0.1.57 \
		regex-1.4.2 \
		regex-syntax-0.6.21 \
		remove_dir_all-0.5.3 \
		rustc-demangle-0.1.18 \
		ryu-1.0.5 \
		schannel-0.1.19 \
		security-framework-0.4.4 \
		security-framework-sys-0.4.3 \
		serde-1.0.117 \
		serde_derive-1.0.117 \
		serde_json-1.0.59 \
		socket2-0.3.15 \
		syn-1.0.48 \
		synstructure-0.12.4 \
		tempfile-3.1.0 \
		unicode-width-0.1.8 \
		unicode-xid-0.2.1 \
		vcpkg-0.2.10 \
		wasi-0.9.0+wasi-snapshot-preview1 \
		widestring-0.4.3 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		winreg-0.6.2 \
		mutagen,mutagen-core,mutagen-transform@git+https://github.com/llogiq/mutagen\#c7abc956a10e8a3e2cc71f21279ea0a42f7b7c10

PORTDOCS=	README.md

OPTIONS_DEFINE=		COMPLETIONS DOCS
OPTIONS_DEFAULT=	COMPLETIONS
OPTIONS_SUB=		yes

COMPLETIONS_DESC=	Install shell completions for bash, fish and zsh

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

post-install-COMPLETIONS-on:
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
	${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.bash \
		${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
	${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.fish \
		${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
	${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.zsh \
		${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>