92ba3dcdfe
ok umap^Wlandry@
29 lines
1.0 KiB
Makefile
29 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.143 2017/01/06 15:14:44 danj Exp $
|
|
|
|
CATEGORIES= geo
|
|
COMMENT= geographic location of past and present OpenBSD developers
|
|
|
|
DISTNAME= openbsd-developers-2.0
|
|
REVISION= 10
|
|
|
|
DISTFILES=
|
|
HOMEPAGE= https://www.openbsd.org/
|
|
|
|
NO_BUILD= Yes
|
|
NO_TEST= Yes
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/markers
|
|
${INSTALL_DATA} ${FILESDIR}/OpenBSD ${PREFIX}/share/markers
|
|
perl -p -e 'BEGIN { print "{ \"type\": \"FeatureCollection\",\"features\":[\n" } ; \
|
|
s/^#.*$$//; s/^([\d\-\.]+)\s+([\d\.\-]+)\s+"(\w+)"\s+# (.*)$$/{ "type": "Feature", "geometry" : {"type" : "Point", "coordinates": [\2, \1]}, "properties" : {"login": "\3@", "name": "\4"}},/; \
|
|
END { print "]}" }' ${FILESDIR}/OpenBSD | \
|
|
perl -0 -pe 's#,\n\n##' > ${PREFIX}/share/markers/OpenBSD.geojson
|
|
|
|
where-am-i:
|
|
@echo "$$(sysctl -n hw.sensors.nmea0.angle0 | cut -d' ' -f1)\t\t$$(sysctl -n hw.sensors.nmea0.angle1 | cut -d' ' -f1)\t\t\"$$(whoami)\"\\t\t#$$(finger $$(whoami) | head -1 | cut -d\: -f3-)"
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
.include <bsd.port.mk>
|