diff options
author | Daniel Solano Gómez <daniel@solanogomez.org> | 2017-10-15 20:51:07 -0500 |
---|---|---|
committer | Daniel Solano Gómez <daniel@solanogomez.org> | 2017-10-15 20:51:07 -0500 |
commit | cda7b142e9b8901609e3c00c5d729b7fd408d611 (patch) | |
tree | 6ec3b4cfef05f371f3b6803b973666eeab42f026 /app-backup | |
parent | Add app-emulation/vagrant-bin (diff) | |
download | sattvik-cda7b142e9b8901609e3c00c5d729b7fd408d611.tar.gz sattvik-cda7b142e9b8901609e3c00c5d729b7fd408d611.tar.bz2 sattvik-cda7b142e9b8901609e3c00c5d729b7fd408d611.zip |
No longer using amanda
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/amanda/Manifest | 16 | ||||
-rw-r--r-- | app-backup/amanda/amanda-3.3.3-r1.ebuild | 475 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 | 8 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 | 8 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-cron | 13 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-devfs | 7 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 | 3 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-profile | 1 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client | 19 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server | 19 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda.service | 10 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda.service-r1 | 10 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda.socket | 7 | ||||
-rw-r--r-- | app-backup/amanda/files/example_amanda.conf | 44 | ||||
-rw-r--r-- | app-backup/amanda/files/example_disklist-2.5.1_p3-r1 | 4 | ||||
-rw-r--r-- | app-backup/amanda/files/example_global.conf | 78 |
16 files changed, 0 insertions, 722 deletions
diff --git a/app-backup/amanda/Manifest b/app-backup/amanda/Manifest deleted file mode 100644 index 131b3ac..0000000 --- a/app-backup/amanda/Manifest +++ /dev/null @@ -1,16 +0,0 @@ -AUX amanda-amandahosts-client-2.5.1_p3-r1 343 SHA256 26a446ae74aafcb90a05bb66430b70e35c5536ee9e42137abc7925bf1175e84e SHA512 7c0c4fc6d18b37ee8c11e64f98074b93f52f1bdcb97949648ced82d83ada2ea688f79531efa4c3e596f7390770540f45a7b122bba862cbd5218f1b870594f751 WHIRLPOOL df1dcdd48d2b2bf9588f99ef450549c6bd7dcfaff113e2804b67444cb1a283c426000dde9cef48cd099e02ab68b16b10da346f3d5a90e50ab82c601dca8d7587 -AUX amanda-amandahosts-server-2.5.1_p3-r1 340 SHA256 9e07c28b344ff42c6a8f31af2d9dac780a00ff28e40850a0b115e26990ecc0e7 SHA512 b11076634608c16cec4350364d60bcf3d22c12f07c0d8fab53d854e4fb21197eb016fb7f75d8153295ef9f997a3850fcd56b9fe268fa8dde5fd39d9dcbabb08b WHIRLPOOL 670afb2158089ce633f992bc3fe93b104ed87ab9f2952323f6d5523e18913b40eed290974d7399a6132d5ec376ad3348fc2c443776d20e798c7df209141e6d23 -AUX amanda-cron 419 SHA256 17e1a36c21264a9b254e64e9b7529d70402acd40772d158795490ac5fc08b01a SHA512 93aa1a6bcc66bc5147210bd0dd52ae664064cc708cbe59969a5bc9e783e4972841ad7cb89f3ae111ac7695c42e1b91f727890b8e58c4f8757f08e5eae90fb505 WHIRLPOOL 72a1da31879e9589d2a55e87d85371ff67eb2d5b58a80906eaf2a1922ffbc9fa4b6978e5d0538c8e529e91f66a2ce00b5a897003f30dde1c59307e029d6b6f4b -AUX amanda-devfs 349 SHA256 f21584bc65947e3ac671f89af04966aafd751360ef0465ce8ca1a249b0ee253a SHA512 44ff6ec5793f6a271e7315b4c45b894fd86e54b4cc6a063c79e69732db9347d45d9a30fb169759de124e568c19f281dba928c7b1696589d43aa83caad6e4836a WHIRLPOOL 15023cf20feee469f085b5259b36e64d0841b87557b12a1e2f83a1a8e1ed23001aa07c99778ecfff90d30b3dceb62052a2d128bfa653e1a427b8594dacfd5ed5 -AUX amanda-inetd.amanda.sample-2.6.0_p2-r2 326 SHA256 4056a53e1a6f3dd5527da9fd85e810e21ebab0fe9100043b2ac165743d5a9b79 SHA512 8d5c6896f05bb66c2c524d6a9b547008dc218ddd4866b6ce7d8e0e0099c8cd5e6b6f05c9fd7fa1035a2627200ef2becc2981c4d213c9695ffed76af4de82dfd1 WHIRLPOOL 3a9c4b9ce906b87d23453f6ac2a6c45424b192dabc03d1e331f25e71fce4839211fcd797b9873614eb2396aa2173b264bfb04ff6d33e20f9a0405415c99df892 -AUX amanda-profile 49 SHA256 5781459910f0f72b1bfe15d758f17e7d6c8e33b5856b62a8d5cedf64a2917e76 SHA512 a7125e77858f22ed7c27ef9a070314c174e15ae530f871b1cfa27f9dd5c1f9a97029b30a6265e825c5e0a05428a04d41d41afe557eb01fcd40fdc50df3799ca8 WHIRLPOOL 5bdf92ed2d4be69908be107f46443ec9a1c6cd09bf09948224bfa02662a9d79cc3524ae778a76d2d3b19d30dc633117248dbb0201f7a575b8b08e154179ad108 -AUX amanda-xinetd-2.6.1_p1-client 640 SHA256 1581e772a0c7fccc29bd4b19b3e1c8a04942c7d683dc269b4de16826a362a259 SHA512 1c8ad07bfe79a20cb17208255a327b0ceb0f47834ceeedc97df23a2987816169988f9df0432e7df70dc7ebccf35628c0b38f00a0ec210ddec558190df89b1191 WHIRLPOOL 7884ae5cbb7280aba695a932f08862dbd09b8df46e8f80e534fee4c1a4b245464362718c53ff510c907f564b5709f506d6ea2fda93818603ac76fd4529081e3b -AUX amanda-xinetd-2.6.1_p1-server 660 SHA256 a43edca3dcd152cd886d13c4ceb963b1e450909bbec257c9e7ac4382de616ac8 SHA512 ae0bf03a446becb54e7cbe3e39db990125f2d67a91bb59deaccbb112a0855c45a7840ac68e5e1c6543c03890c7e3e929b0e94527686d678de78044fa0d316c26 WHIRLPOOL 8c244f31382823b1a9e2b18621b46802f5f30de76c64e0223eecc51c0fb597763b53e7a2a4da7fb9e503a0e7da79e9396c6343ae6a9c412c1aff345d0421cc95 -AUX amanda.service 199 SHA256 1091b9be5b0b48a543d360f308d8e50645546bbf63335cb96d635046d0dae7e6 SHA512 cc54f9423a6f88d2393c96c871d59e8e1f4bbc027ee3cf1cd865609fcf469f1aa3807a5e942efd5ffa77dc7d1d9b657698a8b9ed8c418cc40fd5267610606c0e WHIRLPOOL bf518fcb58967854b011ecc73f4d79d16be7b1caa9d9cdbae4c2c823ba2240c03f5924ddac7f6874957e47d464abed71cb467332eb5f388be4f77a7bec608fc2 -AUX amanda.service-r1 219 SHA256 e226993c391cceb27ef9b05984df49555ec7c03e18bec135ddf74cb0cc87be9b SHA512 81ebe6f7d1005533d459fde64f7d5f43b06da785c8983bb5a6ed0b9c1abfb4b5106e1050166cc8e34acdf9890df6a6afe605fa3cd0310964ce17b8db1eb8206c WHIRLPOOL 352d42752f45d8789344300c8d73d09c78bc3c07f553e6dc953cd8e84c34d02dd2a6ddab8e6fb03f9d768b6ed23191084b784033a54983b7869ffb3bc8eab30f -AUX amanda.socket 107 SHA256 47df2b337c4726068a5bf5d3dfb9ad6dba5c36f5851a445a1ff601040dbb8b86 SHA512 4017590985a4e194174cf2ea16ccac5600aaee0d874144a9a28121bcf607d8a116d1f6fe50e10a54330777ccac39b703865b486c7d4e9cca363d8b53c715ee4f WHIRLPOOL 579871cdab024d12b9089f133bf446c1ac2560f807ff0a2e0b0a9a779df9b1e1e87a687b5b9c63f001c9dc342537e194d3c66fbc5772a9affaac423f9dcca1ea -AUX example_amanda.conf 635 SHA256 a1b0520fb0fca0f4146c59589987fffa637a0ce643a91d6d71dde6f538faf325 SHA512 c025aeba89ae686a7bdc5211d9f9b52663cbf8d90fc293f8e3b7ec4b86810d0098e125f4d41bd76af4f3a451bf98b292aa062760c40efba226e15a06bb3a85a9 WHIRLPOOL 50d4e2bab918f54be0ffe6cba018bf468b55e5286d58b99f0d0d7ed0b69761f020c3c1224f8c00e4457acf068ecf54019283bdfb032a4b58931f4089f85258a9 -AUX example_disklist-2.5.1_p3-r1 177 SHA256 bc0388e7de0cc36888d3b27430b4a6b138dd39c77263fdc53dfee9f0b93142f8 SHA512 43fd73b55d48396e1863b23b20b84781aaa7e38200ee4fdbcb898c9a8c5479e24b8448a68ceac01bd6339202935bbf32f02e70a779ee989eeb368ec88d890ae3 WHIRLPOOL 8784e8944c67644e204160aa488486fd028b2f79333bae724d9fb5bf3cf66fb306e8d59e3d9172a0bf9d8639c41899a97d1aa9c7f8f4c1f38adbbc07e98bb8af -AUX example_global.conf 1377 SHA256 5223d061cd160b241e0d1fad1e328d241387fecb753e797d2e216f77d97a8808 SHA512 c432bdfb97ceb1005bc004d12208f90b09d4c41c8562b8bba0f7b43bbe510672038ca1658a764cff7c6f8e56fa1439a7c15c69714773438e602a693a4f8195a5 WHIRLPOOL 778bdc964d4a7af1bf28775a4c0b46378ebb9812cfe4fb2bb96e4d85d42a96a5dfc60b93f5bfc6e760fcbe9d79477b902466c4a8c1478729568260a96d17a435 -DIST amanda-3.3.3.tar.gz 4394935 SHA256 c36c9cd61dc62a7824abb7ba74cc4b09527bd82a930d691cf207b60b4bb15b72 SHA512 42af74a9e3b3fd92600e78d98eb4cdcf9d260bd9bbd016dde4133db346374deb41e4893159205336b35521c36f737c2877fd5030028531e1c09a0a6ac2931ba9 WHIRLPOOL 730deda1d85e645e658500a01ea72895f836a3dd99209314a65161674da24fed5aad98313a8ef66ef76176c6c7b1a60e62d30d692cfe2121eb429d9cb37f5636 -EBUILD amanda-3.3.3-r1.ebuild 16007 SHA256 71834201423456bbfdd962901d6e5572ecac80f9c359cb3faf7d9fa558b1240c SHA512 103abe6b69f7b4e912d5ba6c52e5f19688a48759f5cb57b05db7c2cae9628dd565766ef204eecee9c1988c69c7f7ab044f64e6ce51ca868b8ddd6c2c65ca7947 WHIRLPOOL c5e6d7189c982f0447d086b9d0ae44adf346f02cc2c1cd9c5c6af241f4660773464c8d2a84f1fb4572d6b9e66780d6054d2d3967585e95cae387ad945b1f6763 diff --git a/app-backup/amanda/amanda-3.3.3-r1.ebuild b/app-backup/amanda/amanda-3.3.3-r1.ebuild deleted file mode 100644 index 9fa8ef8..0000000 --- a/app-backup/amanda/amanda-3.3.3-r1.ebuild +++ /dev/null @@ -1,475 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/amanda/amanda-3.3.3-r1.ebuild,v 1.9 2014/11/10 22:47:35 dilfridge Exp $ - -EAPI=5 -inherit autotools eutils perl-module user systemd - -DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver" -HOMEPAGE="http://www.amanda.org/" -SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz" -LICENSE="HPND BSD BSD-2 GPL-2+ GPL-3+" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 ~sparc x86" -RDEPEND="sys-libs/readline - virtual/awk - app-arch/tar - >=dev-lang/perl-5.6 - app-arch/dump - net-misc/openssh - >=dev-libs/glib-2.26.0 - nls? ( virtual/libintl ) - s3? ( >=net-misc/curl-7.10.0 ) - !s3? ( curl? ( >=net-misc/curl-7.10.0 ) ) - samba? ( net-fs/samba ) - kerberos? ( app-crypt/mit-krb5 ) - xfs? ( sys-fs/xfsdump ) - readline? ( sys-libs/readline ) - !minimal? ( - dev-perl/XML-Simple - virtual/mailx - app-arch/mt-st - sys-block/mtx - gnuplot? ( sci-visualization/gnuplot ) - app-crypt/aespipe - app-crypt/gnupg - )" - -DEPEND="${RDEPEND} - virtual/pkgconfig - nls? ( sys-devel/gettext ) - >=app-text/docbook-xsl-stylesheets-1.72.0 - app-text/docbook-xml-dtd - dev-libs/libxslt - perl? ( dev-lang/swig ) - " - -IUSE="curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs perl" - -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)" - - # 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=/bin/bash - [ -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 - - # If USE=minimal, give out a warning, if AMANDA_SERVER is not set to - # another host than HOSTNAME. - if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then - elog "You are installing a client-only version of Amanda." - elog "You should set the variable \$AMANDA_SERVER to point at your" - elog "Amanda-tape-server, otherwise you will have to specify its name" - elog "when using amrecover on the client." - elog "For example: Use something like" - elog "AMANDA_SERVER=\"myserver\" emerge amanda" - elog - fi - - 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() { - # we do not want the perl src_unpack - default_src_unpack -} - -src_prepare() { - - # gentoo bug #331111 - sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am - sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am - - # bug with glibc-2.16.0 - sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h - - eautoreconf - - # 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}" - - # Prepare our custom files - einfo "Building custom configuration files" - 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 - - # now apply the sed expr - for i in "${FILESDIR}"/amanda-* ; do - sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`" - done - - ( - cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 - use minimal || cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1 - ) > "${T}"/amandahosts - - if ! use minimal; then - sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \ - server-src/am{addclient,serverconfig}.pl || die - fi - - use perl && touch perl/*/*.swg -} - -src_configure() { - # fix bug #36316 - addpredict /var/cache/samba/gencache.tdb - # fix bug #376169 - addpredict /run/blkid - addpredict /etc/blkid.tab - - [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!" - source "${TMPENVFILE}" - local myconf - - 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}" - - # 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 5 - myconf="${myconf} `use_with kerberos krb5-security`" - - # Amazon S3 support - myconf="${myconf} `use_enable s3 s3-device`" - - # libcurl is required for S3 but otherwise optional - if ! use s3; then - myconf="${myconf} $(use_with curl libcurl)" - fi - - # Client only, as requested in bug #127725 - if use minimal ; then - myconf="${myconf} --without-server" - else - # amplot - myconf="${myconf} $(use_with gnuplot)" - fi - - # IPv6 fun. - myconf="${myconf} `use_with ipv6`" - # This is to prevent the IPv6-is-working test - # As the test fails on binpkg build hosts with no IPv6. - use ipv6 && export amanda_cv_working_ipv6=yes - - # I18N - myconf="${myconf} `use_enable nls`" - - # Bug #296634: Perl location - perl_set_version - myconf="${myconf} --with-amperldir=${VENDOR_LIB}" - - # Bug 296633: --disable-syntax-checks - # Some tests are not safe for production systems - myconf="${myconf} --disable-syntax-checks" - - # build manpages - myconf="${myconf} --enable-manpage-build" - - # bug #483120 - tc-export AR - - econf \ - $(use_with readline) \ - ${myconf} -} - -src_compile() { - # Again, do not want the perl-module src_compile - default_src_compile -} - -src_install() { - [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!" - source ${TMPENVFILE} - - einfo "Doing stock install" - emake DESTDIR="${D}" install || die - - # Build the envdir file - # Don't forget this.. - einfo "Building environment file" - ( - echo "# These settings are what was present in the environment when this" - echo "# Amanda was compiled. Changing anything below this comment will" - echo "# have no effect on your application, but it merely exists to" - echo "# preserve them for your next emerge of Amanda" - cat "${TMPENVFILE}" | sed "s,=\$,='',g" - ) >> "${MYFILESDIR}/${ENVDFILE}" - - # Env.d - einfo "Installing environment config file" - doenvd "${MYFILESDIR}/${ENVDFILE}" - - # Lock down next section (up until docs). - insopts -m0640 - # Installing Amanda Xinetd Services Definition - einfo "Installing xinetd service file" - insinto /etc/xinetd.d - if use minimal ; then - newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda - else - newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda - fi - - if ! use minimal; then - einfo "Installing Sample Daily Cron Job for Amanda" - insinto /etc/cron.daily - newins "${MYFILESDIR}/amanda-cron" amanda - fi - - einfo "Installing systemd service and socket files for Amanda" - systemd_dounit "${FILESDIR}"/amanda.socket || die - systemd_newunit "${FILESDIR}"/amanda.service-r1 'amanda@.service' || die - - insinto /etc/amanda - einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user" - doins "${T}/amandahosts" - fperms 600 /etc/amanda/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 - - insinto /etc/amanda - doins "${S}/example/amanda-client.conf" - if ! use minimal ; then - insinto "/etc/amanda/${AMANDA_CONFIG_NAME}" - doins "${S}/example/amanda.conf" - doins "${S}/example/disklist" - keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index" - fi - - keepdir "${AMANDA_TAR_LISTDIR}" - keepdir "${AMANDA_USER_HOMEDIR}/amanda" - keepdir "${AMANDA_TMPDIR}/dumps" - # Just make sure it exists for XFS to work... - use xfs && keepdir /var/xfsdump/inventory - - local i - for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \ - "${AMANDA_TMPDIR}" /etc/amanda; do - einfo "Securing directory (${i})" - fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i} - done - # Do NOT use -R - fperms 0700 \ - "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \ - "${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \ - "${AMANDA_USER_HOMEDIR}/amanda" \ - /etc/amanda - - if ! use minimal ; then - fperms 0700 \ - "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \ - /etc/amanda/${AMANDA_CONFIG_NAME} - fi - - einfo "Setting setuid permissions" - amanda_permissions_fix "${D}" - - # Relax permissions again - insopts -m0644 - - # docs - einfo "Installing documentation" - dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING - # our inetd sample - einfo "Installing standard inetd sample" - newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample - # Amanda example configs - einfo "Installing example configurations" - rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes} - mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/" - 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 - - einfo "Cleaning up dud .la files" - perl_set_version - find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f -} - -pkg_postinst() { - [ ! -f "${TMPENVFILE}" -a "$MERGE_TYPE" == "binary" ] && \ - TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}" - [ ! -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 -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig" - mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/" - cp -dp "${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 - - 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." - elog - elog "NOTICE: If you have a tape changer, you need to add the amanda user" - elog "to the 'tape' group." - 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." - elog - elog "Please note that this package no longer explicitly depends on" - elog "virtual/inetd, as it supports modes where an inetd is not needed" - elog "(see bug #506028 for details)." - -} - -# 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/amanda-amandahosts-client-2.5.1_p3-r1 b/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 deleted file mode 100644 index 570a710..0000000 --- a/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 +++ /dev/null @@ -1,8 +0,0 @@ -# vim: ts=4 sts=4 sw=4 noexpandtab: -# Machine-name for those hosts which are permitted to back up (fully-qualified -# is best). An entry in /etc/hosts adds fail-safe against DNS death :-) -# | -# | permitted user-name -# | | - -__AMANDA_SERVER__ __AMANDA_USER_NAME__ amdump diff --git a/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 b/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 deleted file mode 100644 index 4951d4a..0000000 --- a/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 +++ /dev/null @@ -1,8 +0,0 @@ -# vim: ts=4 sts=4 sw=4 noexpandtab: -# Machine-name for those hosts which are permitted to back up (fully-qualified -# is best). An entry in /etc/hosts adds fail-safe against DNS death :-) -# | -# | permitted user-name -# | | - -__AMANDA_SERVER__ root amindexd amidxtaped diff --git a/app-backup/amanda/files/amanda-cron b/app-backup/amanda/files/amanda-cron deleted file mode 100644 index a5524dc..0000000 --- a/app-backup/amanda/files/amanda-cron +++ /dev/null @@ -1,13 +0,0 @@ -#!/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-backup/amanda/files/amanda-devfs b/app-backup/amanda/files/amanda-devfs deleted file mode 100644 index f02eb3f..0000000 --- a/app-backup/amanda/files/amanda-devfs +++ /dev/null @@ -1,7 +0,0 @@ -# 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" - -# allow amanda to have access to tape changers -#REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.disk 660 - diff --git a/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 b/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 deleted file mode 100644 index e2aa342..0000000 --- a/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 +++ /dev/null @@ -1,3 +0,0 @@ -amanda dgram udp wait amanda /usr/libexec/amanda/amandad amandad -auth=bsd amdump amindexd amidxtaped -amandaidx stream tcp nowait amanda /usr/libexec/amanda/amindexd amindexd -auth=bsd amdump amindexd amidxtaped -amidxtape stream tcp nowait amanda /usr/libexec/amanda/amidxtaped amidxtaped -auth=bsd amdump amindexd amidxtaped diff --git a/app-backup/amanda/files/amanda-profile b/app-backup/amanda/files/amanda-profile deleted file mode 100644 index d8e132b..0000000 --- a/app-backup/amanda/files/amanda-profile +++ /dev/null @@ -1 +0,0 @@ -export PATH=/sbin:/usr/sbin:/usr/libexec:${PATH} diff --git a/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client deleted file mode 100644 index ed73c03..0000000 --- a/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client +++ /dev/null @@ -1,19 +0,0 @@ -# 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_USER_NAME__ - group = __AMANDA_GROUP_NAME__ - groups = yes - server = /usr/libexec/amanda/amandad - server_args = -auth=bsd amdump - # You need to ensure this points to your Amanda server! - # Don't just remove it! - only_from = __AMANDA_SERVER__ - disable = yes -} diff --git a/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server deleted file mode 100644 index 269198e..0000000 --- a/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server +++ /dev/null @@ -1,19 +0,0 @@ -# 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_USER_NAME__ - group = __AMANDA_GROUP_NAME__ - groups = yes - server = /usr/libexec/amanda/amandad - server_args = -auth=bsd amdump amindexd amidxtaped - # You need to ensure this points to your Amanda server! - # Don't just remove it! - only_from = __AMANDA_SERVER__ - disable = yes -} diff --git a/app-backup/amanda/files/amanda.service b/app-backup/amanda/files/amanda.service deleted file mode 100644 index b1f67db..0000000 --- a/app-backup/amanda/files/amanda.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Amanda Backup System -After=local-fs.target - -[Service] -User=amanda -Group=amanda -ExecStart=/usr/libexec/amanda/amandad -auth=bsdtcp amdump -StandardInput=socket -StandardOutput=socket diff --git a/app-backup/amanda/files/amanda.service-r1 b/app-backup/amanda/files/amanda.service-r1 deleted file mode 100644 index a605eb4..0000000 --- a/app-backup/amanda/files/amanda.service-r1 +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Amanda Backup System -After=local-fs.target - -[Service] -User=amanda -Group=amanda -ExecStart=/usr/libexec/amanda/amandad -auth=bsdtcp amdump amindexd amidxtaped -StandardInput=socket -StandardOutput=socket diff --git a/app-backup/amanda/files/amanda.socket b/app-backup/amanda/files/amanda.socket deleted file mode 100644 index baf8079..0000000 --- a/app-backup/amanda/files/amanda.socket +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Amanda Socket -[Socket] -ListenStream=10080 -Accept=true -[Install] -WantedBy=sockets.target diff --git a/app-backup/amanda/files/example_amanda.conf b/app-backup/amanda/files/example_amanda.conf deleted file mode 100644 index 947625e..0000000 --- a/app-backup/amanda/files/example_amanda.conf +++ /dev/null @@ -1,44 +0,0 @@ -# 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-backup/amanda/files/example_disklist-2.5.1_p3-r1 b/app-backup/amanda/files/example_disklist-2.5.1_p3-r1 deleted file mode 100644 index 73bf017..0000000 --- a/app-backup/amanda/files/example_disklist-2.5.1_p3-r1 +++ /dev/null @@ -1,4 +0,0 @@ -# Substitute <HOSTNAME> with the FQDN of your Amanda-client here. -# The usage of localhost will *break* your restores. -<HOSTNAME> hda1 normal local -<HOSTNAME> hda3 normal local diff --git a/app-backup/amanda/files/example_global.conf b/app-backup/amanda/files/example_global.conf deleted file mode 100644 index 7287398..0000000 --- a/app-backup/amanda/files/example_global.conf +++ /dev/null @@ -1,78 +0,0 @@ -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 -} - - |