[yum-git] Makefile yum-utils.spec

James Antill james at linux.duke.edu
Thu Aug 7 18:44:53 UTC 2008


 Makefile       |    5 +++++
 yum-utils.spec |   15 +++++++++++++++
 2 files changed, 20 insertions(+)

New commits:
commit 51092995c6d647e1d88493a8d1fcd7c69b4e516e
Author: James Antill <james at and.org>
Date:   Thu Aug 7 14:44:24 2008 -0400

    Add yum-NetworkManager-dispatcher pkg, closes bug#437808

diff --git a/Makefile b/Makefile
index 80a5673..c52625a 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
 WEBHOST = login.dulug.duke.edu
 WEBPATH = /home/groups/yum/web/download/yum-utils/
 
+NMPROG=yum-NetworkManager-dispatcher
+NMPATH=/etc/NetworkManager/dispatcher.d
+
 clean:
 	rm -f *.pyc *.pyo *~
 	rm -f test/*~
@@ -24,6 +27,8 @@ install:
 	done
 
 	for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
+	mkdir -p $(NMPATH)
+	install -m 755 $(NMPROG) $(NMPATH)
 
 archive:
 	@rm -rf ${PKGNAME}-${VERSION}.tar.gz
diff --git a/yum-utils.spec b/yum-utils.spec
index 0219a6f..6ebde54 100644
--- a/yum-utils.spec
+++ b/yum-utils.spec
@@ -261,6 +261,17 @@ Requires: yum >= 3.2.8
 This plugin adds the commands keys, keys-info, keys-data and keys-remove. They
 allow you to query and remove signing keys.
 
+%package -n yum-NetworkManager-dispatcher
+Summary: Yum plugin to deal with changing networks with NetworkManager
+Group: System Environment/Base
+Requires: yum >= 3.2.17
+
+%description -n yum-NetworkManager-dispatcher
+This plugin forces yum to check it's cache if/when a new network connection
+happens in NetworkManager. Note that currently there is no checking of
+previous data, so if your WiFi keeps going up and down (or you suspend/resume
+a lot) yum will recheck it's cached data a lot.
+
 %prep
 %setup -q
 
@@ -481,6 +492,10 @@ fi
 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/keys.conf
 /usr/lib/yum-plugins/keys.*
 
+%files -n yum-NetworkManager-dispatcher
+%defattr(-, root, root)
+/etc/NetworkManager/dispatcher.d/*
+
 %changelog
 * Thu Aug 7 2008 Tim Lauridsen <timlau at fedoraproject.org>
 - mark as 1.1.15



More information about the Yum-cvs-commits mailing list