From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/mgorny:master commit in: net-dns/resolvconf-symlink/
Date: Sun, 16 Oct 2011 21:17:11 +0000 (UTC) [thread overview]
Message-ID: <1575cd325630210f06f7ac5a923fec68f6b9ec2e.mgorny@gentoo> (raw)
commit: 1575cd325630210f06f7ac5a923fec68f6b9ec2e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 16 21:17:01 2011 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 21:17:01 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=1575cd32
net-dns/resolvconf-symlink: Moved to gx86.
---
net-dns/resolvconf-symlink/metadata.xml | 11 ----
.../resolvconf-symlink/resolvconf-symlink-0.ebuild | 53 --------------------
2 files changed, 0 insertions(+), 64 deletions(-)
diff --git a/net-dns/resolvconf-symlink/metadata.xml b/net-dns/resolvconf-symlink/metadata.xml
deleted file mode 100644
index 26f81d4..0000000
--- a/net-dns/resolvconf-symlink/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer>
- <email>mgorny@gentoo.org</email>
- <name>Michał Górny</name>
- </maintainer>
- <use>
- <flag name='symlink'>Replace /etc/resolv.conf with a symlink.</flag>
- </use>
-</pkgmetadata>
diff --git a/net-dns/resolvconf-symlink/resolvconf-symlink-0.ebuild b/net-dns/resolvconf-symlink/resolvconf-symlink-0.ebuild
deleted file mode 100644
index bed0009..0000000
--- a/net-dns/resolvconf-symlink/resolvconf-symlink-0.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-DESCRIPTION="Make /etc/resolv.conf a symlink to runtime-writable location"
-HOMEPAGE="http://www.gentoo.org"
-SRC_URI=""
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+symlink"
-
-S=${WORKDIR}
-
-pkg_preinst() {
- if use symlink; then
- if [[ -f "${ROOT}"etc/resolv.conf && ! -L "${ROOT}"etc/resolv.conf ]]
- then # migrate existing resolv.conf
- if [[ "$(head -n 1 "${ROOT}"etc/resolv.conf)" \
- != "# Generated by "* ]]; then
-
- eerror "${ROOT}etc/resolv.conf seems not to be autogenerated."
- eerror "Aborting build to avoid removing user data. If that file is supposed"
- eerror "to be autogenerated, please remove it manually. Otherwise, please"
- eerror "set USE=-symlink to avoid installing resolv.conf symlink."
-
- die "${ROOT}etc/resolv.conf not autogenerated"
- else
- ebegin "Moving ${ROOT}etc/resolv.conf to ${ROOT}var/run/"
- mv "${ROOT}"etc/resolv.conf "${ROOT}"var/run/
- eend ${?} || die
- fi
- fi
- fi
-}
-
-src_install() {
- # XXX: /run should be more correct, when it's supported by baselayout
-
- use symlink && dosym /var/run/resolv.conf /etc/resolv.conf
-}
-
-pkg_postrm() {
- # Don't leave the user with no resolv.conf
- if [[ ! -e "${ROOT}"etc/resolv.conf && -f "${ROOT}"var/run/resolv.conf ]]; then
- ebegin "Moving ${ROOT}var/run/resolv.conf to ${ROOT}etc/"
- mv "${ROOT}"var/run/resolv.conf "${ROOT}"etc/
- eend ${?} || die
- fi
-}
next reply other threads:[~2011-10-16 21:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-16 21:17 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-08-10 9:57 [gentoo-commits] dev/mgorny:master commit in: net-dns/resolvconf-symlink/ Michał Górny
2011-08-10 9:43 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1575cd325630210f06f7ac5a923fec68f6b9ec2e.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox