[28337] trunk/dports/sysutils
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 28 08:25:05 PDT 2007
Revision: 28337
http://trac.macosforge.org/projects/macports/changeset/28337
Author: afb at macports.org
Date: 2007-08-28 08:25:05 -0700 (Tue, 28 Aug 2007)
Log Message:
-----------
new port: various yum utilities/plugins
Added Paths:
-----------
trunk/dports/sysutils/yum-utils/
trunk/dports/sysutils/yum-utils/Portfile
trunk/dports/sysutils/yum-utils/files/
trunk/dports/sysutils/yum-utils/files/patch-prefix.diff
Added: trunk/dports/sysutils/yum-utils/Portfile
===================================================================
--- trunk/dports/sysutils/yum-utils/Portfile (rev 0)
+++ trunk/dports/sysutils/yum-utils/Portfile 2007-08-28 15:25:05 UTC (rev 28337)
@@ -0,0 +1,50 @@
+# $Id$
+
+PortSystem 1.0
+
+name yum-utils
+version 1.1.6
+platforms darwin
+categories sysutils
+maintainers afb at macports.org
+description Utilities based around the yum package manager
+long_description yum-utils is a collection of utilities and examples for the yum package \
+manager. It includes utilities by different authors that make yum easier and \
+more powerful to use.
+
+homepage http://linux.duke.edu/projects/yum/
+master_sites ${homepage}download/${name}/
+checksums md5 e7ad94116fdb343da0153f8fe556afd6
+
+patchfiles patch-prefix.diff
+
+depends_lib port:python24 port:yum
+
+patch {
+ foreach patch $patchfiles {
+ system "cd '${workpath}/${distname}' && \
+ sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${prefix}/bin/python2.4#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
+ }
+}
+
+use_configure no
+build {}
+
+variant "plugins" description "include yum plugins" {
+
+post-destroot {
+ set plugins "changelog fastestmirror protectbase versionlock tsflags downloadonly allowdowngrade skip-broken priorities refresh-updatesd merge-conf security protect-packages"
+ xinstall -d ${destroot}${prefix}/etc/yum/pluginconf.d ${destroot}${prefix}/lib/yum-plugins
+
+ foreach plug $plugins {
+ xinstall -m 644 [glob ${worksrcpath}/plugins/$plug/*.conf] ${destroot}${prefix}/etc/yum/pluginconf.d/
+ xinstall -m 644 [glob ${worksrcpath}/plugins/$plug/*.py] ${destroot}${prefix}/lib/yum-plugins/
+ }
+}
+
+}
+
+livecheck.check regex
+# get the last modified tarball
+livecheck.url ${master_sites}?C=M\;O=D
+livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}
Property changes on: trunk/dports/sysutils/yum-utils/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/sysutils/yum-utils/files/patch-prefix.diff
===================================================================
--- trunk/dports/sysutils/yum-utils/files/patch-prefix.diff (rev 0)
+++ trunk/dports/sysutils/yum-utils/files/patch-prefix.diff 2007-08-28 15:25:05 UTC (rev 28337)
@@ -0,0 +1,130 @@
+--- ./Makefile.orig 2007-07-24 11:57:31.000000000 +0200
++++ ./Makefile 2007-08-28 15:15:43.000000000 +0200
+@@ -12,10 +12,10 @@ clean:
+ rm -f *.tar.gz
+
+ install:
+- mkdir -p $(DESTDIR)/usr/bin/
+- mkdir -p $(DESTDIR)/usr/share/man/man1
++ mkdir -p $(DESTDIR)@@PREFIX@@/bin/
++ mkdir -p $(DESTDIR)@@PREFIX@@/share/man/man1
+ for util in $(UTILS); do \
+- install -m 755 $$util.py $(DESTDIR)/usr/bin/$$util; \
++ install -m 755 $$util.py $(DESTDIR)@@PREFIX@@/bin/$$util; \
+ done
+
+ for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
+--- docs/Makefile.orig 2007-07-24 09:55:07.000000000 +0200
++++ docs/Makefile 2007-08-28 15:19:11.000000000 +0200
+@@ -9,16 +9,16 @@
+ rm -f *.pyc *.pyo *~
+
+ install:
+- mkdir -p $(DESTDIR)/usr/share/man/man1
+- mkdir -p $(DESTDIR)/usr/share/man/man5
+- mkdir -p $(DESTDIR)/usr/share/man/man8
++ mkdir -p $(DESTDIR)@@PREFIX@@/share/man/man1
++ mkdir -p $(DESTDIR)@@PREFIX@@/share/man/man5
++ mkdir -p $(DESTDIR)@@PREFIX@@/share/man/man8
+ for doc in $(DOCS); do \
+- install -m 644 $$doc.1 $(DESTDIR)/usr/share/man/man1/; \
++ install -m 644 $$doc.1 $(DESTDIR)@@PREFIX@@/share/man/man1/; \
+ done
+ for doc in $(DOCS5); do \
+- install -m 644 $$doc.5 $(DESTDIR)/usr/share/man/man5/; \
++ install -m 644 $$doc.5 $(DESTDIR)@@PREFIX@@/share/man/man5/; \
+ done
+ for doc in $(DOCS8); do \
+- install -m 644 $$doc.8 $(DESTDIR)/usr/share/man/man8/; \
++ install -m 644 $$doc.8 $(DESTDIR)@@PREFIX@@/share/man/man8/; \
+ done
+
+\ No newline at end of file
+--- ./debuginfo-install.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./debuginfo-install.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!@@PYTHON@@
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+--- ./package-cleanup.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./package-cleanup.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!@@PYTHON@@
+ #
+ # (C) 2005 Gijs Hollestelle, released under the GPL
+ #
+--- ./repo-graph.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./repo-graph.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!@@PYTHON@@
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+--- ./repo-rss.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./repo-rss.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!@@PYTHON@@
+
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+--- ./repoclosure.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./repoclosure.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -t
++#!@@PYTHON@@ -t
+
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+--- ./repomanage.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./repomanage.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!@@PYTHON@@
+
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+--- ./repoquery.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./repoquery.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -tt
++#!@@PYTHON@@ -tt
+
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+--- ./reposync.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./reposync.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -tt
++#!@@PYTHON@@ -tt
+
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+--- ./repotrack.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./repotrack.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -tt
++#!@@PYTHON@@ -tt
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+--- ./yum-builddep.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./yum-builddep.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -tt
++#!@@PYTHON@@ -tt
+
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+--- ./yumdownloader.py.orig 2007-07-24 09:55:07.000000000 +0200
++++ ./yumdownloader.py 2007-08-28 15:15:13.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!@@PYTHON@@
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070828/8d25cbe9/attachment.html
More information about the macports-changes
mailing list