summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Solano Gómez <daniel@solanogomez.org>2010-01-21 20:46:52 -0600
committerDaniel Solano Gómez <daniel@solanogomez.org>2010-01-21 20:46:52 -0600
commit53e37475f0e396c1d0e164ee4ff6b7193f1183fb (patch)
tree02f883eb3e64f3720886b74bb37a23d2a4ef133f /app-backup
parentAdd samba-server-3.4.4 with cups-encrypt support. (diff)
downloadsattvik-53e37475f0e396c1d0e164ee4ff6b7193f1183fb.tar.gz
sattvik-53e37475f0e396c1d0e164ee4ff6b7193f1183fb.tar.bz2
sattvik-53e37475f0e396c1d0e164ee4ff6b7193f1183fb.zip
Removed obsolete amanda ebuild.
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/amanda/Manifest31
-rw-r--r--app-backup/amanda/amanda-2.6.1_p1.ebuild455
l---------app-backup/amanda/files1
3 files changed, 0 insertions, 487 deletions
diff --git a/app-backup/amanda/Manifest b/app-backup/amanda/Manifest
deleted file mode 100644
index 4874ee3..0000000
--- a/app-backup/amanda/Manifest
+++ /dev/null
@@ -1,31 +0,0 @@
-AUX amanda-2.4.5-4tb-holding-disk.patch 457 RMD160 1537baf1acaf10a74b45371df85a921d2ac6a288 SHA1 10803145fe25c7345b6d5612f10e960e642f5a9b SHA256 96f07eb4ed85e6e634baa6130c932d17524e8c4ad0a6e2b46590f4df492ffaaa
-AUX amanda-2.4.5-amverify-loop-detect.patch 1108 RMD160 617fc3f5db4ae20620d9d85a2e7793b0e96d454e SHA1 9ea134508f64f827e1821a3ee1d340a4f2ff0699 SHA256 f2222c85a95f0cca792d7611503a1685e3ff17b3052be995eb68cc4fa12ecb45
-AUX amanda-2.4.5-samba-printf.patch 498 RMD160 1e445c04a59362a25cd35ac7800c7ed95829c9ff SHA1 e8ccee9e6446243a23c26698cc5787fcfcd6fc3a SHA256 e9a824c233fb2c167a66de4b70fe0b5288008eec0c49941db4ff3f0fdebd5f7a
-AUX amanda-2.5.1_p2-tar-1.16.patch 296 RMD160 6851b8681056bde2101c9f4e16424d6de49acf30 SHA1 9a678cd83452de4019c90810e791cdcf8772bfc9 SHA256 f1bd6453e2d61f94ee63bee2c6d455b64810a0cb934f1c004234a01ec7dfa015
-AUX amanda-2.5.1_p3-displayunit.patch 931 RMD160 c2ff2db44fde3c489a6bb660c17f44045f223f78 SHA1 0e2b9d3c4438002510e36d428bdc9deff6086c0d SHA256 7631a39667a67eed8ede8c1828c5d02657a8b114584fb224bd8b6f9058330e6b
-AUX amanda-2.5.2_p1-chg-multi.patch 611 RMD160 f46873aee5318d346accec3bb771b28b2b0b06da SHA1 9cbe148a6d069072eafa81bdf67272e9b5d02f50 SHA256 0b81c541ea331324a070553236a5a893654f7f5155c53939c7fba56ad09ba4fd
-AUX amanda-2.5.2_p1-fix-asneeded.patch 951 RMD160 2cd9bf9e4fd8dd63edba8ac35955af96a8841566 SHA1 daa9a25d73f1baf1548c9618237209e62253d28c SHA256 7e238d26ef8ffe62d99a8aa22e2066b0c261cd92796383a5a0612af9c4978593
-AUX amanda-2.5.2p1-amcrypt-ossl-asym-race-fix.patch 2618 RMD160 f4ee355f0a2143a46792889352770446ef307d85 SHA1 aed18456f4334c9e821e5f2ddca28d11d6e56783 SHA256 8df4f48e81690c90fa3842e7bfafc7dca0c69730bac535e1782f47d25d5f8b0c
-AUX amanda-2.6.0_p2-syslocpath.patch 965 RMD160 16b4ee50822a0c97d717dcf0c8c2644c984d1076 SHA1 442f40c16acaf0d48c3b3d615329c1389a9b0e2b SHA256 70f19629852cb02876bac21a119acc30b94822126f5828d4e453af1ae47bc398
-AUX amanda-2.6.0p2-amcrypt-ossl-asym-race-fix.patch 2713 RMD160 012e4a323de90f6fc266ba39df1e24184f891194 SHA1 7035280b3f89f652ab5d18b0062f07ee3990329d SHA256 4ef8b55a79f1dc7ccd604bf308afbe3949baf55f9eab9ef2556f9c0f4f48a6e8
-AUX amanda-amandahosts 339 RMD160 534c47134ff53faac312ee21c4b5f27752452cce SHA1 8b8a3245681f6a203f2b60a64ee0ece2d4405c11 SHA256 52825d4feba9a74d42740e9807c2a563e52e08ae5c55092a54033dc6d49f517c
-AUX amanda-amandahosts-client-2.5.1_p3-r1 343 RMD160 f5526644c7c9ec517f648b374d35dcbecd73de97 SHA1 c3e1e6a800b5b9ae26e218730d60817f8ddd8847 SHA256 26a446ae74aafcb90a05bb66430b70e35c5536ee9e42137abc7925bf1175e84e
-AUX amanda-amandahosts-server-2.5.1_p3-r1 340 RMD160 0680e414089f5bec2540404f8d74708602d703b1 SHA1 8920c2adb0a9a0e55eb15238630d93e9d54433a2 SHA256 9e07c28b344ff42c6a8f31af2d9dac780a00ff28e40850a0b115e26990ecc0e7
-AUX amanda-cron 419 RMD160 97b13e25afc88d64f0320a08189b4e7b4c7fa054 SHA1 ff4835e78c7a9abd10b8cd79c1d9d744a2782af1 SHA256 17e1a36c21264a9b254e64e9b7529d70402acd40772d158795490ac5fc08b01a
-AUX amanda-devfs 349 RMD160 8ea1eb8f64c9e8238e95b92b5f6524e3170165d9 SHA1 f280b06b7a3ad205637daedaf170bf38f83918f0 SHA256 f21584bc65947e3ac671f89af04966aafd751360ef0465ce8ca1a249b0ee253a
-AUX amanda-inetd.amanda.sample 194 RMD160 070aea45f4be953906ba8e91e9144bec8f78aad7 SHA1 67848d531fe7280375d10bd8bd12d00ab333a70f SHA256 a08952b4468ecc80fb8e140aca5d4fb8b849c7d5da24a2b1c550551b50fbee15
-AUX amanda-inetd.amanda.sample-2.5.1_p3-r1 305 RMD160 72306e99703218b2b304c024e3bd624a7ea6aa7e SHA1 8bbdcee99527ec9ab5b4e7bd7afbc5b9a39d8199 SHA256 49bf1548ca8e3e640151b79a5c827ea3211bafb4036aa67572b7096b46ac6014
-AUX amanda-inetd.amanda.sample-2.6.0_p2-r2 326 RMD160 ea21b25849158eae590a6689132fe29f95d0fb40 SHA1 8a66d3f6428032a1fa92bcb4d385190bdd3f7266 SHA256 4056a53e1a6f3dd5527da9fd85e810e21ebab0fe9100043b2ac165743d5a9b79
-AUX amanda-profile 49 RMD160 2958487df40529f0d692f02f2343b633d34853a6 SHA1 80da3900ace9b4069b7cae11cfc5da5a6670f010 SHA256 5781459910f0f72b1bfe15d758f17e7d6c8e33b5856b62a8d5cedf64a2917e76
-AUX amanda-xinetd 1502 RMD160 d09e925fce9a8a61be12735dd6d3fa0abd7129f5 SHA1 1f33fc86553b4c5434725cf736620dbaee9f25ac SHA256 d6f411ab0bfaadf03060a48bf29d68a7a039db6cea8f25b8b28ca9d01168a6aa
-AUX amanda-xinetd-2.5.1_p3-r1 1558 RMD160 c23a1a86062dbe8d55b891c1bd7bba9186ba3036 SHA1 dbe41cf8a7969f77ba87e9125a2e87f719532988 SHA256 4952a00d0ece67da7cfb648baa2c758aebcebf5303e326e5aa30e04a57db8b6d
-AUX amanda-xinetd-2.6.0_p2-r2 1523 RMD160 2c1cff435afbe4959361255b9fc848930a641358 SHA1 5f8d64892254dc18913838640e09de18fb438257 SHA256 eab5ab7ae44f8ad32c3e6e42f74aad0f618b8149339f63604aae167213748bc1
-AUX example_amanda.conf 635 RMD160 1214396161457bb71cd6a31e23d6cb78482e20e7 SHA1 4368b8d7908e49963bc144c68119a32c047877ff SHA256 a1b0520fb0fca0f4146c59589987fffa637a0ce643a91d6d71dde6f538faf325
-AUX example_disklist 55 RMD160 42e25ba19c331578cb6472926048defc7196ab2c SHA1 3d8ae2e4c17c16e216c6a9a5401dc87947ab24df SHA256 ce5fe7642fe0cbca7968007fb6fce393500eee3525aed97465d0b8b529941ef8
-AUX example_disklist-2.5.1_p3-r1 177 RMD160 e9f8f4dda3d7f022e1e60b556a713a9b891b5845 SHA1 8d35a5fe8ba9f3f30659684e17bae0e69d51196b SHA256 bc0388e7de0cc36888d3b27430b4a6b138dd39c77263fdc53dfee9f0b93142f8
-AUX example_global.conf 1377 RMD160 009e5039f94938c8521e58236da6027d7ec33766 SHA1 2e75914f18ed478c5cd1cd1bb9b0570fa2d20e82 SHA256 5223d061cd160b241e0d1fad1e328d241387fecb753e797d2e216f77d97a8808
-AUX patch-tar-1.14.90 984 RMD160 8b5fdfbd84450a0b462ca64b4ff3cfaf0d697beb SHA1 2c88f1ddff0c2efce109894d046ec419c1da5c84 SHA256 9aa5da6b3ee484daf2d762ec51a5e3c6f329d545b225c3ee088265d4efdddda2
-AUX s3-list-keys.diff 2561 RMD160 e94eebd3a1a564477cb3aa9961287d24c1fed601 SHA1 f1a932d768a8711004e6e6eabedbbcaf4fce5fc7 SHA256 29d1586d690de8651185571255ad5902047bd624f847ceb10d0f4008c062ed37
-AUX s3.c.part2.diff 528 RMD160 6c142a8f875891c6ec7b1f9b0cabe14ddca907fe SHA1 da1924176ec9c760f453382b886af251f9269586 SHA256 67f005f371f6e205ccd1ffb7214c688c9538ee04e4e6a63211c167a6ce639513
-DIST amanda-2.6.1p1.tar.gz 2848295 RMD160 f76945bbddbab961fcc109f6dbe2ddf82ea3ee49 SHA1 796b8748d2bdee21268f6001aa967c95f68c8c51 SHA256 23e8523abe5623d4f1f5d7271460d1250309d10897e6da3af8c849bdd20ee921
-EBUILD amanda-2.6.1_p1.ebuild 15820 RMD160 df95fec9d6e761d0663f2eb1195c61c5952a70d9 SHA1 b48f72edb5537cf948f3b349b1e253afe03e252c SHA256 78544994ec330a38c1ef92451b8d486b97245389e131b9a966c3e4a5cb9a81f8
diff --git a/app-backup/amanda/amanda-2.6.1_p1.ebuild b/app-backup/amanda/amanda-2.6.1_p1.ebuild
deleted file mode 100644
index 7c4d8b0..0000000
--- a/app-backup/amanda/amanda-2.6.1_p1.ebuild
+++ /dev/null
@@ -1,455 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/amanda/amanda-2.6.0_p2-r4.ebuild,v 1.11 2009/04/13 21:09:55 ranger Exp $
-
-inherit autotools eutils
-
-MY_P="${P/_}"
-DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
-HOMEPAGE="http://www.amanda.org/"
-SRC_URI="mirror://sourceforge/amanda/${MY_P}.tar.gz"
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="amd64 ~ppc ppc64 ~sparc x86"
-RDEPEND="sys-libs/readline
- virtual/inetd
- sys-apps/gawk
- app-arch/tar
- dev-lang/perl
- app-arch/dump
- net-misc/openssh
- dev-libs/glib
- s3? ( net-misc/curl )
- samba? ( net-fs/samba )
- kerberos? ( app-crypt/mit-krb5 )
- !sparc? ( xfs? ( sys-fs/xfsdump ) )
- !minimal? ( virtual/mailx
- app-arch/mt-st
- sys-block/mtx
- sci-visualization/gnuplot
- app-crypt/aespipe
- app-crypt/gnupg )"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-IUSE="berkdb gdbm ipv6 minimal s3 samba xfs kerberos"
-
-S="${WORKDIR}/${MY_P}"
-MYFILESDIR="${T}/files"
-ENVDIR="/etc/env.d"
-ENVDFILE="97amanda"
-TMPENVFILE="${T}/${ENVDFILE}"
-
-# This is a complete list of Amanda settings that the ebuild takes from the
-# build environment. This allows users to alter the behavior of the package as
-# upstream intended, but keeping with Gentoo style. We store a copy of them in
-# /etc/env.d/97amanda during the install, so that they are preserved for future
-# installed. This variable name must not start with AMANDA_, as we do not want
-# it captured into the env file.
-ENV_SETTINGS_AMANDA="
-AMANDA_GROUP_GID AMANDA_GROUP_NAME
-AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
-AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_INDEX
-AMANDA_TAR_LISTDIR AMANDA_TAR
-AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
-AMANDA_CONFIG_NAME AMANDA_TMPDIR"
-
-amanda_variable_setup() {
-
- # Setting vars
- local currentamanda
-
- # Grab the current settings
- currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
- #use debug && einfo "Current settings: ${currentamanda}"
- #for i in ${currentamanda}; do
- # eval `eval echo ${i}`
- # echo "Setting: ${i}"
- #done;
-
- # First we set the defaults
- [ -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=-1
- [ -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="${HOSTNAME}"
- [ -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=/var/tmp/amanda
- [ -z "${AMANDA_DBGDIR}" ] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
- # These are left empty by default
- [ -z "${AMANDA_PORTS_UDP}" ] && AMANDA_PORTS_UDP=
- [ -z "${AMANDA_PORTS_TCP}" ] && AMANDA_PORTS_TCP=
- [ -z "${AMANDA_PORTS_BOTH}" ] && AMANDA_PORTS_BOTH=
- [ -z "${AMANDA_PORTS}" ] && AMANDA_PORTS=
-
- # What tar to use
- [ -z "${AMANDA_TAR}" ] && AMANDA_TAR=/bin/tar
-
- # Now pull in the old stuff
- if [ -f "${ROOT}${ENVDIR}/${ENVDFILE}" ]; then
- # We don't just source it as we don't want everything in there.
- eval $(egrep "^AMANDA_" "${ROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
- fi
-
- # Re-apply the new settings if any
- [ -n "${currentamanda}" ] && eval `echo "${currentamanda}"`
-
-}
-
-pkg_setup() {
- amanda_variable_setup
- enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
- enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Fix a fun race condition if you use encryption.
- # This is one of the reasons you should test your recovery procedures often.
- epatch "${FILESDIR}"/${PN}-2.6.0p2-amcrypt-ossl-asym-race-fix.patch
-
- # gentoo bug 248838, check /sbin stuff before /bin
- epatch "${FILESDIR}"/${PN}-2.6.0_p2-syslocpath.patch
-
- eautoreconf
-
- # now the real fun
- amanda_variable_setup
- # places for us to work in
- mkdir -p "${MYFILESDIR}"
- # Now we store the settings we just created
- set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}"
-}
-
-src_compile() {
- # fix bug #36316
- addpredict /var/cache/samba/gencache.tdb
-
- [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
- source "${TMPENVFILE}"
- local myconf
-
- #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_INDEX}"
- 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} as Tar implementation."
- myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
- 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"
- # "debugging" in the configuration is NOT debug in the conventional sense.
- # It is actually just useful output in the application, and should remain
- # enabled. There are some cases of breakage with MTX tape changers as of
- # 2.5.1p2 that it exposes when turned off as well.
- myconf="${myconf} --with-debugging"
- # Where to put our files
- myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
- # Where to put doc files
- myconf="${myconf} --with-amdatadir=/usr/share/doc/${PF}"
-
- # Samba support
- myconf="${myconf} `use_with samba smbclient /usr/bin/smbclient`"
-
- # Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
- # default
- myconf="${myconf} --with-bsd-security"
- myconf="${myconf} --with-ssh-security"
- myconf="${myconf} --with-bsdudp-security"
- myconf="${myconf} --with-bsdtcp-security"
-
- # kerberos-security mechanism version 4
- # always disable, per bug #173354
- myconf="${myconf} --without-krb4-security"
-
- # kerberos-security mechanism version 5
- myconf="${myconf} `use_with kerberos krb5-security`"
-
- # Amazon S3 support
- myconf="${myconf} `use_enable s3 s3-device`"
-
- # Client only, as requested in bug #127725
- use minimal && myconf="${myconf} --without-server"
-
- # IPv6 fun.
- myconf="${myconf} `use_with ipv6`"
-
- econf ${myconf} || die "econf failed!"
- emake -j1 || die "emake failed!"
-
- # Compile the tapetype program too
- # This is deprecated, use amtapetype instead!
- # cd tape-src
- # emake tapetype || die "emake tapetype failed!"
-
- # Only needed if you we do versioning
- #dosed "s,/usr/local/bin/perl,/usr/bin/perl," ${S}/contrib/set_prod_link.pl
- #perl ${S}/contrib/set_prod_link.pl
-
-}
-
-src_install() {
- [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
- source ${TMPENVFILE}
-
- einfo "Doing stock install"
- emake -j1 DESTDIR="${D}" install || die
-
- # Prepare our custom files
- einfo "Building custom configuration files"
- cp "${FILESDIR}"/amanda-* "${MYFILESDIR}"
- local i # our iterator
- local sedexpr # var for sed expr
- sedexpr=''
- for i in ${ENV_SETTINGS_AMANDA} ; do
- local val
- eval "val=\"\${${i}}\""
- sedexpr="${sedexpr}s|__${i}__|${val}|g;"
- done
- #einfo "Compiled SED expression: '${sedexpr}'"
-
- # now apply the sed expr
- for i in "${FILESDIR}"/amanda-* ; do
- local filename
- filename="`basename ${i}`"
- #einfo "Applying compiled SED expression to ${filename}"
- sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}"/${filename}
- done
-
- # Build the envdir file
- # Don't forget this..
- einfo "Building environment file"
- local t
- t="${MYFILESDIR}"/${ENVDFILE}
- echo "# These settings are what was present in the environment when this" >>"${t}"
- echo "# Amanda was compiled. Changing anything below this comment will" >>"${t}"
- echo "# have no effect on your application, but it merely exists to" >>"${t}"
- echo "# preserve them for your next emerge of Amanda" >>"${t}"
- cat "${TMPENVFILE}" | sed "s,=\$,='',g" >>"${t}"
-
- # Deprecated, use amtapetype instead
- #einfo "Installing tapetype utility"
- #newsbin tape-src/tapetype tapetype
-
- # docs
- einfo "Installing documentation"
- dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
-
- rm -rf "${D}"/usr/share/amanda
- # our inetd sample
- einfo "Installing standard inetd sample"
- newdoc "${MYFILESDIR}"/amanda-inetd.amanda.sample-2.6.0_p2-r2 amanda-inetd.amanda.sample
- # Labels
- einfo "Installing labels"
- docinto labels
- dodoc "${S}"/example/3hole.ps
- dodoc "${S}"/example/8.5x11.ps
- dodoc "${S}"/example/DIN-A4.ps
- dodoc "${S}"/example/DLT.ps
- dodoc "${S}"/example/EXB-8500.ps
- dodoc "${S}"/example/HP-DAT.ps
- # Amanda example configs
- einfo "Installing example configurations"
- docinto example
- dodoc "${S}"/example/*.conf
- dodoc "${S}"/example/*.amanda{server,client}
- dodoc "${S}"/example/disklist
- #docinto example/template.d
- #dodoc "${S}"/example/template.d/README
- #dodoc "${S}"/example/template.d/*.conf
- #dodoc "${S}"/example/template.d/*types
- docinto example1
- newdoc "${FILESDIR}"/example_amanda.conf amanda.conf
- newdoc "${FILESDIR}"/example_disklist-2.5.1_p3-r1 disklist
- newdoc "${FILESDIR}"/example_global.conf global.conf
- # Compress it all
- prepalldocs
-
- # Just make sure it exists for XFS to work...
- use !sparc && use xfs && keepdir /var/xfsdump/inventory
-
- insinto /etc/amanda
- einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
-
- (
- cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1
- use minimal || cat "${FILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1
- ) > "${T}"/amandahosts
- doins "${T}"/amandahosts
-
- dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}"/.amandahosts
- insinto "${AMANDA_USER_HOMEDIR}"
- einfo "Installing .profile for ${AMANDA_USER_NAME} user"
- newins "${MYFILESDIR}"/amanda-profile .profile
-
- einfo "Installing Sample Daily Cron Job for Amanda"
- local CRONDIR=/etc/cron.daily
- insinto ${CRONDIR}
- newins "${MYFILESDIR}"/amanda-cron amanda
-
- insinto /etc/amanda/${AMANDA_CONFIG_NAME}
- doins "${S}/example/amanda.conf"
-
- local i
- for i in ${AMANDA_USER_HOMEDIR} ${AMANDA_TAR_LISTDIR} \
- ${AMANDA_TMPDIR} ${AMANDA_TMPDIR}/dumps \
- ${AMANDA_USER_HOMEDIR}/amanda \
- ${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME} \
- /etc/amanda /etc/amanda/${AMANDA_CONFIG_NAME}; do
- einfo "Securing directory (${i})"
- dodir ${i}
- keepdir ${i}
- fowners ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
- fperms 700 ${i}
- done
-
- einfo "Setting setuid permissions"
- amanda_permissions_fix "${D}"
-
- # DevFS
- einfo "Installing DevFS config file"
- insinto /etc/devfs.d
- newins "${MYFILESDIR}"/amanda-devfs amanda
-
- # Env.d
- einfo "Installing environment config file"
- doenvd "${MYFILESDIR}"/${ENVDFILE}
-
- # Installing Amanda Xinetd Services Definition
- einfo "Installing xinetd service file"
- insinto /etc/xinetd.d
- newins "${MYFILESDIR}"/amanda-xinetd-2.6.0_p2-r2 amanda
-
-}
-
-do_initial() {
- path="$1"
- shift
- for i in $* ; do
- einfo "Creating inital Amanda file (${i}) in $path"
- touch "${ROOT}"/${path}/${i}
- chown ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} "${ROOT}"/${path}/${i}
- chmod 600 "${ROOT}"/${path}/${i}
- done
-}
-
-pkg_postinst() {
- [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
- source "${TMPENVFILE}"
-
- # Migration of amandates from /etc to $localstatedir/amanda
- if [ -f "${ROOT}/etc/amandates" -a \
- ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
- einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
- einfo "A backup is also placed at /etc/amandates.orig"
- cp -f "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
- mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
- cp -f "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
- fi
- if [ -f "${ROOT}/etc/amandates" ]; then
- einfo "If you have migrated safely, please delete /etc/amandates"
- fi
- # Do setups
- do_initial /etc dumpdates
- do_initial "${AMANDA_USER_HOMEDIR}/amanda" amandates
-
- # If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
- # another host than HOSTNAME.
- if use minimal; then
- if [[ "${AMANDA_SERVER}" = "${HOSTNAME}" ]]; then
- echo
- ewarn "You are installing a client-only version of Amanda."
- ewarn "You should set the variable $AMANDA_SERVER to point at your"
- ewarn "Amanda-tape-server, otherwise you will have to specify its name"
- ewarn "when using amrecover on the client."
- ewarn "For example: Use something like"
- ewarn "AMANDA_SERVER=\"myserver\" emerge amanda"
- echo
- fi
- fi
-
- einfo "Checking setuid permissions"
- amanda_permissions_fix "${ROOT}"
-
- elog "You should configure Amanda in /etc/amanda now."
- elog
- elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
- elog "and restart xinetd afterwards!"
- elog
- elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
- elog "as an example of how to configure your inetd."
- elog
- elog "NOTICE: If you need raw access to partitions you need to add the"
- elog "amanda user to the 'disk' group and uncomment following lines in"
- elog "your /etc/devfs.d/amanda:"
- elog "SCSI:"
- elog "REGISTER ^scsi/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
- elog "IDE:"
- elog "REGISTER ^ide/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
- elog
- elog "NOTICE: If you have a tape changer, also uncomment the following"
- elog "REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.disk 660"
- elog
- elog "If you use localhost in your disklist your restores may break."
- elog "You should replace it with the actual hostname!"
- elog "Please also see the syntax changes to amandahosts."
-}
-
-# We have had reports of amanda file permissions getting screwed up.
-# Losing setuid, becoming too lax etc.
-# ONLY root and users in the amanda group should be able to run these binaries!
-amanda_permissions_fix() {
- local root="$1"
- [ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
- local le="/usr/libexec/amanda"
- for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
- "${le}"/rundump "${le}"/runtar "${le}"/dumper \
- "${le}"/planner ; do
- chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
- chmod u=srwx,g=rx,o= "${root}"/${i}
- done
-}
diff --git a/app-backup/amanda/files b/app-backup/amanda/files
deleted file mode 120000
index 9a25d73..0000000
--- a/app-backup/amanda/files
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/app-backup/amanda/files \ No newline at end of file