View | Details | Raw Unified | Return to bug 246784 | Differences between
and this patch

Collapse All | Expand All

(-)comms/Makefile (+3 lines)
Lines 107-112 Link Here
107
    SUBDIR += nmealib
107
    SUBDIR += nmealib
108
    SUBDIR += o2sms
108
    SUBDIR += o2sms
109
    SUBDIR += obexapp
109
    SUBDIR += obexapp
110
    SUBDIR += opencbm
111
    SUBDIR += opencbm-kmod
112
    SUBDIR += opencbm-plugin-xa1541
110
    SUBDIR += openobex
113
    SUBDIR += openobex
111
    SUBDIR += openzwave
114
    SUBDIR += openzwave
112
    SUBDIR += openzwave-devel
115
    SUBDIR += openzwave-devel
(-)comms/opencbm/Makefile (+74 lines)
Line 0 Link Here
1
# Created by: Felix Palmen <felix@palmen-it.de>
2
# $FreeBSD$
3
4
PORTNAME=	opencbm
5
PORTVERSION=	${OCBM_VERSION}
6
CATEGORIES=	comms archivers
7
8
PATCHFILES=	12ef17d4cf78903c9c52d7a348a816424d549b89.diff
9
10
MAINTAINER=	felix@palmen-it.de
11
COMMENT=	Commodore CBM serial IEC/IEEE-488 bus utilities
12
13
LICENSE=	GPLv2 BSD3CLAUSE
14
LICENSE_COMB=	multi
15
16
BUILD_DEPENDS=	cc65:devel/cc65
17
18
USES=		gmake
19
USE_LDCONFIG=	yes
20
21
OPTIONS_DEFINE=		DOCS INFO
22
OPTIONS_DEFAULT=	DOCS INFO
23
24
MAKE_ARGS=	CC=cc INFODIR=${PREFIX}/share/info
25
MAKEFILE=	LINUX/Makefile
26
MAKE_JOBS_UNSAFE=	yes
27
ALL_TARGET=	opencbm plugin-xu1541 plugin-xum1541
28
INSTALL_TARGET=	install install-plugin-xu1541 install-plugin-xum1541
29
30
DOCS_BUILD_DEPENDS=	dvips:print/tex-dvipsk \
31
			latex:print/tex-formats \
32
			linuxdoc:textproc/linuxdoc-tools
33
DOCS_USES=		ghostscript:build
34
DOCS_ALL_TARGET=	doc
35
DOCS_MAKE_ARGS_OFF=	TXT= DVI= PDF= HTML=
36
37
INFO_BUILD_DEPENDS=	linuxdoc:textproc/linuxdoc-tools
38
INFO_USES=		makeinfo
39
INFO_ALL_TARGET=	doc
40
INFO_INFO=		opencbm
41
INFO_MAKE_ARGS_OFF=	INFO=
42
43
OCBM_CONFDIR=	${LOCALBASE}/etc/opencbm.conf.d
44
45
post-patch:
46
	@${REINPLACE_CMD} -e 's|_ETC="$$1"|_ETC="$${1:-${LOCALBASE}/etc}"|' \
47
		-e 's|in /.*/ instead|in ${OCBM_CONFDIR}/ instead|' \
48
		-e "s|execute 'opencbm_|execute '|" \
49
		${WRKSRC}/opencbm/LINUX/plugin_helper_tools
50
51
post-install:
52
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopencbm.so.${OCBM_LIBVERSION}
53
.for p in xu1541 xum1541
54
	${STRIP_CMD} ${STAGEDIR}${PLUGINBASENAME}${p}.so.${OCBM_LIBVERSION}
55
.endfor
56
	@${RM} ${STAGEDIR}${PREFIX}/etc/opencbm.conf
57
	@${MV} ${STAGEDIR}${PREFIX}/etc/opencbm.conf.d/00opencbm.conf \
58
		${STAGEDIR}${PREFIX}/etc/opencbm.conf.d/00opencbm.conf.sample
59
	@${MV} ${STAGEDIR}${PREFIX}/bin/opencbm_plugin_helper_tools \
60
		${STAGEDIR}${PREFIX}/sbin/opencbm_plugin_helper_tools
