Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 138180 Details for
Bug 201853
[EBUILD] net-dns/openresolv-1.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-dns/openresolv-1.0.ebuild
openresolv-1.0.ebuild (text/plain), 1.92 KB, created by
Roy Marples (RETIRED)
on 2007-12-10 13:58:48 UTC
(
hide
)
Description:
net-dns/openresolv-1.0.ebuild
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-12-10 13:58:48 UTC
Size:
1.92 KB
patch
obsolete
>inherit eutils > >DESCRIPTION="A framework for managing DNS information" >HOMEPAGE="http://roy.marples.name/node/343" >SRC_URI="http://roy.marples.name/${PN}/${P}.tar.bz2" > >LICENSE="BSD-2" >SLOT="0" >KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" >IUSE="" > >DEPEND="!net-dns/resolvconf-gentoo" >RDEPEND="" > >src_install() { > make DESTDIR="${D}" install || die "Failed to install" >} > >pkg_postinst() { > if [ ! -"L ${ROOT}/etc/resolv.conf" ] \ > || [ "$(readlink "${ROOT}/etc/resolv.conf")" != \ > "resolvconf/run/resolv.conf" ] ; then > ewarn "resolvconf requires ${ROOT}etc/resolv.conf to be a symbolic" > ewarn "to resolvconf/run/resolv.conf" > ewarn "To set this up automatically type" > ewarn " emerge --config =${PF}" > fi >} > >pkg_config() { > cd "${ROOT}/etc" > if [ -L resolv.conf -a "$(readlink resolv.conf)" = \ > "resolvconf/run/resolv.conf" ] ; then > einfo "${ROOT}etc/resolv.conf is already configured for ${PN}" > else > if [ -e resolv.conf ] ; then > einfo "Your existing resolv.conf is will be mapped to an" > einfo "interface called \"dummy\" in resolvconf. This will" > einfo "disappear when you reboot." > cp resolv.conf resolvconf/run/resolv.conf > [ ! -d resolvconf/run/interfaces ] \ > && mkdir resolvconf/run/interfaces > cp resolv.conf resolvconf/run/interfaces/dummy > echo "dummy" > resolvconf/run/add_order > fi > rm -f resolv.conf > ln -snf resolvconf/run/resolv.conf . > einfo "${ROOT}etc/resolv.conf is now correctly configured for ${PN}" > fi >} > >pkg_postrm() { > # If we are totally removed but still configured, then replace > # /etc/resolv.conf with a real file > cd "${ROOT}"/etc > [ -L resolv.conf ] || return 0 > if [ -e resolv.conf ]; then > [ "$(readlink resolv.conf)" = "resolvconf/run/resolv.conf" ] || return 0 > rm resolv.conf > cp resolvconf/run/resolv.conf . > elif [ -e /var/run/resolvconf/resolv.conf ]; then > rm resolv.conf > cp /var/run/resolvconf/resolv.conf . > fi >}
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 201853
: 138180