Skip to content
Permalink
Browse files

new port: various yum utilities/plugins

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@28337 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Anders F. Björklund
Anders F. Björklund committed Aug 28, 2007
1 parent af67831 commit d00a1dd4a185fa2dcf3b0b6a51484e3ff9243aae
Showing with 180 additions and 0 deletions.
  1. +50 −0 sysutils/yum-utils/Portfile
  2. +130 −0 sysutils/yum-utils/files/patch-prefix.diff
@@ -0,0 +1,50 @@
# $Id$

PortSystem 1.0

name yum-utils
version 1.1.6
platforms darwin
categories sysutils
maintainers afb@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}
@@ -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

0 comments on commit d00a1dd

Please sign in to comment.
You can’t perform that action at this time.