From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D3427138CA3 for ; Sun, 12 Apr 2015 21:44:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90A13E0A9F; Sun, 12 Apr 2015 21:44:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3182CE0A9F for ; Sun, 12 Apr 2015 21:44:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45301340817 for ; Sun, 12 Apr 2015 21:44:02 +0000 (UTC) Received: by oystercatcher.gentoo.org (Postfix, from userid 2345) id CABA415C9A; Sun, 12 Apr 2015 21:43:56 +0000 (UTC) From: "Manuel Rueger (mrueg)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, mrueg@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/etckeeper/files: etckeeper-1.18-gentoo.patch etckeeper-1.12-gentoo.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: etckeeper-1.18-gentoo.patch etckeeper-1.12-gentoo.patch X-VCS-Directories: sys-apps/etckeeper/files X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rueger Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20150412214358.CABA415C9A@oystercatcher.gentoo.org> Date: Sun, 12 Apr 2015 21:43:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c1cfdac5-d8d5-4eb5-9ad5-c488bea82d26 X-Archives-Hash: 95cf047ddb9be97d2364078ac261ff39 mrueg 15/04/12 21:43:56 Added: etckeeper-1.18-gentoo.patch Removed: etckeeper-1.12-gentoo.patch Log: Version bump. Remove old. (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key ) Revision Changes Path 1.1 sys-apps/etckeeper/files/etckeeper-1.18-gentoo.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/etckeeper/files/etckeeper-1.18-gentoo.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/etckeeper/files/etckeeper-1.18-gentoo.patch?rev=1.1&content-type=text/plain Index: etckeeper-1.18-gentoo.patch =================================================================== >From 385d0e828d57e4998dd62fa34d5d929768fb894d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Sun, 12 Apr 2015 23:39:30 +0200 Subject: [PATCH] Support Gentoo's package managers. diff --git a/Makefile b/Makefile index c95d51a..4be900e 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,6 @@ install: etckeeper.version mkdir -p $(DESTDIR)$(mandir)/man8 $(INSTALL_DATA) etckeeper.8 $(DESTDIR)$(mandir)/man8/etckeeper.8 mkdir -p $(DESTDIR)$(etcdir)/bash_completion.d - $(INSTALL_DATA) bash_completion $(DESTDIR)$(etcdir)/bash_completion.d/etckeeper ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),apt) mkdir -p $(DESTDIR)$(etcdir)/apt/apt.conf.d $(INSTALL_DATA) apt.conf $(DESTDIR)$(etcdir)/apt/apt.conf.d/05etckeeper @@ -52,7 +51,6 @@ ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),zypper) mkdir -p $(DESTDIR)$(prefix)/lib/zypp/plugins/commit $(INSTALL) zypper-etckeeper.py $(DESTDIR)$(prefix)/lib/zypp/plugins/commit/zypper-etckeeper.py endif - -$(PYTHON) ./etckeeper-bzr/__init__.py install --root=$(DESTDIR) ${PYTHON_INSTALL_OPTS} || echo "** bzr support not installed" echo "** installation successful" clean: etckeeper.spec etckeeper.version diff --git a/etckeeper.conf b/etckeeper.conf index 2aec35e..0a9c88b 100644 --- a/etckeeper.conf +++ b/etckeeper.conf @@ -31,11 +31,21 @@ DARCS_COMMIT_OPTIONS="-a" # The high-level package manager that's being used. # (apt, pacman-g2, yum, dnf, zypper etc) -HIGHLEVEL_PACKAGE_MANAGER=apt +#HIGHLEVEL_PACKAGE_MANAGER=apt + +# Gentoo specific: +# For portage this is emerge +# For paludis this is cave +HIGHLEVEL_PACKAGE_MANAGER=emerge # The low-level package manager that's being used. # (dpkg, rpm, pacman, pacman-g2, etc) -LOWLEVEL_PACKAGE_MANAGER=dpkg +#LOWLEVEL_PACKAGE_MANAGER=dpkg + +# Gentoo specific: +# For portage this is qlist +# For paludis this is cave +LOWLEVEL_PACKAGE_MANAGER=qlist # To push each commit to a remote, put the name of the remote here. # (eg, "origin" for git). Space-separated lists of multiple remotes diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed index 2ac569a..91718d4 100755 --- a/list-installed.d/50list-installed +++ b/list-installed.d/50list-installed @@ -17,5 +17,9 @@ else rpm -qa --qf "%|epoch?{%{epoch}}:{0}|:%{name}-%{version}-%{release}.%{arch}\n" | sort elif [ "$LOWLEVEL_PACKAGE_MANAGER" = pacman ]; then pacman -Q + elif [ "$LOWLEVEL_PACKAGE_MANAGER" = qlist ]; then + qlist -ICv + elif [ "$LOWLEVEL_PACKAGE_MANAGER" = cave ]; then + cave print-packages -r installed fi fi diff --git a/update-ignore.d/01update-ignore b/update-ignore.d/01update-ignore index 098fab8..88243ea 100755 --- a/update-ignore.d/01update-ignore +++ b/update-ignore.d/01update-ignore @@ -99,6 +99,10 @@ writefile () { ignore "*.pacorig" ignore "*.pacsave" nl + elif [ "$LOWLEVEL_PACKAGE_MANAGER" = "qlist" -o "$LOWLEVEL_PACKAGE_MANAGER" = "cave" ]; then + comment "new and old versions of conffiles, stored by emerge" + ignore "._cfg*" + nl fi comment "old versions of files" -- 2.3.5