61
62
post-install-DOCS-on:
63
	${MKDIR} ${STAGEDIR}${DOCSDIR}
64
	(cd ${WRKSRC}/opencbm/docs && \
65
		${COPYTREE_SHARE} "html misc opencbm.pdf opencbm.txt" \
66
		${STAGEDIR}${DOCSDIR})
67
68
post-install-INFO-on:
69
	${INSTALL_MAN} ${WRKSRC}/opencbm/docs/opencbm.info \
70
		${STAGEDIR}${PREFIX}/${INFO_PATH}
71
72
.include "Makefile.inc"
73
74
.include <bsd.port.mk>
(-)comms/opencbm/Makefile.inc (+19 lines)
Line 0 Link Here
1
# Created by: Felix Palmen <felix@palmen-it.de>
2
# $FreeBSD$
3
4
OCBM_VERSION=	0.4.99.99a
5
DISTVERSIONPREFIX=	v
6
DIST_SUBDIR=	opencbm
7
DISTINFO_FILE=	${.CURDIR}/../opencbm/distinfo
8
9
PATCH_DIST_STRIP=	-p1
10
PATCH_SITES=	https://github.com/OpenCBM/OpenCBM/commit/
11
12
USE_GITHUB=	yes
13
GH_ACCOUNT=	OpenCBM
14
GH_PROJECT=	OpenCBM
15
16
PATCH_WRKSRC=	${WRKDIR}/OpenCBM-${OCBM_VERSION}
17
18
OCBM_LIBVERSION=	0.4.99.99
19
PLUGINBASENAME=	${PREFIX}/lib/opencbm/plugin/libopencbm-
(-)comms/opencbm/distinfo (+11 lines)
Line 0 Link Here
1
TIMESTAMP = 1590503036
2
SHA256 (opencbm/OpenCBM-OpenCBM-v0.4.99.99a_GH0.tar.gz) = 0ae35e9011231eef1c4b6800bba16ced82690e80a91d67853888d49c63b874a0
3
SIZE (opencbm/OpenCBM-OpenCBM-v0.4.99.99a_GH0.tar.gz) = 8661428
4
SHA256 (opencbm/ca4c06e7430caf3b2296d4e1e00051fff015fc53.diff) = 3babd55eaa0378c688a422b1176325874a46fa4014e9420e672418998c592c27
5
SIZE (opencbm/ca4c06e7430caf3b2296d4e1e00051fff015fc53.diff) = 8726
6
SHA256 (opencbm/12ef17d4cf78903c9c52d7a348a816424d549b89.diff) = 2bea76abc6e3f19d93776c39a921c6e17d892613ae6e4740eda5f555483bb095
7
SIZE (opencbm/12ef17d4cf78903c9c52d7a348a816424d549b89.diff) = 561
8
SHA256 (opencbm/073b833772e4325c7f680d6aeb81bc11844f03ca.diff) = e4c5858162d000e099140d78590effc8b5dccbf1f80c9dcdfffc4420ad9b6c03
9
SIZE (opencbm/073b833772e4325c7f680d6aeb81bc11844f03ca.diff) = 27055
10
SHA256 (opencbm/3e967551e200d0c03aa4898e482626a7510acd21.diff) = d1d73fa395e16956dce1e971750ecefbb2b80b6be1c1ec95392fc9be4d2d4676
11
SIZE (opencbm/3e967551e200d0c03aa4898e482626a7510acd21.diff) = 825
(-)comms/opencbm/pkg-descr (+17 lines)
Line 0 Link Here
1
Commodore CBM serial IEC/IEEE-488 bus utilities
2
3
The OpenCBM package contains user space support programs and development
4
libraries to control and use CBM serial IEC/IEEE-488 bus devices as used by
5
most Commodore (CBM) 8-bit machines.
6
7
OpenCBM allows for access to Commodore seriel IEC bus devices such as CBM
8
1540, 1541, 1570, 1571 and 1581 floppy disk drives.
9
10
OpenCBM allows for access to Commodore (parallel) IEEE-488 bus devices such as
11
CBM 2031, 2040, 3040, 4031, 4040, 8050, 8250, 8280 and SFD-1001 floppy disk
12
drives.
13
14
The devices are connected via a custom USB adapter (called xu1541 or xum1541).
15
A fast .d64 disk copier/transfer program is included.
16
17
WWW: http://opencbm.sourceforge.net/
(-)comms/opencbm/pkg-plist (+101 lines)
Line 0 Link Here
1
bin/cbmcopy
2
bin/cbmctrl
3
bin/cbmformat
4
bin/cbmforng
5
bin/cbmlinetester
6
bin/cbmread
7
bin/cbmrpm41
8
bin/cbmwrite
9
bin/d64copy
10
bin/d82copy
11
bin/frm_analyzer
12
bin/imgcopy
13
bin/samplelibtransf
14
bin/xum1541cfg
15
@sample etc/opencbm.conf.d/00opencbm.conf.sample
16
etc/opencbm.conf.d/10xu1541.conf
17
etc/opencbm.conf.d/10xum1541.conf
18
include/cbmcopy.h
19
include/d64copy.h
20
include/opencbm.h
21
lib/libopencbm.a
22
lib/libopencbm.so
23
lib/libopencbm.so.0
24
lib/libopencbm.so.0.4.99.99
25
lib/opencbm/plugin/libopencbm-xu1541.a
26
lib/opencbm/plugin/libopencbm-xu1541.so
27
lib/opencbm/plugin/libopencbm-xu1541.so.0
28
lib/opencbm/plugin/libopencbm-xu1541.so.0.4.99.99
29
lib/opencbm/plugin/xu1541/read_event_log
30
lib/opencbm/plugin/xu1541/usb_echo_test
31
lib/opencbm/plugin/libopencbm-xum1541.a
32
lib/opencbm/plugin/libopencbm-xum1541.so
33
lib/opencbm/plugin/libopencbm-xum1541.so.0
34
lib/opencbm/plugin/libopencbm-xum1541.so.0.4.99.99
35
man/man1/cbmcopy.1.gz
36
man/man1/cbmctrl.1.gz
37
man/man1/cbmformat.1.gz
38
man/man1/cbmforng.1.gz
39
man/man1/cbmlinetester.1.gz
40
man/man1/cbmread.1.gz
41
man/man1/cbmrpm41.1.gz
42
man/man1/cbmwrite.1.gz
43
man/man1/d64copy.1.gz
44
man/man1/d82copy.1.gz
45
man/man1/frm_analyzer.1.gz
46
man/man1/imgcopy.1.gz
47
man/man1/samplelibtransf.1.gz
48
man/man1/xum1541cfg.1.gz
49
sbin/opencbm_plugin_helper_tools
50
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-1.html
51
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-10.html
52
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-11.html
53
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-12.html
54
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-13.html
55
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-14.html
56
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-15.html
57
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-16.html
58
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-17.html
59
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-18.html
60
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-19.html
61
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-2.html
62
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-20.html
63
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-21.html
64
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-22.html
65
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-23.html
66
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-24.html
67
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-25.html
68
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-26.html
69
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-27.html
70
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-28.html
71
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-29.html
72
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-3.html
73
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-30.html
74
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-31.html
75
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-32.html
76
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-33.html
77
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-34.html
78
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-35.html
79
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-36.html
80
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-4.html
81
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-5.html
82
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-6.html
83
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-7.html
84
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-8.html
85
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-9.html
86
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-software-installed-uninstall.png
87
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm-software-installed.png
88
%%PORTDOCS%%%%DOCSDIR%%/html/opencbm.html
89
%%PORTDOCS%%%%DOCSDIR%%/html/zadig-listalldevices.png
90
%%PORTDOCS%%%%DOCSDIR%%/html/zadig-success.png
91
%%PORTDOCS%%%%DOCSDIR%%/html/zadig-uac.png
92
%%PORTDOCS%%%%DOCSDIR%%/html/zadig-xu1541.png
93
%%PORTDOCS%%%%DOCSDIR%%/html/zadig-xum1541.png
94
%%PORTDOCS%%%%DOCSDIR%%/misc/README
95
%%PORTDOCS%%%%DOCSDIR%%/misc/ibmlpt.txt
96
%%PORTDOCS%%%%DOCSDIR%%/misc/serial-bus.txt
97
%%PORTDOCS%%%%DOCSDIR%%/misc/serial.txt
98
%%PORTDOCS%%%%DOCSDIR%%/opencbm.pdf
99
%%PORTDOCS%%%%DOCSDIR%%/opencbm.txt
100
@postexec opencbm_plugin_helper_tools rebuild
101
@preunexec rm -f %%LOCALBASE%%/etc/opencbm.conf
(-)comms/opencbm-kmod/Makefile (+26 lines)
Line 0 Link Here
1
# Created by: Felix Palmen <felix@palmen-it.de>
2
# $FreeBSD$
3
4
PORTNAME=	opencbm-kmod
5
PORTVERSION=	${OCBM_VERSION}
6
CATEGORIES=	comms archivers
7
8
PATCHFILES=	ca4c06e7430caf3b2296d4e1e00051fff015fc53.diff \
9
		073b833772e4325c7f680d6aeb81bc11844f03ca.diff \
