FreeBSD Bugzilla – Attachment 70762 Details for
Bug 103176
[MAINTAINER-UPDATE] sysutils/bacula-server-devel : fix breakage, add missing bacula user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch.bacula-server-devel.uid
patch.bacula-server-devel.uid (text/plain), 1.92 KB, created by
Dan Langille
on 2006-09-12 05:30:22 UTC
(
hide
)
Description:
patch.bacula-server-devel.uid
Filename:
MIME Type:
Creator:
Dan Langille
Created:
2006-09-12 05:30:22 UTC
Size:
1.92 KB
patch
obsolete
>diff -ruN /usr/ports/sysutils/bacula-server-devel/Makefile bacula-server-devel/Makefile >--- /usr/ports/sysutils/bacula-server-devel/Makefile Sat Sep 9 16:17:39 2006 >+++ bacula-server-devel/Makefile Tue Sep 12 00:12:42 2006 >@@ -225,11 +225,9 @@ > ${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) >diff -ruN /usr/ports/sysutils/bacula-server-devel/pkg-deinstall.client bacula-server-devel/pkg-deinstall.client >--- /usr/ports/sysutils/bacula-server-devel/pkg-deinstall.client Wed Mar 15 05:22:09 2006 >+++ bacula-server-devel/pkg-deinstall.client Tue Sep 12 00:13:50 2006 >@@ -20,5 +20,12 @@ > 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 >diff -ruN /usr/ports/sysutils/bacula-server-devel/pkg-install.client bacula-server-devel/pkg-install.client >--- /usr/ports/sysutils/bacula-server-devel/pkg-install.client Wed Mar 15 05:22:09 2006 >+++ bacula-server-devel/pkg-install.client Tue Sep 12 00:07:54 2006 >@@ -15,3 +15,29 @@ > # 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 103176
: 70762