Lines 2-9
Link Here
|
2 |
# $FreeBSD: head/devel/libvirt/Makefile 363436 2014-07-30 03:57:23Z pi $ |
2 |
# $FreeBSD: head/devel/libvirt/Makefile 363436 2014-07-30 03:57:23Z pi $ |
3 |
|
3 |
|
4 |
PORTNAME= libvirt |
4 |
PORTNAME= libvirt |
5 |
PORTVERSION= 1.2.6 |
5 |
PORTVERSION= 1.2.7 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
8 |
MASTER_SITES= http://libvirt.org/sources/ \ |
7 |
MASTER_SITES= http://libvirt.org/sources/ \ |
9 |
ftp://libvirt.org/libvirt/ |
8 |
ftp://libvirt.org/libvirt/ |
Lines 40-47
Link Here
|
40 |
NLS_CONFIGURE_ENABLE= nls |
39 |
NLS_CONFIGURE_ENABLE= nls |
41 |
NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} |
40 |
NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} |
42 |
|
41 |
|
|
|
42 |
VARDIR= /var |
43 |
|
43 |
USE_RC_SUBR= libvirtd |
44 |
USE_RC_SUBR= libvirtd |
44 |
|
45 |
|
|
|
46 |
LIBVIRT_RUNDIR= ${VARDIR}/run/libvirt |
47 |
RUNDIR_NETWORK= ${LIBVIRT_RUNDIR}/network |
48 |
RUNDIR_QEMU= ${LIBVIRT_RUNDIR}/qemu |
49 |
RUNDIR_LOCKD= ${LIBVIRT_RUNDIR}/lockd |
50 |
|
51 |
LIBVIRT_LOGDIR= ${VARDIR}/log/libvirt |
52 |
LOGDIR_UML= ${LIBVIRT_LOGDIR}/uml |
53 |
LOGDIR_QEMU= ${LIBVIRT_LOGDIR}/qemu |
54 |
LOGDIR_LXC= ${LIBVIRT_LOGDIR}/lxc |
55 |
|
56 |
LIBVIRT_VARLIBDIR= ${VARDIR}/lib/libvirt |
57 |
VARLIBDIR_LOCKD= ${LIBVIRT_VARLIBDIR}/lockd |
58 |
VARLIBDIR_LOCKD_FILES= ${VARLIBDIR_LOCKD}/files |
59 |
VARLIBDIR_IMAGES= ${LIBVIRT_VARLIBDIR}/images |
60 |
VARLIBDIR_BOOT= ${LIBVIRT_VARLIBDIR}/boot |
61 |
VARLIBDIR_DNSMASQ= ${LIBVIRT_VARLIBDIR}/dnsmasq |
62 |
VARLIBDIR_FILESYSTEMS= ${LIBVIRT_VARLIBDIR}/filesystems |
63 |
VARLIBDIR_NETWORK= ${LIBVIRT_VARLIBDIR}/network |
64 |
VARLIBDIR_QEMUDIR= ${LIBVIRT_VARLIBDIR}/qemu |
65 |
VARLIBDIR_QEMUDIR_CHANNEL= ${VARLIBDIR_QEMUDIR}/channel |
66 |
VARLIBDIR_QEMUDIR_CHANNEL_TARGET= ${VARLIBDIR_QEMUDIR_CHANNEL}/target |
67 |
|
68 |
LIBVIRT_CACHEDIR= ${VARDIR}/cache/libvirt |
69 |
CACHEDIR_QEMU= ${LIBVIRT_CACHEDIR}/qemu |
70 |
|
45 |
GNU_CONFIGURE= yes |
71 |
GNU_CONFIGURE= yes |
46 |
CONFIGURE_ARGS= --without-sasl \ |
72 |
CONFIGURE_ARGS= --without-sasl \ |
47 |
--without-avahi \ |
73 |
--without-avahi \ |
Lines 52-58
Link Here
|
52 |
--without-sysctl \ |
78 |
--without-sysctl \ |
53 |
--without-lxc \ |
79 |
--without-lxc \ |
54 |
--without-uml \ |
80 |
--without-uml \ |
55 |
--with-ssh2 |
81 |
--with-ssh2 \ |
|
|
82 |
--localstatedir=${VARDIR} |
56 |
|
83 |
|
57 |
# workaround to override pkg-config calls |
84 |
# workaround to override pkg-config calls |
58 |
# random_data fix can be removed when 8.x is eol |
85 |
# random_data fix can be removed when 8.x is eol |
Lines 60-65
Link Here
|
60 |
SSH2_CFLAGS="-I${LOCALBASE}/include" \ |
87 |
SSH2_CFLAGS="-I${LOCALBASE}/include" \ |
61 |
ac_cv_type_struct_random_data="" |
88 |
ac_cv_type_struct_random_data="" |
62 |
|
89 |
|
|
|
90 |
LIBVIRT_SUB= LIBVIRT_RUNDIR="${LIBVIRT_RUNDIR}" \ |
91 |
RUNDIR_NETWORK="${RUNDIR_NETWORK}" \ |
92 |
RUNDIR_QEMU="${RUNDIR_QEMU}" \ |
93 |
RUNDIR_LOCKD="${RUNDIR_LOCKD}" \ |
94 |
LIBVIRT_LOGDIR="${LIBVIRT_LOGDIR}" \ |
95 |
LOGDIR_UML="${LOGDIR_UML}" \ |
96 |
LOGDIR_QEMU="${LOGDIR_QEMU}" \ |
97 |
LOGDIR_LXC="${LOGDIR_LXC}" \ |
98 |
LIBVIRT_VARLIBDIR="${LIBVIRT_VARLIBDIR}" \ |
99 |
VARLIBDIR_LOCKD="${VARLIBDIR_LOCKD}" \ |
100 |
VARLIBDIR_LOCKD_FILES="${VARLIBDIR_LOCKD_FILES}" \ |
101 |
VARLIBDIR_IMAGES="${VARLIBDIR_IMAGES}" \ |
102 |
VARLIBDIR_BOOT="${VARLIBDIR_BOOT}" \ |
103 |
VARLIBDIR_DNSMASQ="${VARLIBDIR_DNSMASQ}" \ |
104 |
VARLIBDIR_FILESYSTEMS="${VARLIBDIR_FILESYSTEMS}" \ |
105 |
VARLIBDIR_NETWORK="${VARLIBDIR_NETWORK}" \ |
106 |
VARLIBDIR_QEMUDIR="${VARLIBDIR_QEMUDIR}" \ |
107 |
VARLIBDIR_QEMUDIR_CHANNEL="${VARLIBDIR_QEMUDIR_CHANNEL}" \ |
108 |
VARLIBDIR_QEMUDIR_CHANNEL_TARGET="${VARLIBDIR_QEMUDIR_CHANNEL_TARGET}" \ |
109 |
LIBVIRT_CACHEDIR="${LIBVIRT_CACHEDIR}" \ |
110 |
CACHEDIR_QEMU="${CACHEDIR_QEMU}" |
111 |
|
63 |
# limit production release x.x.x |
112 |
# limit production release x.x.x |
64 |
PORTSCOUT= limit:\d+\.\d+\.\d+$$ |
113 |
PORTSCOUT= limit:\d+\.\d+\.\d+$$ |
65 |
|
114 |
|
Lines 70-76
Link Here
|
70 |
USE_LDCONFIG= yes |
119 |
USE_LDCONFIG= yes |
71 |
SHLIB_VER= 1002 |
120 |
SHLIB_VER= 1002 |
72 |
PLIST_SUB= PORTVERSION="-${PORTVERSION}" \ |
121 |
PLIST_SUB= PORTVERSION="-${PORTVERSION}" \ |
73 |
SHLIB_VER=${SHLIB_VER} |
122 |
SHLIB_VER=${SHLIB_VER} \ |
|
|
123 |
${LIBVIRT_SUB} |
124 |
|
125 |
SUB_LIST+= VARDIR=${VARDIR} |
126 |
|
74 |
PORTDOCS= * |
127 |
PORTDOCS= * |
75 |
STRIP_FILES= libvirt.so.${SHLIB_VER} \ |
128 |
STRIP_FILES= libvirt.so.${SHLIB_VER} \ |
76 |
libvirt-qemu.so.${SHLIB_VER} \ |
129 |
libvirt-qemu.so.${SHLIB_VER} \ |
Lines 123-128
Link Here
|
123 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${lib} |
176 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${lib} |
124 |
.endfor |
177 |
.endfor |
125 |
|
178 |
|
|
|
179 |
.for dir in ${LIBVIRT_RUNDIR} ${RUNDIR_NETWORK} ${RUNDIR_QEMU} ${RUNDIR_LOCKD} \ |
180 |
${LIBVIRT_LOGDIR} ${LOGDIR_UML} ${LOGDIR_QEMU} ${LOGDIR_LXC} ${LIBVIRT_VARLIBDIR} \ |
181 |
${VARLIBDIR_LOCKD} ${VARLIBDIR_LOCKD_FILES} ${VARLIBDIR_IMAGES} ${VARLIBDIR_BOOT} \ |
182 |
${VARLIBDIR_DNSMASQ} ${VARLIBDIR_FILESYSTEMS} ${VARLIBDIR_NETWORK} \ |
183 |
${VARLIBDIR_QEMUDIR} ${VARLIBDIR_QEMUDIR_CHANNEL} \ |
184 |
${VARLIBDIR_QEMUDIR_CHANNEL_TARGET} ${LIBVIRT_CACHEDIR} ${CACHEDIR_QEMU} |
185 |
@${MKDIR} "${STAGEDIR}${dir}" |
186 |
.endfor |
187 |
|
126 |
regression-test: build |
188 |
regression-test: build |
127 |
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check |
189 |
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check |
128 |
|
190 |
|