10
		3e967551e200d0c03aa4898e482626a7510acd21.diff
11
12
MAINTAINER=	felix@palmen-it.de
13
COMMENT=	OpenCBM driver module for parallel-port X[MA]-1541 cables
14
15
LICENSE=	GPLv2+
16
17
USES=	kmod uidfix
18
19
WRKSRC_SUBDIR=	opencbm/sys/freebsd
20
21
post-install:
22
	${INSTALL_MAN} ${FILESDIR}/opencbm.4 ${STAGEDIR}${PREFIX}/man/man4
23
24
.include "../opencbm/Makefile.inc"
25
26
.include <bsd.port.mk>
(-)comms/opencbm-kmod/files/opencbm.4 (+86 lines)
Line 0 Link Here
1
.Dd May 27, 2020
2
.Dt OPENCBM 4
3
.Os
4
.Sh NAME
5
.Nm opencbm
6
.Nd OpenCBM driver for parallel-port X[MA]-1541 cables
7
.Sh SYNOPSIS
8
.Nm
9
.Sh DESCRIPTION
10
The
11
.Nm
12
driver supports Commodore disk drives connected to the parallel port using
13
an XM(P)-1541 or XA(P)-1541 cable.
14
.Ss Loader Tunables
15
The following loader tunables are used to set driver configuration at the
16
.Xr loader 8
17
prompt before booting the kernel, or they can be stored in
18
.Pa /boot/loader.conf
19
in order to automatically set them before booting the kernel.
20
It is also possible to use
21
.Xr kenv 1
22
to change these tunables before loading the
23
.Nm
24
driver.
25
.Bl -tag -width indent
26
.It Va cbm.cable
27
Set to 0 or 1 to explicitly select an XM-1541 (0) or XA-1541 (1) type cable.
28
The default value of -1 will attempt to auto-detect the cable type, which
29
only works reliably when
30
.Va cbm.reset
31
is active and the drive is connected and powered on while loading the
32
.Nm
33
driver.
34
.It Va cbm.hold_clk
35
Set to 0 explicitly to release the CLK line of the bus when idle.
36
The default (1) is to strictly follow C64 behavior, always holding the CLK
37
line.
38
.It Va cbm.reset
39
When set to 1 (default), execute a bus reset and wait for response from the
40
drive while loading the
41
.Nm
42
driver.
43
Set to 0 explicitly to load the driver without having to wait for the bus.
44
In this case, you should also select a cable type explicity.
45
.El
46
.Sh FILES
47
The
48
.Nm
49
driver creates the following device node:
50
.Bl -tag -width indent
51
.It Pa /dev/cbm
52
Device for communicating with a Commodore disk drive over a parallel-port
53
cable.
54
.El
55
.Sh EXAMPLES
56
To load the driver with a drive connected and powered on, auto-detecting
57
the cable type:
58
.Pp
59
.Dl kldload opencbm
60
.Pp
61
To load the driver without issuing a bus reset and selecting an active
62
(XA-1541) cable:
63
.Pp
64
.Dl kenv cbm.cable=1
65
.Dl kenv cbm.reset=0
66
.Dl kldload opencbm
67
.Pp
68
If you want to load the driver at system startup, adding it to
69
.Va kld_list
70
in
71
.Pa /etc/rc.conf
72
.Ns ,
73
it is recommended to disable
74
.Va cbm.reset
75
and explicitly select a cable type in
76
.Pa /boot/loader.conf
77
.Ns ,
78
e.g. add the following lines for a passive (XM-1541) cable:
79
.Pp
80
.Dl cbm.cable=0
81
.Dl cbm.reset=0
82
.Sh SEE ALSO
83
The cables supported by the
84
.Nm
85
driver (XM-1541, XA-1541 and their variations) are described on
86
.Lk https://sta.c64.org/xcables.html
(-)comms/opencbm-kmod/pkg-descr (+9 lines)
Line 0 Link Here
1
OpenCBM driver module for parallel-port X[MA]-1541 cables
2
3
The OpenCBM package contains user space support programs and development
4
libraries to control and use CBM serial IEC/IEEE-488 bus devices as used by
5
most Commodore (CBM) 8-bit machines.
6
7
This port contains the FreeBSD driver for parallel-port cables for OpenCBM.
8
9
WWW: http://opencbm.sourceforge.net/
(-)comms/opencbm-kmod/pkg-plist (+2 lines)
Line 0 Link Here
1
/%%KMODDIR%%/opencbm.ko
2
man/man4/opencbm.4.gz
(-)comms/opencbm-plugin-xa1541/Makefile (+36 lines)
Line 0 Link Here
1
# Created by: Felix Palmen <felix@palmen-it.de>
2
# $FreeBSD$
3
4
PORTNAME=	opencbm-plugin-xa1541
5
PORTVERSION=	${OCBM_VERSION}
6
CATEGORIES=	comms archivers
7
8
PATCHFILES=	12ef17d4cf78903c9c52d7a348a816424d549b89.diff \
9
		ca4c06e7430caf3b2296d4e1e00051fff015fc53.diff
