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

(-)Makefile (+14 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	libvirt
4
PORTNAME=	libvirt
5
PORTVERSION=	1.2.20
5
PORTVERSION=	1.2.20
6
PORTREVISION=	1
6
CATEGORIES=	devel
7
CATEGORIES=	devel
7
MASTER_SITES=	http://libvirt.org/sources/ \
8
MASTER_SITES=	http://libvirt.org/sources/ \
8
		ftp://libvirt.org/libvirt/
9
		ftp://libvirt.org/libvirt/
Lines 86-91 Link Here
86
		SHLIB_VER=${SHLIB_VER}
87
		SHLIB_VER=${SHLIB_VER}
87
PORTDOCS=	*
88
PORTDOCS=	*
88
89
90
SUB_FILES=	pkg-message
91
89
.include <bsd.port.options.mk>
92
.include <bsd.port.options.mk>
90
93
91
.if (exists(/usr/sbin/bhyve) && ${OSVERSION} >= 100051)
94
.if (exists(/usr/sbin/bhyve) && ${OSVERSION} >= 100051)
Lines 107-117 Link Here
107
	@${MV} ${WRKSRC}/daemon/libvirtd.conf ${WRKSRC}/daemon/libvirtd.conf.sample
110
	@${MV} ${WRKSRC}/daemon/libvirtd.conf ${WRKSRC}/daemon/libvirtd.conf.sample
108
	@${REINPLACE_CMD} -e 's|libvirtd\.conf|libvirtd.conf.sample|' \
111
	@${REINPLACE_CMD} -e 's|libvirtd\.conf|libvirtd.conf.sample|' \
109
		${WRKSRC}/daemon/Makefile.in
112
		${WRKSRC}/daemon/Makefile.in
113
	
114
	@${REINPLACE_CMD} -e 's|ln -s ../default.xml|true|' \
115
			  -e 's|$$(DESTDIR)$$(confdir)/qemu/networks|${STAGEDIR}${EXAMPLESDIR}/networks|' \
116
			  ${WRKSRC}/src/Makefile.in
110
117
111
	@${MV} ${WRKSRC}/src/libvirt.conf ${WRKSRC}/src/libvirt.conf.sample
118
	@${MV} ${WRKSRC}/src/libvirt.conf ${WRKSRC}/src/libvirt.conf.sample
112
	@${REINPLACE_CMD} -e 's|conf_DATA = libvirt.conf|conf_DATA = libvirt.conf.sample|' \
119
	@${REINPLACE_CMD} -e 's|conf_DATA = libvirt.conf|conf_DATA = libvirt.conf.sample|' \
113
		${WRKSRC}/src/Makefile.in
120
		${WRKSRC}/src/Makefile.in
114
121
122
	@${MV} ${WRKSRC}/src/locking/virtlockd.conf ${WRKSRC}/src/locking/virtlockd.conf.sample
123
	@${REINPLACE_CMD} -e 's|virtlockd.conf |virtlockd.conf.sample |' \
124
			  -e 's|virtlockd.conf$$|virtlockd.conf.sample|' \
125
		${WRKSRC}/src/Makefile.in
126
115
	@${MV} ${WRKSRC}/src/qemu/qemu.conf ${WRKSRC}/src/qemu/qemu.conf.sample
127
	@${MV} ${WRKSRC}/src/qemu/qemu.conf ${WRKSRC}/src/qemu/qemu.conf.sample
116
	@${REINPLACE_CMD} -e 's|qemu.conf |qemu.conf.sample |' \
128
	@${REINPLACE_CMD} -e 's|qemu.conf |qemu.conf.sample |' \
117
		${WRKSRC}/src/Makefile.in
129
		${WRKSRC}/src/Makefile.in
Lines 128-133 Link Here
128
		${WRKSRC}/src/Makefile.in
140
		${WRKSRC}/src/Makefile.in
129
141
130
post-install:
142
post-install:
143
	@${RMDIR} ${STAGEDIR}${EXAMPLESDIR}/networks/autostart
144
	@${MKDIR} ${STAGEDIR}${ETCDIR}/qemu/networks/autostart
131
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
145
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
132
.for doc in AUTHORS ChangeLog INSTALL NEWS README TODO
146
.for doc in AUTHORS ChangeLog INSTALL NEWS README TODO
133
	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
147
	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
(-)files/pkg-message.in (+18 lines)
Lines 1-3 Link Here
1
1
2
To enable libvirtd please add libvirtd_enable="YES" to
2
To enable libvirtd please add libvirtd_enable="YES" to
3
/etc/rc.conf.
3
/etc/rc.conf.
4
5
NOTE ON CONFIGURATION:
6
7
The libvirt port does not come with networking configuration enabled.
8
The 'default' network definition is available at:
9
10
  %%EXAMPLESDIR%%/networks/default.xml
11
12
To enable this network please do the following:
13
14
  cp %%EXAMPLESDIR%%/networks/default.xml %%ETCDIR%%/qemu/networks
15
16
To configure this network for autostart, execute the following:
17
18
  ln -s ../default.xml %%ETCDIR%%/qemu/networks/autostart/default.xml
19
20
If you have libvirtd already running you'll need to restart it for changes
21
to take effect.
(-)pkg-message (-3 lines)
Lines 1-3 Link Here
1
2
To enable libvirtd please add libvirtd_enable="YES" to
3
/etc/rc.conf.
(-)pkg-plist (-3 / +3 lines)
Lines 10-20 Link Here
10
man/man8/virtlockd.8.gz
10
man/man8/virtlockd.8.gz
11
@sample %%ETCDIR%%/libvirt.conf.sample
11
@sample %%ETCDIR%%/libvirt.conf.sample
12
@sample %%ETCDIR%%/libvirtd.conf.sample
12
@sample %%ETCDIR%%/libvirtd.conf.sample
13
@sample %%ETCDIR%%/virtlockd.conf.sample
14
%%EXAMPLESDIR%%/networks/default.xml
13
%%QEMU%%@sample %%ETCDIR%%/qemu.conf.sample
15
%%QEMU%%@sample %%ETCDIR%%/qemu.conf.sample
14
%%XEN%%@sample %%ETCDIR%%/libxl.conf.sample
16
%%XEN%%@sample %%ETCDIR%%/libxl.conf.sample
15
%%ETCDIR%%/virtlockd.conf
16
%%ETCDIR%%/qemu/networks/default.xml
17
%%ETCDIR%%/qemu/networks/autostart/default.xml
18
%%QEMU%%%%ETCDIR%%/qemu-lockd.conf
17
%%QEMU%%%%ETCDIR%%/qemu-lockd.conf
19
%%XEN%%%%ETCDIR%%/libxl-lockd.conf
18
%%XEN%%%%ETCDIR%%/libxl-lockd.conf
20
etc/logrotate.d/libvirtd
19
etc/logrotate.d/libvirtd
Lines 300-305 Link Here
300
%%XEN%%@dir /var/lib/libvirt/libxl
299
%%XEN%%@dir /var/lib/libvirt/libxl
301
%%XEN%%@dir /var/log/libvirt/libxl
300
%%XEN%%@dir /var/log/libvirt/libxl
302
%%XEN%%@dir /var/run/libvirt/libxl
301
%%XEN%%@dir /var/run/libvirt/libxl
302
@dir %%ETCDIR%%/qemu/networks/autostart
303
@dir /var/cache/libvirt
303
@dir /var/cache/libvirt
304
@dir /var/lib/libvirt/boot
304
@dir /var/lib/libvirt/boot
305
@dir /var/lib/libvirt/dnsmasq
305
@dir /var/lib/libvirt/dnsmasq

Return to bug 203865