summaryrefslogtreecommitdiff
path: root/sysutils/ansible-kld/Makefile
blob: f75e64ae247280977e1060d759a632fecfc866f6 (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
PORTNAME=	ansible-kld
DISTVERSION=	0.1
CATEGORIES=	sysutils
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Ansible module to load kernel modules or update /boot/loader.conf

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}

USES=		python shebangfix
SHEBANG_FILES=	library/kld

USE_GITHUB=	yes
GH_ACCOUNT=	dlundgren
GH_PROJECT=	ansible-freebsd-modules
GH_TAGNAME=	cf37fc1e16fc03852abc8933e7959b22b51a5c90

NO_ARCH=	yes
NO_BUILD=	yes

ANSIBLE_MOD=	share/${PYTHON_PKGNAMEPREFIX}ansible/plugins/modules

PLIST_FILES=	${ANSIBLE_MOD}/kld

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}
	${INSTALL_SCRIPT} ${WRKSRC}/library/kld \
		${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}/kld

.include <bsd.port.mk>