aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bacula-bat
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2009-12-20 07:13:14 +0800
committerpav <pav@FreeBSD.org>2009-12-20 07:13:14 +0800
commitabf2c44930747b21947cccabf75dda2865a10781 (patch)
treecb9db639998f32bb48d9b62de36bc6be9d28c14d /sysutils/bacula-bat
parenteb987682bbc848e98415557fb6eb1d1bf706f4fe (diff)
downloadfreebsd-ports-gnome-abf2c44930747b21947cccabf75dda2865a10781.tar.gz
freebsd-ports-gnome-abf2c44930747b21947cccabf75dda2865a10781.tar.zst
freebsd-ports-gnome-abf2c44930747b21947cccabf75dda2865a10781.zip
- Fixes to bacula-bat: add dependency on the libraries (needed to run), and fix
the installation problem for some people PR: ports/137957, ports/140969 Approved by: maintainer
Diffstat (limited to 'sysutils/bacula-bat')
-rw-r--r--sysutils/bacula-bat/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysutils/bacula-bat/Makefile b/sysutils/bacula-bat/Makefile
index e556b0cb1eda..de812125a40d 100644
--- a/sysutils/bacula-bat/Makefile
+++ b/sysutils/bacula-bat/Makefile
@@ -10,7 +10,8 @@ PKGNAMESUFFIX= -bat
COMMENT= The network backup solution (GUI)
-LIB_DEPENDS+= qwt.5:${PORTSDIR}/x11-toolkits/qwt5
+LIB_DEPENDS+= qwt.5:${PORTSDIR}/x11-toolkits/qwt5 \
+ bac.1:${PORTSDIR}/sysutils/bacula-client
USE_QT_VER= 4
QT_COMPONENTS= qmake_build uic_build moc_build rcc_build
@@ -39,7 +40,11 @@ post-install:
do-install:
# Install config files and preserve existing ones
- ${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/.libs/bat ${PREFIX}/sbin
+ @if [ -f ${WRKSRC}/src/qt-console/bat ]; then \
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/bat ${PREFIX}/sbin; \
+ else \
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/.libs/bat ${PREFIX}/sbin; \
+ fi
${INSTALL_SCRIPT} ${WRKSRC}/src/qt-console/bat.conf ${PREFIX}/etc/bat.conf.sample
${GZIP_CMD} ${WRKSRC}/manpages/bat.1
${INSTALL_MAN} ${WRKSRC}/manpages/bat.1.gz ${PREFIX}/man/man1/