Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-backup/amanda: ChangeLog amanda-3.2.0_beta1.ebuild
Date: Thu, 30 Sep 2010 04:51:23
Message-Id: 20100930045101.DE37D20051@flycatcher.gentoo.org
1 robbat2 10/09/30 04:51:01
2
3 Modified: ChangeLog
4 Added: amanda-3.2.0_beta1.ebuild
5 Log:
6 Beta version of Amanda 3.2, ebuild thanks to proxy maintainer Stefan G. Weichinger <monitor@×××××××.at>.
7
8 (Portage version: 2.2_rc88/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.68 app-backup/amanda/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/amanda/ChangeLog?rev=1.68&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/amanda/ChangeLog?rev=1.68&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/amanda/ChangeLog?r1=1.67&r2=1.68
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-backup/amanda/ChangeLog,v
20 retrieving revision 1.67
21 retrieving revision 1.68
22 diff -p -w -b -B -u -u -r1.67 -r1.68
23 --- ChangeLog 12 Sep 2010 08:34:05 -0000 1.67
24 +++ ChangeLog 30 Sep 2010 04:51:01 -0000 1.68
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-backup/amanda
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-backup/amanda/ChangeLog,v 1.67 2010/09/12 08:34:05 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-backup/amanda/ChangeLog,v 1.68 2010/09/30 04:51:01 robbat2 Exp $
30 +
31 +*amanda-3.2.0_beta1 (30 Sep 2010)
32 +
33 + 30 Sep 2010; Robin H. Johnson <robbat2@g.o>
34 + +amanda-3.2.0_beta1.ebuild:
35 + Beta version of Amanda 3.2, ebuild thanks to proxy maintainer Stefan G.
36 + Weichinger <monitor@×××××××.at>.
37
38 12 Sep 2010; Robin H. Johnson <robbat2@g.o> amanda-3.1.2-r1.ebuild:
39 Bug #331111: Some of the testsuite fails if you have an old version of
40
41
42
43 1.1 app-backup/amanda/amanda-3.2.0_beta1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/amanda/amanda-3.2.0_beta1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/amanda/amanda-3.2.0_beta1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: amanda-3.2.0_beta1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-backup/amanda/amanda-3.2.0_beta1.ebuild,v 1.1 2010/09/30 04:51:01 robbat2 Exp $
53
54 EAPI=3
55 inherit autotools eutils perl-module
56
57 MY_P="${P/_}"
58 DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
59 HOMEPAGE="http://www.amanda.org/"
60 SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
61 LICENSE="as-is"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
64 RDEPEND="sys-libs/readline
65 virtual/inetd
66 sys-apps/gawk
67 app-arch/tar
68 >=dev-lang/perl-5.6
69 app-arch/dump
70 net-misc/openssh
71 >=dev-libs/glib-2.24.0
72 nls? ( virtual/libintl )
73 s3? ( >=net-misc/curl-7.10.0 )
74 samba? ( net-fs/samba )
75 kerberos? ( app-crypt/mit-krb5 )
76 xfs? ( sys-fs/xfsdump )
77 !minimal? (
78 virtual/mailx
79 app-arch/mt-st
80 sys-block/mtx
81 gnuplot? ( sci-visualization/gnuplot )
82 app-crypt/aespipe
83 app-crypt/gnupg
84 )"
85
86 DEPEND="${RDEPEND}
87 dev-util/pkgconfig
88 nls? ( sys-devel/gettext )
89 >=app-text/docbook-xsl-stylesheets-1.72.0
90 app-text/docbook-xml-dtd
91 "
92
93 IUSE="gnuplot ipv6 kerberos minimal nls s3 samba xfs"
94
95 S="${WORKDIR}/${MY_P}"
96
97 MYFILESDIR="${T}/files"
98 ENVDIR="/etc/env.d"
99 ENVDFILE="97amanda"
100 TMPENVFILE="${T}/${ENVDFILE}"
101
102 # This is a complete list of Amanda settings that the ebuild takes from the
103 # build environment. This allows users to alter the behavior of the package as
104 # upstream intended, but keeping with Gentoo style. We store a copy of them in
105 # /etc/env.d/97amanda during the install, so that they are preserved for future
106 # installed. This variable name must not start with AMANDA_, as we do not want
107 # it captured into the env file.
108 ENV_SETTINGS_AMANDA="
109 AMANDA_GROUP_GID AMANDA_GROUP_NAME
110 AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
111 AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_INDEX
112 AMANDA_TAR_LISTDIR AMANDA_TAR
113 AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
114 AMANDA_CONFIG_NAME AMANDA_TMPDIR"
115
116 amanda_variable_setup() {
117
118 # Setting vars
119 local currentamanda
120
121 # Grab the current settings
122 currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
123
124 # First we set the defaults
125 [ -z "${AMANDA_GROUP_GID}" ] && AMANDA_GROUP_GID=87
126 [ -z "${AMANDA_GROUP_NAME}" ] && AMANDA_GROUP_NAME=amanda
127 [ -z "${AMANDA_USER_NAME}" ] && AMANDA_USER_NAME=amanda
128 [ -z "${AMANDA_USER_UID}" ] && AMANDA_USER_UID=87
129 [ -z "${AMANDA_USER_SH}" ] && AMANDA_USER_SH=/bin/bash
130 [ -z "${AMANDA_USER_HOMEDIR}" ] && AMANDA_USER_HOMEDIR=/var/spool/amanda
131 [ -z "${AMANDA_USER_GROUPS}" ] && AMANDA_USER_GROUPS="${AMANDA_GROUP_NAME}"
132
133 # This installs Amanda, with the server. However, it could be a client,
134 # just specify an alternate server name in AMANDA_SERVER.
135 [ -z "${AMANDA_SERVER}" ] && AMANDA_SERVER="${HOSTNAME}"
136 [ -z "${AMANDA_SERVER_TAPE}" ] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
137 [ -z "${AMANDA_SERVER_INDEX}" ] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
138 [ -z "${AMANDA_TAR_LISTDIR}" ] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
139 [ -z "${AMANDA_CONFIG_NAME}" ] && AMANDA_CONFIG_NAME=DailySet1
140 [ -z "${AMANDA_TMPDIR}" ] && AMANDA_TMPDIR=/var/tmp/amanda
141 [ -z "${AMANDA_DBGDIR}" ] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
142 # These are left empty by default
143 [ -z "${AMANDA_PORTS_UDP}" ] && AMANDA_PORTS_UDP=
144 [ -z "${AMANDA_PORTS_TCP}" ] && AMANDA_PORTS_TCP=
145 [ -z "${AMANDA_PORTS_BOTH}" ] && AMANDA_PORTS_BOTH=
146 [ -z "${AMANDA_PORTS}" ] && AMANDA_PORTS=
147
148 # What tar to use
149 [ -z "${AMANDA_TAR}" ] && AMANDA_TAR=/bin/tar
150
151 # Now pull in the old stuff
152 if [ -f "${ROOT}${ENVDIR}/${ENVDFILE}" ]; then
153 # We don't just source it as we don't want everything in there.
154 eval $(egrep "^AMANDA_" "${ROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
155 fi
156
157 # Re-apply the new settings if any
158 [ -n "${currentamanda}" ] && eval `echo "${currentamanda}"`
159
160 }
161
162 pkg_setup() {
163 amanda_variable_setup
164 enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
165 enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
166 }
167
168 src_unpack() {
169 # we do not want the perl src_unpack
170 base_src_unpack
171 }
172
173 src_prepare() {
174 # Fix a fun race condition if you use encryption.
175 # This is one of the reasons you should test your recovery procedures often.
176 #epatch "${FILESDIR}"/${PN}-2.6.0p2-amcrypt-ossl-asym-race-fix.patch
177
178 # gentoo bug 248838, check /sbin stuff before /bin
179 #epatch "${FILESDIR}"/${PN}-2.6.0_p2-syslocpath.patch
180
181 # gentoo bug #331111
182 sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am
183 sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am
184
185 eautoreconf
186
187 # places for us to work in
188 mkdir -p "${MYFILESDIR}"
189 # Now we store the settings we just created
190 set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}"
191
192 # Prepare our custom files
193 einfo "Building custom configuration files"
194 local i # our iterator
195 local sedexpr # var for sed expr
196 sedexpr=''
197 for i in ${ENV_SETTINGS_AMANDA} ; do
198 local val
199 eval "val=\"\${${i}}\""
200 sedexpr="${sedexpr}s|__${i}__|${val}|g;"
201 done
202
203 # now apply the sed expr
204 for i in "${FILESDIR}"/amanda-* ; do
205 sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`"
206 done
207
208 (
209 cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1
210 use minimal || cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1
211 ) > "${T}"/amandahosts
212 }
213
214 src_configure() {
215 # fix bug #36316
216 addpredict /var/cache/samba/gencache.tdb
217
218 [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
219 source "${TMPENVFILE}"
220 local myconf
221
222 einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
223 myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
224 einfo "Using ${AMANDA_SERVER_INDEX} for index server."
225 myconf="${myconf} --with-index-server=${AMANDA_SERVER_INDEX}"
226 einfo "Using ${AMANDA_USER_NAME} for amanda user."
227 myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
228 einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
229 myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
230 einfo "Using ${AMANDA_TAR} as Tar implementation."
231 myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
232 einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
233 myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
234 einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
235 myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
236 einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
237 myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
238
239 if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
240 eerror "If you want _both_ UDP and TCP ports, please use only the"
241 eerror "AMANDA_PORTS environment variable for identical ports, or set"
242 eerror "AMANDA_PORTS_BOTH."
243 die "Bad port setup!"
244 fi
245 if [ -n "${AMANDA_PORTS_UDP}" ]; then
246 einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
247 myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
248 fi
249 if [ -n "${AMANDA_PORTS_TCP}" ]; then
250 einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
251 myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
252 fi
253 if [ -n "${AMANDA_PORTS}" ]; then
254 einfo "Using ports ${AMANDA_PORTS/,/-}"
255 myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
256 fi
257
258 # Extras
259 # Speed option
260 myconf="${myconf} --with-buffered-dump"
261 # "debugging" in the configuration is NOT debug in the conventional sense.
262 # It is actually just useful output in the application, and should remain
263 # enabled. There are some cases of breakage with MTX tape changers as of
264 # 2.5.1p2 that it exposes when turned off as well.
265 myconf="${myconf} --with-debugging"
266 # Where to put our files
267 myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
268
269 # Samba support
270 myconf="${myconf} `use_with samba smbclient /usr/bin/smbclient`"
271
272 # Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
273 # default
274 myconf="${myconf} --with-bsd-security"
275 myconf="${myconf} --with-ssh-security"
276 myconf="${myconf} --with-bsdudp-security"
277 myconf="${myconf} --with-bsdtcp-security"
278
279 # kerberos-security mechanism version 4
280 # always disable, per bug #173354
281 myconf="${myconf} --without-krb4-security"
282
283 # kerberos-security mechanism version 5
284 myconf="${myconf} `use_with kerberos krb5-security`"
285
286 # Amazon S3 support
287 myconf="${myconf} `use_enable s3 s3-device`"
288
289 # Client only, as requested in bug #127725
290 if use minimal ; then
291 myconf="${myconf} --without-server"
292 else
293 # amplot
294 myconf="${myconf} $(use_with gnuplot)"
295 fi
296
297 # IPv6 fun.
298 myconf="${myconf} `use_with ipv6`"
299
300 # I18N
301 myconf="${myconf} `use_enable nls`"
302
303 # Bug #296634: Perl location
304 perlinfo
305 myconf="${myconf} --with-amperldir=${VENDOR_LIB}"
306
307 # Bug 296633: --disable-syntax-checks
308 # Some tests are not safe for production systems
309 myconf="${myconf} --disable-syntax-checks"
310
311 # build manpages
312 myconf="${myconf} --enable-manpage-build"
313
314 econf ${myconf} || die "econf failed!"
315 }
316
317 src_compile() {
318 # Again, do not want the perl-module src_compile
319 base_src_compile
320 }
321
322 src_install() {
323 [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
324 source ${TMPENVFILE}
325
326 einfo "Doing stock install"
327 # parallel make install b0rked
328 emake -j1 DESTDIR="${D}" install || die
329
330 # Build the envdir file
331 # Don't forget this..
332 einfo "Building environment file"
333 (
334 echo "# These settings are what was present in the environment when this"
335 echo "# Amanda was compiled. Changing anything below this comment will"
336 echo "# have no effect on your application, but it merely exists to"
337 echo "# preserve them for your next emerge of Amanda"
338 cat "${TMPENVFILE}" | sed "s,=\$,='',g"
339 ) >> "${MYFILESDIR}/${ENVDFILE}"
340
341 # Env.d
342 einfo "Installing environment config file"
343 doenvd "${MYFILESDIR}/${ENVDFILE}"
344
345 # Lock down next section (up until docs).
346 insopts -m0640
347 # Installing Amanda Xinetd Services Definition
348 einfo "Installing xinetd service file"
349 insinto /etc/xinetd.d
350 if use minimal ; then
351 newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda
352 else
353 newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda
354 fi
355
356 einfo "Installing Sample Daily Cron Job for Amanda"
357 insinto /etc/cron.daily
358 newins "${MYFILESDIR}/amanda-cron" amanda
359
360 insinto /etc/amanda
361 einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
362 doins "${T}/amandahosts"
363 fperms 600 /etc/amanda/amandahosts
364
365 dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}/.amandahosts"
366 insinto "${AMANDA_USER_HOMEDIR}"
367 einfo "Installing .profile for ${AMANDA_USER_NAME} user"
368 newins "${MYFILESDIR}/amanda-profile" .profile
369
370 insinto /etc/amanda
371 doins "${S}/example/amanda-client.conf"
372 if ! use minimal ; then
373 insinto "/etc/amanda/${AMANDA_CONFIG_NAME}"
374 doins "${S}/example/amanda.conf"
375 doins "${S}/example/disklist"
376 keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index"
377 fi
378
379 keepdir "${AMANDA_TAR_LISTDIR}"
380 keepdir "${AMANDA_USER_HOMEDIR}/amanda"
381 keepdir "${AMANDA_TMPDIR}/dumps"
382 # Just make sure it exists for XFS to work...
383 use xfs && keepdir /var/xfsdump/inventory
384
385 local i
386 for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
387 "${AMANDA_TMPDIR}" /etc/amanda; do
388 einfo "Securing directory (${i})"
389 fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
390 done
391 # Do NOT use -R
392 fperms 0700 \
393 "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
394 "${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \
395 "${AMANDA_USER_HOMEDIR}/amanda" \
396 "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \
397 /etc/amanda /etc/amanda/${AMANDA_CONFIG_NAME}
398
399 einfo "Setting setuid permissions"
400 amanda_permissions_fix "${D}"
401
402 # Relax permissions again
403 insopts -m0644
404
405 # docs
406 einfo "Installing documentation"
407 dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
408 # our inetd sample
409 einfo "Installing standard inetd sample"
410 newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample
411 # Amanda example configs
412 einfo "Installing example configurations"
413 rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
414 mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/"
415 docinto example1
416 newdoc "${FILESDIR}/example_amanda.conf" amanda.conf
417 newdoc "${FILESDIR}/example_disklist-2.5.1_p3-r1" disklist
418 newdoc "${FILESDIR}/example_global.conf" global.conf
419
420 einfo "Cleaning up dud .la files"
421 perlinfo
422 find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f
423 }
424
425 pkg_postinst() {
426 [ ! -f "${TMPENVFILE}" -a "$EMERGE_FROM" == "binary" ] && \
427 TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}"
428 [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
429 source "${TMPENVFILE}"
430
431 # Migration of amandates from /etc to $localstatedir/amanda
432 if [ -f "${ROOT}/etc/amandates" -a \
433 ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
434 einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
435 einfo "A backup is also placed at /etc/amandates.orig"
436 cp -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
437 mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
438 cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
439 fi
440 if [ -f "${ROOT}/etc/amandates" ]; then
441 einfo "If you have migrated safely, please delete /etc/amandates"
442 fi
443
444 # If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
445 # another host than HOSTNAME.
446 if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then
447 elog "You are installing a client-only version of Amanda."
448 elog "You should set the variable \$AMANDA_SERVER to point at your"
449 elog "Amanda-tape-server, otherwise you will have to specify its name"
450 elog "when using amrecover on the client."
451 elog "For example: Use something like"
452 elog "AMANDA_SERVER=\"myserver\" emerge amanda"
453 elog
454 fi
455
456 einfo "Checking setuid permissions"
457 amanda_permissions_fix "${ROOT}"
458
459 elog "You should configure Amanda in /etc/amanda now."
460 elog
461 elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
462 elog "and restart xinetd afterwards!"
463 elog
464 elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
465 elog "as an example of how to configure your inetd."
466 elog
467 elog "NOTICE: If you need raw access to partitions you need to add the"
468 elog "amanda user to the 'disk' group."
469 elog
470 elog "NOTICE: If you have a tape changer, you need to add the amanda user"
471 elog "to the 'tape' group."
472 elog
473 elog "If you use localhost in your disklist your restores may break."
474 elog "You should replace it with the actual hostname!"
475 elog "Please also see the syntax changes to amandahosts."
476 }
477
478 # We have had reports of amanda file permissions getting screwed up.
479 # Losing setuid, becoming too lax etc.
480 # ONLY root and users in the amanda group should be able to run these binaries!
481 amanda_permissions_fix() {
482 local root="$1"
483 [ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
484 local le="/usr/libexec/amanda"
485 for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
486 "${le}"/rundump "${le}"/runtar "${le}"/dumper \
487 "${le}"/planner ; do
488 chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
489 chmod u=srwx,g=rx,o= "${root}"/${i}
490 done
491 }