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

Collapse All | Expand All

(-)sysutils/bacula-bat/Makefile (-14 / +30 lines)
Lines 10-17 Link Here
10
10
11
COMMENT=	The network backup solution (GUI)
11
COMMENT=	The network backup solution (GUI)
12
12
13
LIB_DEPENDS+=	qwt.5:${PORTSDIR}/x11-toolkits/qwt5 \
13
LIB_DEPENDS+=	qwt.5:${PORTSDIR}/x11-toolkits/qwt5 
14
		bac.1:${PORTSDIR}/sysutils/bacula-client
15
14
16
USE_QT_VER=	4
15
USE_QT_VER=	4
17
QT_COMPONENTS=	qmake_build uic_build moc_build rcc_build
16
QT_COMPONENTS=	qmake_build uic_build moc_build rcc_build
Lines 32-52 Link Here
32
		--disable-build-stored \
31
		--disable-build-stored \
33
		--enable-client-only
32
		--enable-client-only
34
33
35
pre-install:
34
.include "${MASTERDIR}/Makefile"
36
	# override master
35
.include <bsd.port.pre.mk>
36
37
.if exists(${LOCALBASE}/lib/libbac.so.${PORTVERSION:R:R}) && exists(${LOCALBASE}/lib/libbaccfg.so.${PORTVERSION:R:R})
38
LIB_DEPENDS+=	bac.${PORTVERSION:R:R}:${PORTSDIR}/sysutils/bacula-client
39
PLIST_SUB+=	INDEP="@comment "
40
41
.elif exists(${LOCALBASE}/lib/libbac.so.1) || exists(${LOCALBASE}/lib/libbaccfg.so.1)
42
# To prevent build with old libraries
43
IGNORE=		Please update sysutils/bacula-client first
44
45
.else
46
WITH_LIBS=	YES
47
PLIST_SUB+=	INDEP=""
48
.endif
37
49
38
post-install:
50
pre-everything::
39
	# override master
51
	@${ECHO_MSG} "===> Building bat the GUI interface for Bacula."
40
52
41
do-install:
53
do-install:
42
	# Install config files and preserve existing ones
54
	# Install config files and preserve existing ones
43
	@if [ -f ${WRKSRC}/src/qt-console/bat ]; then \
44
		${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/bat ${PREFIX}/sbin; \
45
	else \
46
		${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/.libs/bat ${PREFIX}/sbin; \
47
	fi
48
	${INSTALL_SCRIPT}  ${WRKSRC}/src/qt-console/bat.conf ${PREFIX}/etc/bat.conf.sample
55
	${INSTALL_SCRIPT}  ${WRKSRC}/src/qt-console/bat.conf ${PREFIX}/etc/bat.conf.sample
49
	${GZIP_CMD} ${WRKSRC}/manpages/bat.1
56
	${INSTALL_MAN}     ${WRKSRC}/manpages/bat.1          ${PREFIX}/man/man1/
50
	${INSTALL_MAN}     ${WRKSRC}/manpages/bat.1.gz          ${PREFIX}/man/man1/
57
.if defined(WITH_LIBS)
58
	${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/.libs/bat ${PREFIX}/sbin
59
	${INSTALL_PROGRAM} ${WRKSRC}/src/lib/.libs/libbac.so.${PORTVERSION:R:R} \
60
	    ${PREFIX}/lib
61
	${INSTALL_PROGRAM} ${WRKSRC}/src/lib/.libs/libbaccfg.so.${PORTVERSION:R:R} \
62
	    ${PREFIX}/lib
63
.else
64
	${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/bat ${PREFIX}/sbin
65
.endif
66
67
.include <bsd.port.post.mk>
51
68
52
.include "${MASTERDIR}/Makefile"
(-)sysutils/bacula-bat/pkg-plist (+2 lines)
Lines 1-2 Link Here
1
etc/bat.conf.sample
1
etc/bat.conf.sample
2
sbin/bat
2
sbin/bat
3
%%INDEP%%lib/libbac.so.%%MAJOR%%
4
%%INDEP%%lib/libbaccfg.so.%%MAJOR%%

Return to bug 146766