Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51275 Details for
Bug 33865
[EBUILD] new package: afbackup
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
afbackup-server/client-3.3.8.1.ebuild rename accordingly
afbackup-server-3.3.8.1.ebuild (text/plain), 2.98 KB, created by
Andreas Kobara
on 2005-02-15 06:51:32 UTC
(
hide
)
Description:
afbackup-server/client-3.3.8.1.ebuild rename accordingly
Filename:
MIME Type:
Creator:
Andreas Kobara
Created:
2005-02-15 06:51:32 UTC
Size:
2.98 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > ># is this the server ebuild, otherwise client >if [ "${PN/afbackup-/}" = "server" ];then >MY_PN=${PN/-server/} >MY_MODE=server >else >MY_PN=${PN/-client/} >MY_MODE=client >fi >MY_P=${MY_PN}-${PV} > >DESCRIPTION="AFBackup is a client/server backup tool" >HOMEPAGE="http://afbackup.sourceforge.net/" >SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="zlib" > >DEPEND="?zlib ( sys-libs/zlib )" >RDEPEND="?zlib ( sys-libs/zlib )" > >S=${WORKDIR}/${MY_P} > >src_unpack() { > unpack ${A} > cd ${S} > > sed -i -e 's:subdir="/backup":subdir="/afbackup":' configure > > # Setting up authentication key > einfo "Searching for your afbackup.key..." > if [ -f /etc/afbackup/afbackup.key ]; then > AFBACKUPKEY=`echo /etc/afbackup/afbackup.key` > einfo "...found." > fi > > # if none, generate a random key > if [ "x${AFBACKUPKEY}" = "x" ]; then > ewarn "AFBACKUPKEY environment variable not set, generating new key..." > AFBACKUPKEY=`head -c4 /dev/urandom | od -N4 -tu4 | sed -ne '1s/.* //p'` > fi > > einfo "Using ${AFBACKUPKEY} as your backup key." > sed -i -e "s:k=\" \":k=\"${AFBACKUPKEY}\":" ask_for_key > cat ${AFBACKUPKEY} > ${S}/afbackup.key >} > >src_compile() { > local myconf="" > use zlib && myconf="${myconf} --with-zlib" > ./configure \ > --host=${CHOST} \ > --prefix=/opt \ > --with-serverconfdir=/etc/afbackup \ > --with-serverconf=server.conf \ > --with-servermandir=/usr/share/man \ > --with-clientconfdir=/etc/afbackup \ > --with-clientconf=client.conf \ > --with-clientmandir=/usr/share/man \ > --mandir=/usr/share/man \ > ${myconf} || die "./configure failed" > > einfo "Building: afbackup-${MY_MODE}" > emake ${MY_MODE} || die "emake failed" >} > >src_install() { > local myconf="" > use zlib && myconf="${myconf} --with-zlib" > einfo "Reconfiguring ${MY_MODE} installation path..." > ./configure \ > --host=${CHOST} \ > --prefix=${D}/opt \ > --with-serverconfdir=${D}/etc/afbackup \ > --with-serverconf=server.conf \ > --with-servermandir=${D}/usr/share/man \ > --with-clientconfdir=${D}/etc/afbackup \ > --with-clientconf=client.conf \ > --with-clientmandir=${D}/usr/share/man \ > --mandir=${D}/usr/share/man \ > ${myconf} || die "./configure failed" > > einfo "Installing: afbackup-${MY_MODE}" > make DESTDIR=${D} install.${MY_MODE} || die > > # fix path in config files > einfo "Fixing paths in ${MY_MODE}.conf" > if [ "x${MY_MODE}" = "xserver" ]; then > sed -i -e "s:${D}::g" ${D}/etc/afbackup/server.conf > fi > if [ "x${MY_MODE}" = "xclient" ]; then > sed -i -e "s:${D}::g" ${D}/etc/afbackup/client.conf > fi > > # if new, install key and set permissions > if [ ! -f /etc/afbackup/afbackup.key ]; then > einfo "Installing backup key..." > insinto /etc/afbackup > doins afbackup.key > einfo "Restricting permissions on keyfile..." > fperms 600 /etc/afbackup/afbackup.key > fi >} > >pkg_postinst() { > ewarn "The key of afbackup server and client have to match." > einfo "Be sure to use the same environment variable or keyfile." >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 33865
:
42173
| 51275