1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

- Correctly handle manpages

- Always install baucla group so that client install works
- Do not install mysql start/stop scripts
- Bump PORTREVISION

PR:		ports/103176
Submitted by:	Dan Langille (maintainer)
This commit is contained in:
Martin Wilke 2006-10-05 21:21:26 +00:00
parent 55aabea080
commit 88db7b56d4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174586
5 changed files with 47 additions and 14 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= bacula
DISTVERSION= 1.39.24.20061002
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula
@ -162,16 +163,8 @@ CONFIGURE_ARGS+= --with-openssl
.if defined(WITH_CLIENT_ONLY)
MAN8=bacula-fd.8 bconsole.8
.else
MAN8=bacula-dir.8 bacula-sd.8 bacula.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 dbcheck.8
MAN1=bsmtp.1
.endif
.if defined(WITH_GNOMECONSOLE)
MAN1+=bacula-console-gnome.1
.endif
.if defined(WITH_WXCONSOLE)
MAN1+=bacula-wxconsole.1
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
pre-everything::
@ -224,11 +217,9 @@ pre-install:
${ECHO_CMD} "${BACULA_DIR} already exists"; \
fi
.if !defined(WITH_CLIENT_ONLY)
# Extend /etc/services and install UID/GID
@ ${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
.endif
post-install:
.if defined(MAN8)

View File

@ -0,0 +1,11 @@
--- scripts/Makefile.in.orig Tue Sep 12 12:03:08 2006
+++ scripts/Makefile.in Tue Sep 12 12:03:08 2006
@@ -33,8 +33,6 @@
$(MKDIR) $(DESTDIR)$(mandir)
install: installdirs
- $(INSTALL_SCRIPT) startmysql $(DESTDIR)$(scriptdir)/startmysql
- $(INSTALL_SCRIPT) stopmysql $(DESTDIR)$(scriptdir)/stopmysql
$(INSTALL_SCRIPT) bconsole $(DESTDIR)$(scriptdir)/bconsole
$(INSTALL_SCRIPT) gconsole $(DESTDIR)$(scriptdir)/gconsole
$(INSTALL_SCRIPT) bacula $(DESTDIR)$(scriptdir)/bacula

View File

@ -20,5 +20,12 @@ case "$2" in
if [ -d ${BACULA_DIR} ]; then
echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port"
fi
# Note how to delete UID/GID
USER=bacula
GROUP=${USER}
if pw groupshow "${USER}" 2>/dev/null 1>&2; then
echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'"
fi
;;
esac

View File

@ -15,3 +15,29 @@ bacula-sd 9103/tcp #Bacula storage daemon
# Bacule port end" >> /etc/services
fi
case $2 in
PRE-INSTALL)
# Install UID/GID
USER=bacula
GROUP=${USER}
UID=910
GID=${UID}
if [ ! -d ${BACULA_DIR} ]; then
mkdir -p ${BACULA_DIR}
fi
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
else
if pw groupadd ${GROUP} -g ${GID}; then
echo "Added group \"${GROUP}\"."
else
echo "Adding group \"${GROUP}\" failed..."
exit 1
fi
fi
chgrp -R ${GROUP} ${BACULA_DIR}
;;
esac

View File

@ -35,8 +35,6 @@ sbin/dbcheck
%%DATADIR%%/make_%%DBTYPE%%_tables
%%DATADIR%%/mtx-changer
%%DATADIR%%/query.sql
%%DATADIR%%/startmysql
%%DATADIR%%/stopmysql
%%DATADIR%%/update_bacula_tables
%%DATADIR%%/update_%%DBTYPE%%_tables