View | Details | Raw Unified | Return to bug 250314
Collapse All | Expand All

(-)b/misc/bh1750-kmod/Makefile (+31 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	bh1750-kmod
4
DISTVERSION=	g20201012
5
CATEGORIES=	misc
6
DIST_SUBDIR=	gpio/${GL_ACCOUNT}
7
8
MAINTAINER=	mishin@mh.net.ru
9
COMMENT=	FreeBSD kernel driver for a BH1750FVI based light sensor
10
11
LICENSE=	BSD2CLAUSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
ONLY_FOR_ARCHS=	armv7
15
ONLY_FOR_ARCHS_REASON=	not tested on anything else
16
17
USES=		kmod
18
19
# gitlab variables
20
USE_GITLAB=	yes
21
GL_ACCOUNT=	alexandermishin13
22
GL_PROJECT=	bh1750-kmod
23
GL_COMMIT=	c5eec812084f4c64e4a5ffec6c8c086cb9dfbd57
24
25
SUB_FILES=	pkg-message
26
27
post-install:
28
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
29
	(cd ${WRKSRC}/fdt-overlay && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
30
31
.include <bsd.port.mk>
(-)b/misc/bh1750-kmod/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1602449267
2
SHA256 (gpio/alexandermishin13/alexandermishin13-bh1750-kmod-c5eec812084f4c64e4a5ffec6c8c086cb9dfbd57_GL0.tar.gz) = 86ec885f6c1b8839420dabd41a825c75320565e72714331b94b4f2012d8a71ec
3
SIZE (gpio/alexandermishin13/alexandermishin13-bh1750-kmod-c5eec812084f4c64e4a5ffec6c8c086cb9dfbd57_GL0.tar.gz) = 23134
(-)b/misc/bh1750-kmod/files/pkg-message.in (+23 lines)
Added Link Here
1
[
2
{
3
type: install
4
message: <<EOM
5
6
Just edit for Your needs one of the fdt-overlays You may find here:
7
8
  %%EXAMPLESDIR%%/*.dtso
9
10
Type to compile and install:
11
12
  make
13
  make install
14
15
Then add its name w/o extention to /boot/loader.conf for apply the overlay
16
on boot:
17
18
  fdt_overlays="your-bh1750-overlay"
19
20
Reboot.
21
EOM
22
}
23
]
(-)b/misc/bh1750-kmod/pkg-descr (+9 lines)
Added Link Here
1
FreeBSD kernel driver for a bh1750 sensor (up to two ones on an i2c bus).
2
3
It makes the sensor to measure ambient light every 5 seconds and updates a
4
corresponding sysctl(8) variables. You may manage the measurement by changing
5
some variables.
6
7
For building the port You need the kernel sources installed into /usr/src.
8
9
WWW: https://gitlab.com/alexandermishin13/bh1750-kmod
(-)b/misc/bh1750-kmod/pkg-plist (+6 lines)
Added Link Here
1
/%%KMODDIR%%/bh1750.ko
2
share/examples/bh1750-kmod/Makefile
3
@sample %%EXAMPLESDIR%%/sun8i-h2-plus-bh1750-i2c0.dtso.sample
4
@sample %%EXAMPLESDIR%%/sun8i-h3-bh1750-i2c0.dtso.sample
5
@sample %%EXAMPLESDIR%%/bh1750-rpi2-i2c0.dtso.sample
6
man/man4/bh1750.4.gz

Return to bug 250314