Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42173 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-client-3.3.8.ebuild
afbackup-client-3.3.8.ebuild (text/plain), 2.55 KB, created by
Andreas Kobara
on 2004-10-19 08:57:41 UTC
(
hide
)
Description:
afbackup-client-3.3.8.ebuild
Filename:
MIME Type:
Creator:
Andreas Kobara
Created:
2004-10-19 08:57:41 UTC
Size:
2.55 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 > # Set your authentication key here ! > ewarn "Set your authentication key inside this ebuild, as the key" > ewarn "gets compiled into the software." > einfo "PutYourKeyHere is used as default-key, if unchanged." > sed -i -e 's:k=" ":k="PutYourKeyHere":' ask_for_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 >} > >pkg_postinst() { > eerror "Don't forget to set your autentication key inside this ebuild" > eerror "each time you recompile afbackup." > ewarn "The key of afbackup server and client have to match." > einfo "You can also go with the default-key: PutYourKeyHere" >}
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