Fix man-page and plist problems and unbreak the client port.
PR: 104566 Submitted by: Frank J. Laszlo <laszlof@vonostingroup.com> Approved by: portmgr (self), Dan Langille <dan@langille.org> (maintainer)
This commit is contained in:
parent
4fecb29fd9
commit
7d97cc3df8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175416
3 changed files with 5 additions and 15 deletions
|
@ -17,6 +17,4 @@ PLIST= ${PKGDIR}/pkg-plist.client
|
|||
WITH_CLIENT_ONLY= yes
|
||||
USE_RC_SUBR= bacula-fd.sh
|
||||
|
||||
BROKEN= Does not install
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -29,6 +29,7 @@ SUB_FILES+= pkg-message
|
|||
#
|
||||
BACULA_DIR?=/var/db/bacula
|
||||
#
|
||||
MANCOMPRESSED= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-tcp-wrappers=/usr/lib \
|
||||
--enable-smartalloc \
|
||||
|
@ -166,6 +167,8 @@ MAN8=bacula-fd.8 bconsole.8
|
|||
MAN8=bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8
|
||||
MAN1=bsmtp.1 bacula-console-gnome.1 bacula-tray-monitor.1 bacula-wxconsole.1
|
||||
.endif
|
||||
MAKE_ARGS+= -E MAN8 -E MAN1
|
||||
MAKE_ENV+= MAN8="${MAN8}" MAN1="${MAN1}"
|
||||
|
||||
pre-everything::
|
||||
.if !defined(WITH_CLIENT_ONLY)
|
||||
|
@ -206,7 +209,7 @@ post-patch:
|
|||
${REINPLACE_CMD} -e 's|\(.*$${MKDIR} $${DESTDIR}$${scriptdir}\)|#\1|g' ${WRKSRC}/Makefile.in
|
||||
.else
|
||||
# In server port don't install filed
|
||||
@${REINPLACE_CMD} -e 's|^all_subdirs = .*|all_subdirs = scripts src\/lib src\/findlib $${subdirs}|g' ${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e '/^fd_subdirs = /s|src/filed||' -e 's|src/console||' ${WRKSRC}/Makefile.in
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
|
@ -222,18 +225,6 @@ pre-install:
|
|||
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
|
||||
|
||||
post-install:
|
||||
.if defined(MAN8)
|
||||
. for manpage in ${MAN8}
|
||||
${INSTALL_MAN} ${WRKSRC}/manpages/${manpage} ${PREFIX}/man/man8/${manpage}
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
.if defined(MAN1)
|
||||
. for manpage in ${MAN1}
|
||||
${INSTALL_MAN} ${WRKSRC}/manpages/${manpage} ${PREFIX}/man/man1/${manpage}
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CLIENT_ONLY)
|
||||
# Extend only /etc/services
|
||||
@ ${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
|
|
|
@ -2,6 +2,7 @@ sbin/bacula-fd
|
|||
sbin/bconsole
|
||||
%%GNOMECONS%%sbin/gnome-console
|
||||
%%WXCONS%%sbin/wx-console
|
||||
@dirrm %%DATADIR%%
|
||||
@unexec /usr/bin/killall badula-fd > /dev/null 2>&1 || true
|
||||
@exec mkdir -p %%BACULA_DIR%%
|
||||
@dirrmtry %%BACULA_DIR%%
|
||||
|
|
Loading…
Reference in a new issue