10
11
MAINTAINER=	felix@palmen-it.de
12
COMMENT=	OpenCBM plugin for parallel-port cables
13
14
LICENSE=	GPLv2
15
16
BUILD_DEPENDS=	cc65:devel/cc65
17
RUN_DEPENDS=	opencbm=${PORTVERSION}:comms/opencbm \
18
		opencbm-kmod=${PORTVERSION}:comms/opencbm-kmod
19
20
USES=		gmake
21
USE_LDCONFIG=	yes
22
23
MAKE_ARGS=	CC=cc SUBDIRS_PLUGIN_XA1541=opencbm/lib/plugin/xa1541
24
MAKEFILE=	LINUX/Makefile
25
MAKE_JOBS_UNSAFE=	yes
26
ALL_TARGET=	plugin-xa1541
27
INSTALL_TARGET=	install-plugin-xa1541
28
29
post-install:
30
	${STRIP_CMD} ${STAGEDIR}${PLUGINBASENAME}xa1541.so.${OCBM_LIBVERSION}
31
	@${RM} ${STAGEDIR}${PREFIX}/etc/opencbm.conf.d/00opencbm.conf
32
	@${RM} ${STAGEDIR}${PREFIX}/etc/opencbm.conf
33
34
.include "../opencbm/Makefile.inc"
35
36
.include <bsd.port.mk>
(-)comms/opencbm-plugin-xa1541/pkg-descr (+9 lines)
Line 0 Link Here
1
OpenCBM plugin for parallel-port cables
2
3
The OpenCBM package contains user space support programs and development
4
libraries to control and use CBM serial IEC/IEEE-488 bus devices as used by
5
most Commodore (CBM) 8-bit machines.
6
7
This port contains the xa1541 plugin for parallel-port cables.
8
9
WWW: http://opencbm.sourceforge.net/
(-)comms/opencbm-plugin-xa1541/pkg-plist (+5 lines)
Line 0 Link Here
1
etc/opencbm.conf.d/10xa1541.conf
2
lib/opencbm/plugin/libopencbm-xa1541.a
3
lib/opencbm/plugin/libopencbm-xa1541.so
4
lib/opencbm/plugin/libopencbm-xa1541.so.0
5
lib/opencbm/plugin/libopencbm-xa1541.so.0.4.99.99

Return to bug 246784