summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-06-26 19:47:55 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-06-26 19:47:55 +0000
commita0db5b2de160dabf3bf6df25d907f0f2e8836b07 (patch)
treeae3b3e593b37895c974c05386e5317e17cbcfb57 /app-admin
parentadded amanda ebuild (diff)
downloadgentoo-2-a0db5b2de160dabf3bf6df25d907f0f2e8836b07.tar.gz
gentoo-2-a0db5b2de160dabf3bf6df25d907f0f2e8836b07.tar.bz2
gentoo-2-a0db5b2de160dabf3bf6df25d907f0f2e8836b07.zip
added amanda ebuild
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/amanda/ChangeLog15
-rw-r--r--app-admin/amanda/Manifest40
-rw-r--r--app-admin/amanda/amanda-2.4.4.ebuild227
-rw-r--r--app-admin/amanda/files/amanda-amandahosts2
-rw-r--r--app-admin/amanda/files/amanda-cron13
-rw-r--r--app-admin/amanda/files/amanda-devfs4
-rw-r--r--app-admin/amanda/files/amanda-profile1
-rw-r--r--app-admin/amanda/files/amanda-xinetd42
-rw-r--r--app-admin/amanda/files/digest-amanda-2.4.41
-rw-r--r--app-admin/amanda/files/example_amanda.conf44
-rw-r--r--app-admin/amanda/files/example_disklist2
-rw-r--r--app-admin/amanda/files/example_global.conf78
12 files changed, 439 insertions, 30 deletions
diff --git a/app-admin/amanda/ChangeLog b/app-admin/amanda/ChangeLog
new file mode 100644
index 000000000000..5a5ffa77be32
--- /dev/null
+++ b/app-admin/amanda/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for app-admin/amanda
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/amanda/ChangeLog,v 1.1 2003/06/26 19:47:53 robbat2 Exp $
+
+*amanda-2.4.4 (26 Jun 2003)
+
+ 26 June 2003; Robin Johnson <robbat2@gentoo.org> Manifest,
+ files/amanda-devfs, files/example_disklist, files/amanda-cron,
+ files/amanda-xinetd, files/amanda-profile, files/example_amanda.conf,
+ files/amanda-amandahosts, files/digest-amanda-2.4.4,
+ files/example_global.conf, amanda-2.4.4.ebuild, ChangeLog:
+ Initial import. Russell Adams <demo@demosthenes.org> submitted a reasonable
+ ebuild for amanda in bug #19403. I have merged the good elements of all
+ available amanda ebuild into this new ebuild. Bugs #10782, #13948, #16118,
+ #18466, #19403.
diff --git a/app-admin/amanda/Manifest b/app-admin/amanda/Manifest
index 694982321c5e..0b0e68eeecb7 100644
--- a/app-admin/amanda/Manifest
+++ b/app-admin/amanda/Manifest
@@ -1,31 +1,11 @@
-MD5 fab7ada988dee356e23d0782e758ed63 amanda-2.4.4.ebuild 2975
-MD5 a960080c13b615e081f0baedf1758ebe amanda-2.4.4.ebuild~ 2976
-MD5 b08dbe127a204ec3e9af66bf6b72d976 ChangeLog 281
-MD5 d204eb622b4592a90e2d2b6f7ec32ea8 18466/Manifest 732
-MD5 571325380eab2aee0489e5a3ef366efe 18466/amanda-2.4.4.ebuild 4619
-MD5 ab2ce338a46d4f6a517c20a976a962c8 18466/ChangeLog 1593
-MD5 c320ca8d669640ca4c37f5d4681657f7 19403/amanda-2.4.3.ebuild~ 2831
-MD5 b08dbe127a204ec3e9af66bf6b72d976 19403/ChangeLog~ 281
-MD5 ad7ebbbb489c659c8fc53636a03ac9ba 19403/amanda-2.4.3.ebuild 2828
-MD5 b08dbe127a204ec3e9af66bf6b72d976 19403/ChangeLog 281
-MD5 1b1d78543c9be457dfb59258b7b43715 files/amandahosts.amanda-2.4.3 32
-MD5 a60ea0c166faedda8c31af0d9d1ec00f files/digest-amanda-2.4.3 65
+MD5 12f8714bb4ac326bce234331e59fd35f amanda-2.4.4.ebuild 8395
+MD5 57a77cc4973d7b06a845c2fd71f42de0 ChangeLog 805
+MD5 b21569120561b1c58ad59e93ce6df732 files/amanda-devfs 216
+MD5 fe28f64731a2dbf85f76b6f38942e032 files/example_disklist 55
+MD5 a98390eb2ab16398b7332c42560c190f files/amanda-cron 419
+MD5 77423fd6136dad038a2a9a60d2055b6f files/amanda-xinetd 1121
+MD5 5dc6aa39797dd614ceb118c4930e228b files/amanda-profile 50
+MD5 7e3ebbf89155432d9ee2e0ede8d4d8d6 files/example_amanda.conf 635
+MD5 1b1d78543c9be457dfb59258b7b43715 files/amanda-amandahosts 32
MD5 7e5571de2054c56f477b5522246a834e files/digest-amanda-2.4.4 65
-MD5 ebef0efd79475ca61a7c68476e51571e files/profile.amanda-2.4.3 32
-MD5 80b62b37eaeb7aa21c53a8d8e44bfd9b files/amanda.cron.amanda-2.4.3 447
-MD5 cf5e95f4ab35fd7891da77f408d1ffe5 files/amanda.amanda-2.4.3 974
-MD5 94a46e9b3aa815c50caa5b86252e2bc1 18466/files/.bashrc 53
-MD5 fe28f64731a2dbf85f76b6f38942e032 18466/files/example_disklist 55
-MD5 7e3ebbf89155432d9ee2e0ede8d4d8d6 18466/files/example_amanda.conf 635
-MD5 30d8a91592251e74a4d8cc29d99c5d0c 18466/files/.amandahosts 17
-MD5 7e5571de2054c56f477b5522246a834e 18466/files/digest-amanda-2.4.4 65
-MD5 86b2659f6236005851a4efee46886003 18466/files/xinetd_amandaidx 245
-MD5 6daa977ee3b235495fad6d36ef848418 18466/files/devfs_amanda 220
-MD5 20e16fa5349ff71c7fc1d2b35dd2f3d4 18466/files/xinetd_amidxtape 247
-MD5 daa0d3a03e586b0515046984e098df7e 18466/files/xinetd_amanda 242
-MD5 95a109a0edbf12da91dbabf7977a97f7 18466/files/global.conf 1377
-MD5 1b1d78543c9be457dfb59258b7b43715 19403/files/amandahosts.amanda-2.4.3 32
-MD5 a60ea0c166faedda8c31af0d9d1ec00f 19403/files/digest-amanda-2.4.3 65
-MD5 ebef0efd79475ca61a7c68476e51571e 19403/files/profile.amanda-2.4.3 32
-MD5 80b62b37eaeb7aa21c53a8d8e44bfd9b 19403/files/amanda.cron.amanda-2.4.3 447
-MD5 cf5e95f4ab35fd7891da77f408d1ffe5 19403/files/amanda.amanda-2.4.3 974
+MD5 95a109a0edbf12da91dbabf7977a97f7 files/example_global.conf 1377
diff --git a/app-admin/amanda/amanda-2.4.4.ebuild b/app-admin/amanda/amanda-2.4.4.ebuild
new file mode 100644
index 000000000000..119fe766d27a
--- /dev/null
+++ b/app-admin/amanda/amanda-2.4.4.ebuild
@@ -0,0 +1,227 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/amanda/amanda-2.4.4.ebuild,v 1.1 2003/06/26 19:47:53 robbat2 Exp $
+
+inherit eutils
+DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
+HOMEPAGE="http://www.amanda.org/"
+SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc"
+DEPEND="sys-libs/readline
+ virtual/inetd
+ virtual/mta
+ app-arch/mt-st
+ net-mail/mailx
+ media-gfx/gnuplot
+ sys-apps/gawk
+ sys-apps/tar
+ sys-devel/autoconf
+ sys-devel/automake
+ dev-lang/perl
+ sys-apps/mtx
+ app-arch/dump
+ net-mail/mailx
+ samba? ( net-fs/samba )
+ berkdb? ( sys-libs/db )
+ gdbm? ( sys-libs/gdbm )
+ xfs? ( sys-apps/xfsdump )"
+
+
+IUSE="pic debug gdbm berkdb samba xfs"
+
+S=${WORKDIR}/${P}
+
+[ -z "${AMANDA_GROUP_GID}" ] && AMANDA_GROUP_GID=87
+[ -z "${AMANDA_GROUP_NAME}" ] && AMANDA_GROUP_NAME=amanda
+[ -z "${AMANDA_USER_NAME}" ] && AMANDA_USER_NAME=amanda
+[ -z "${AMANDA_USER_UID}" ] && AMANDA_USER_UID=87
+[ -z "${AMANDA_USER_SH}" ] && AMANDA_USER_SH=/bin/false
+[ -z "${AMANDA_USER_HOMEDIR}" ] && AMANDA_USER_HOMEDIR=/var/spool/amanda
+[ -z "${AMANDA_USER_GROUPS}" ] && AMANDA_USER_GROUPS=${AMANDA_GROUP_NAME}
+# This installs Amanda, with the server. However, it could be a client,
+# just specify an alternate server name in AMANDA_SERVER.
+[ -z "${AMANDA_SERVER}" ] && AMANDA_SERVER=localhost
+[ -z "${AMANDA_SERVER_TAPE}" ] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
+[ -z "${AMANDA_SERVER_INDEX}" ] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
+[ -z "${AMANDA_TAR_LISTDIR}" ] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
+[ -z "${AMANDA_CONFIG_NAME}" ] && AMANDA_CONFIG_NAME=DailySet1
+[ -z "${AMANDA_TMPDIR}" ] && AMANDA_TMPDIR=${AMANDA_USER_HOMEDIR}/tmp
+
+pkg_setup() {
+ enewgroup ${AMANDA_GROUP_NAME} ${AMANDA_GROUP_GID}
+ enewuser ${AMANDA_USER_NAME} ${AMANDA_USER_UID} ${AMANDA_USER_SH} ${AMANDA_USER_HOMEDIR} ${AMANDA_USER_GROUPS}
+ echo >/dev/null
+}
+
+src_compile() {
+ local myconf
+ cd ${S}
+
+ [ -z "${AMANDA_DBMODE}" ] || use gdbm && AMANDA_DBMODE=gdbm
+ use berkdb && AMANDA_DBMODE=db
+ [ -z "${AMANDA_DBMODE}" ] && AMANDA_DBMODE=text
+ einfo "Using '${AMANDA_DBMODE}' style database"
+ myconf="${myconf} --with-db=${AMANDA_DBMODE}"
+
+ einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
+ myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
+ einfo "Using ${AMANDA_SERVER_INDEX} for index server."
+ myconf="${myconf} --with-index-server=${AMANDA_SERVER_TAPE}"
+ einfo "Using ${AMANDA_USER_NAME} for amanda user."
+ myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
+ einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
+ myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
+ einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
+ myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
+ einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
+ myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
+ einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
+ myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
+
+ if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
+ eerror "If you want _both_ UDP and TCP ports, please use only the"
+ eerror "AMANDA_PORTS environment variable for identical ports, or set"
+ eerror "AMANDA_PORTS_BOTH."
+ die "Bad port setup!"
+ fi
+ if [ -n "${AMANDA_PORTS_UDP}" ]; then
+ einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
+ myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
+ fi
+ if [ -n "${AMANDA_PORTS_TCP}" ]; then
+ einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
+ myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
+ fi
+ if [ -n "${AMANDA_PORTS}" ]; then
+ einfo "Using ports ${AMANDA_PORTS/,/-}"
+ myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
+ fi
+
+ # Extras
+ # Speed option
+ myconf="${myconf} --with-buffered-dump"
+ # Debug
+ myconf="${myconf} `use_with debug debugging`"
+ # PIC
+ myconf="${myconf} `use_with pic`"
+ myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
+
+ use samba && myconf="${myconf} --with-smbclient=/usr/bin/smbclient" || myconf="${myconf} --without-smbclient"
+
+ econf ${myconf} || die "econf failed!"
+ emake || die "emake failed!"
+
+ # Compile the tapetype program too
+ cd tape-src
+ emake tapetype || "emake tapetype failed!"
+
+ dosed "s,/usr/local/bin/perl,/usr/bin/perl," ${S}/contrib/set_prod_link.pl
+ perl ${S}/contrib/set_prod_link.pl
+
+}
+
+
+src_install() {
+
+ make DESTDIR=${D} install || die
+
+ into /usr
+ newsbin tape-src/tapetype tapetype
+
+ dodoc AUTHORS C* INSTALL NEWS README
+ docinto example
+ dodoc ${S}/example/*
+ docinto docs
+ dodoc ${S}/docs/*
+ prepalldocs
+
+ # einfo "Installing Amandahosts File for ${AMANDA_SERVER}"
+ insinto ${AMANDA_USER_HOMEDIR}
+ newins ${FILESDIR}/amanda-amandahosts .amandahosts
+ dosed "s/__AMANDA_SERVER__/${AMANDA_SERVER}/" ${AMANDA_USER_HOMEDIR}/.amandahosts
+ newins ${FILESDIR}/amanda-profile .profile
+
+ # einfo "Installing Sample Daily Cron Job for Amanda"
+ CRONDIR=/etc/cron.daily/
+ exeinto ${CDRONDIR}
+ newexe ${FILESDIR}/amanda-cron amanda
+ dosed "s,__AMANDA_CONFIG_NAME__,${AMANDA_CONFIG_NAME},g" ${CRONDIR}/amanda
+ fperms 644 ${CRONDIR}/amanda
+
+ insinto /etc/amanda/lbl
+ newins ${S}/example/3hole.ps 3hole.ps
+ newins ${S}/example/8.5x11.ps 8.5x11.ps
+ newins ${S}/example/DIN-A4.ps DIN-A4.ps
+ newins ${S}/example/DLT.ps DLT.ps
+ newins ${S}/example/EXB-8500.ps EXB-8500.ps
+ newins ${S}/example/HP-DAT.ps HP-DAT.ps
+
+ # Amanda example configs
+ insinto /etc/amanda/example
+ newins ${FILESDIR}/example_amanda.conf amanda.conf
+ newins ${FILESDIR}/example_disklist disklist
+ newins ${FILESDIR}/example_global.conf global.conf
+ insinto /etc/amanda/example2
+ newins ${S}/example/amanda.conf amanda.conf
+ newins ${S}/example/disklist disklist
+
+ # einfo "Installing Sample Daily Backup Configuration"
+ insinto /etc/amanda/${AMANDA_CONFIG_NAME}
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} /etc/amanda
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} /etc/amanda/${AMANDA_CONFIG_NAME}
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} /etc/amanda/${AMANDA_CONFIG_NAME}/*
+ fperms 700 /etc/amanda
+ fperms 700 /etc/amanda/${AMANDA_CONFIG_NAME}
+
+ local i
+ for i in amandates dumpdates; do
+ touch ${D}/etc/${i}
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} /etc/${i}
+ fperms 600 /etc/${i}
+ done
+
+ dodir ${AMANDA_TAR_LISTDIR}
+ dodir ${AMANDA_TMPDIR}
+ dodir ${AMANDA_TMPDIR}/dumps
+ dodir ${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} ${AMANDA_USER_HOMEDIR}
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} ${AMANDA_TAR_LISTDIR}
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} ${AMANDA_TMPDIR}
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} ${AMANDA_TMPDIR}/dumps
+ fowners ${AMANDA_USER_NAME}.${AMANDA_GROUP_NAME} ${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}
+ fperms 700 ${AMANDA_USER_HOMEDIR}
+
+ # DevFS
+ insinto /etc/devfs.d
+ newins ${FILESDIR}/amanda-devfs amanda
+
+ if [ -x "/usr/sbin/xinetd" ]; then
+ # Installing Amanda Xinetd Services Definition
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/amanda-xinetd amanda
+ dosed "s/__AMANDA_SERVER__/${AMANDA_SERVER}/g" /etc/xinetd.d/amanda
+ else
+ echo > ${D}/etc/amanda/inetd.amanda "amanda dgram udp wait amanda /usr/libexec/amanda/amandad amandad"
+ echo >> ${D}/etc/amanda/inetd.amanda "amandaidx stream tcp nowait amanda /usr/libexec/amanda/amindexd amindexd"
+ echo >> ${D}/etc/amanda/inetd.amanda "amidxtape stream tcp nowait amanda /usr/libexec/amanda/amidxtaped amidxtaped"
+ fi
+}
+
+pkg_postinst() {
+ einfo "You should configure Amanda in /etc/amanda now."
+ if [ -x "/usr/sbin/xinetd" ]; then
+ einfo "Don't forget to check /etc/xinetd.d/amanda and restart"
+ einfo "xinetd afterwards!"
+ else
+ einfo "No xinetd found. Config example for inetd is in /etc/amanda/inetd.amanda"
+ fi
+ einfo "NOTICE: If you need raw acces to partitions you need to add the"
+ einfo "amanda user to the 'disk' group and uncomment following lines in"
+ einfo "your /etc/devfs.d/amanda:"
+ einfo "SCSI:"
+ einfo "REGISTER ^scsi/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
+ einfo "IDE:"
+ einfo "REGISTER ^ide/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
+}
diff --git a/app-admin/amanda/files/amanda-amandahosts b/app-admin/amanda/files/amanda-amandahosts
new file mode 100644
index 000000000000..1213e6590387
--- /dev/null
+++ b/app-admin/amanda/files/amanda-amandahosts
@@ -0,0 +1,2 @@
+localhost amanda
+localhost root
diff --git a/app-admin/amanda/files/amanda-cron b/app-admin/amanda/files/amanda-cron
new file mode 100644
index 000000000000..a5524dc2e3a1
--- /dev/null
+++ b/app-admin/amanda/files/amanda-cron
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# This is a sample cron job to kick off backups with amanda.
+
+# Run the tape tests on DailySet first, and if ok, then kick off backups
+# Mail error reports to root
+
+# Ensure TAPE is set to your tape drive for mt to work, ie. TAPE="/dev/st0"
+
+ADMIN_EMAIL="root@localhost"
+
+/usr/sbin/amcheck -t -m -M"${ADMIN_EMAIL}" __AMANDA_CONFIG_NAME__ && \
+( /usr/sbin/amdump __AMANDA_CONFIG_NAME__ ; /usr/sbin/mt eject )
diff --git a/app-admin/amanda/files/amanda-devfs b/app-admin/amanda/files/amanda-devfs
new file mode 100644
index 000000000000..8e04bb27d9ec
--- /dev/null
+++ b/app-admin/amanda/files/amanda-devfs
@@ -0,0 +1,4 @@
+# raw access to partitions for amanda
+#REGISTER ^scsi/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
+#REGISTER ^ide/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
+
diff --git a/app-admin/amanda/files/amanda-profile b/app-admin/amanda/files/amanda-profile
new file mode 100644
index 000000000000..40c948b9adff
--- /dev/null
+++ b/app-admin/amanda/files/amanda-profile
@@ -0,0 +1 @@
+export PATH=/usr/sbin:/usr/libexec/amanda:${PATH}
diff --git a/app-admin/amanda/files/amanda-xinetd b/app-admin/amanda/files/amanda-xinetd
new file mode 100644
index 000000000000..eb4ca8b2755a
--- /dev/null
+++ b/app-admin/amanda/files/amanda-xinetd
@@ -0,0 +1,42 @@
+# These are the services needed for amanda.
+# Default is to talk to localhost only unless
+# AMANDA_SERVER was specified at build time.
+
+service amanda
+{
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = amanda
+ group = root
+ groups = yes
+ server = /usr/libexec/amandad
+ only_from = __AMANDA_SERVER__
+ disable = yes
+}
+
+service amandaidx
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = amanda
+ group = root
+ groups = yes
+ server = /usr/libexec/amindexd
+ only_from = __AMANDA_SERVER__
+ disable = yes
+}
+
+service amidxtape
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = amanda
+ group = root
+ groups = yes
+ server = /usr/libexec/amidxtaped
+ only_from = __AMANDA_SERVER__
+ disable = yes
+}
diff --git a/app-admin/amanda/files/digest-amanda-2.4.4 b/app-admin/amanda/files/digest-amanda-2.4.4
new file mode 100644
index 000000000000..0744e0686521
--- /dev/null
+++ b/app-admin/amanda/files/digest-amanda-2.4.4
@@ -0,0 +1 @@
+MD5 1f5f0c636707994eb7b5e74b19528323 amanda-2.4.4.tar.gz 1220934
diff --git a/app-admin/amanda/files/example_amanda.conf b/app-admin/amanda/files/example_amanda.conf
new file mode 100644
index 000000000000..947625e8ebbc
--- /dev/null
+++ b/app-admin/amanda/files/example_amanda.conf
@@ -0,0 +1,44 @@
+# type "man amanda"
+
+org "example"
+mailto "root@localhost"
+
+dumpcycle 7
+runspercycle -1
+tapecycle 7
+
+dumpuser "amanda"
+printer "lp"
+
+#tpchanger "chg-manual"
+tapedev "/dev/nst0"
+
+runtapes 1
+labelstr "^EXAMPLE-[0-9][0-9]*$"
+tapetype DDS4-PRINT
+
+ctimeout 60
+dtimeout 3600
+etimeout 600
+
+netusage 2000
+inparallel 10
+
+dumporder "tttTTTTTTT"
+maxdumps 10
+bumpsize 10
+bumpmult 1.5
+bumpdays 1
+
+diskfile "/etc/amanda/example/disklist"
+infofile "/etc/amanda/example/curinfo"
+logdir "/etc/amanda/example"
+indexdir "/etc/amanda/example/index"
+tapelist "tapelist"
+
+tapebufs 20
+reserve 100
+autoflush off
+
+includefile "/etc/amanda/global.conf"
+
diff --git a/app-admin/amanda/files/example_disklist b/app-admin/amanda/files/example_disklist
new file mode 100644
index 000000000000..76062519bbb4
--- /dev/null
+++ b/app-admin/amanda/files/example_disklist
@@ -0,0 +1,2 @@
+localhost hda1 normal local
+localhost hda3 normal local \ No newline at end of file
diff --git a/app-admin/amanda/files/example_global.conf b/app-admin/amanda/files/example_global.conf
new file mode 100644
index 000000000000..728739850940
--- /dev/null
+++ b/app-admin/amanda/files/example_global.conf
@@ -0,0 +1,78 @@
+holdingdisk hd1 {
+ comment "main holding disk"
+ directory "/tmp/amanda/dumps"
+ use -1 Gb
+ chunksize 500 Mb
+}
+
+define dumptype normal {
+ auth BSD
+ comment "Normal backup, compression"
+ comprate 0.50, 0.50
+ compress client best
+ index yes
+ priority high
+ program "GNUTAR"
+ record yes
+ strategy STANDARD
+ holdingdisk yes
+}
+
+define dumptype compress-server {
+ auth BSD
+ comment "Normal backup, compression"
+ comprate 0.50, 0.50
+ compress server best
+ index yes
+ priority high
+ program "GNUTAR"
+ record yes
+ strategy STANDARD
+ holdingdisk yes
+}
+
+define dumptype normal-no_hold {
+ normal
+ holdingdisk no
+}
+
+define tapetype DDS4 {
+ comment "Seagate Scorpion 40"
+ length 16432 mbytes
+ filemark 0 kbytes
+ speed 2267 kps
+}
+
+define tapetype DDS4-PRINT {
+ comment "Seagate Scorpion 40 with printer"
+ length 16432 mbytes
+ filemark 0 kbytes
+ speed 2267 kps
+ lbl-templ "/etc/amanda/lbl/DIN-A4.ps"
+}
+
+define tapetype DDS2 {
+ comment "HP DAT C1533A"
+ length 1845 mbytes
+ filemark 0 kbytes
+ speed 480 kps
+}
+
+define tapetype DDS1 {
+ comment "HP DAT HP35480A"
+ length 1845 mbytes
+ filemark 32 kbytes
+ speed 174 kps
+}
+
+define interface local {
+ comment "local disk"
+ use 4000 kbps
+}
+
+define interface eth1 {
+ comment "100 Mbps ethernet"
+ use 1000 kbps
+}
+
+