Changeset 28336 for trunk/dports
- Timestamp:
- Aug 28, 2007, 3:24:06 PM (17 years ago)
- Location:
- trunk/dports/sysutils/yum
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/sysutils/yum/Portfile
r27583 r28336 4 4 5 5 name yum 6 version 3.2. 26 version 3.2.3 7 7 platforms darwin 8 8 categories sysutils archivers … … 17 17 homepage http://linux.duke.edu/projects/yum/ 18 18 master_sites ${homepage}download/3.2/ 19 checksums md5 c6a9e8cc846fe9d080d61bd1b2146cfc19 checksums md5 89cf296107d580655aaf83fb7206edfc 20 20 21 21 patchfiles patch-prefix.diff patch-translate.py … … 53 53 ${destroot}${prefix}/var/run 54 54 } 55 56 livecheck.check regex 57 # get the last modified tarball 58 livecheck.url ${master_sites}?C=M\;O=D 59 livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix} -
trunk/dports/sysutils/yum/files/patch-prefix.diff
r26872 r28336 16 16 import yummain 17 17 yummain.main(sys.argv[1:]) 18 --- bin/yum-updatesd.py.orig 2007-07-25 17:05:44.000000000 +0200 19 +++ bin/yum-updatesd.py 2007-08-28 17:16:06.000000000 +0200 20 @@ -1,4 +1,4 @@ 21 -#!/usr/bin/python 22 +#!@@PYTHON@@ 23 import sys, os 24 import optparse 25 26 @@ -16,7 +16,7 @@ 27 os.dup2(fd, 2) 28 os.close(fd) 29 30 -sys.path.insert(0, '/usr/share/yum-cli') 31 +sys.path.insert(0, '@@PREFIX@@/share/yum-cli') 32 try: 33 import yumupd 34 yumupd.main(options) 18 35 --- ./callback.py.orig 2007-02-03 20:49:32.000000000 +0100 19 36 +++ ./callback.py 2007-06-19 18:17:13.000000000 +0200 … … 25 42 # the Free Software Foundation; either version 2 of the License, or 26 43 yumupd.main(options) 27 --- cli.py.orig 2007-06-05 21:53:46.000000000 +020028 +++ cli.py 2007-06-29 12:57:52.000000000 +020029 @@ -1,4 +1,4 @@ 30 -#!/usr/bin/python -t 31 +#!@@PYTHON@@ -t 32 # This program is free software; you can redistribute it and/or modify 33 # it under the terms of the GNU General Public License as published by 34 # the Free Software Foundation; either version 2 of the License, or 35 @@ -1 171,10 +1171,10 @@44 --- cli.py.orig 2007-08-15 17:48:03.000000000 +0200 45 +++ cli.py 2007-08-28 17:08:57.000000000 +0200 46 @@ -1,4 +1,4 @@ 47 -#!/usr/bin/python -t 48 +#!@@PYTHON@@ -t 49 # This program is free software; you can redistribute it and/or modify 50 # it under the terms of the GNU General Public License as published by 51 # the Free Software Foundation; either version 2 of the License, or 52 @@ -1207,10 +1207,10 @@ 36 53 if opts.installroot: 37 54 if os.access(opts.installroot+'/'+opts.conffile, os.R_OK): … … 48 65 else: 49 66 root = '/' 50 @@ -1 195,7 +1195,7 @@67 @@ -1231,7 +1231,7 @@ 51 68 help="be tolerant of errors") 52 69 self.add_option("-C", dest="cacheonly", action="store_true", … … 126 143 --- ./i18n.py.orig 2004-01-28 08:31:02.000000000 +0100 127 144 +++ ./i18n.py 2007-06-20 16:27:22.000000000 +0200 145 @@ -1,4 +1,4 @@ 146 -#!/usr/bin/env python 147 +#!/@@PYTHON@@ 148 """i18n abstraction 149 150 License: GPL 128 151 @@ -17,7 +17,7 @@ 129 152 t = gettext.translation('yum') … … 135 158 _ = gettext.gettext 136 159 137 --- ./Makefile.orig 2007-02-16 03:01:51.000000000 +0100138 +++ ./Makefile 2007-06-20 16:25:49.000000000 +0200139 @@ -17,1 8 +17,18@@160 --- Makefile.orig 2007-08-22 06:10:48.000000000 +0200 161 +++ Makefile 2007-08-28 16:58:56.000000000 +0200 162 @@ -17,19 +17,19 @@ 140 163 for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] || exit 1 ; done 141 164 … … 160 183 161 184 - mkdir -p $(DESTDIR)/var/cache/yum 185 - mkdir -p $(DESTDIR)/var/lib/yum 162 186 + mkdir -p $(DESTDIR)@@PREFIX@@/var/cache/yum 187 + mkdir -p $(DESTDIR)@@PREFIX@@/var/lib/yum 163 188 164 189 for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done … … 341 366 # it under the terms of the GNU General Public License as published by 342 367 # the Free Software Foundation; either version 2 of the License, or 343 --- ./yum/config.py.orig 2007-04-26 16:12:30.000000000 +0200344 +++ ./yum/config.py 2007-06-20 16:39:03.000000000 +0200368 --- yum/config.py.orig 2007-08-17 07:46:51.000000000 +0200 369 +++ yum/config.py 2007-08-28 17:01:05.000000000 +0200 345 370 @@ -1,4 +1,4 @@ 346 371 -#!/usr/bin/python -t … … 351 376 @@ -461,8 +461,8 @@ 352 377 installroot = Option('/') 353 378 config_file_path = Option('/etc/yum/yum.conf') 354 379 plugins = BoolOption(False) 355 380 - pluginpath = ListOption(['/usr/share/yum-plugins', '/usr/lib/yum-plugins']) … … 360 385 class YumConf(StartupConf): 361 386 ''' 362 @@ -473,1 0 +473,10@@387 @@ -473,11 +473,11 @@ 363 388 retries = IntOption(10) 364 389 recent = IntOption(7) 365 390 366 391 - cachedir = Option('/var/cache/yum') 392 - persistdir = Option('/var/lib/yum') 367 393 + cachedir = Option('@@PREFIX@@/var/cache/yum') 394 + persistdir = Option('@@PREFIX@@/var/lib/yum') 368 395 keepcache = BoolOption(True) 369 396 - logfile = Option('/var/log/yum.log') … … 385 412 #transaction set states 386 413 TS_UPDATE = 10 387 --- ./yum/depsolve.py.orig 2007-04-25 20:55:36.000000000 +0200388 +++ ./yum/depsolve.py 2007-06-20 16:47:02.000000000 +0200389 @@ -1,4 +1,4 @@ 390 -#!/usr/bin/python -t 391 +#!@@PYTHON@@ -t 392 # This program is free software; you can redistribute it and/or modify 393 # it under the terms of the GNU General Public License as published by 394 # the Free Software Foundation; either version 2 of the License, or 395 @@ -1 19,7 +119,7 @@414 --- yum/depsolve.py.orig 2007-08-21 19:30:05.000000000 +0200 415 +++ yum/depsolve.py 2007-08-28 17:03:37.000000000 +0200 416 @@ -1,4 +1,4 @@ 417 -#!/usr/bin/python -t 418 +#!@@PYTHON@@ -t 419 # This program is free software; you can redistribute it and/or modify 420 # it under the terms of the GNU General Public License as published by 421 # the Free Software Foundation; either version 2 of the License, or 422 @@ -130,7 +130,7 @@ 396 423 # filelists.xml for all repos to make the searchProvides more complete. 397 424 if name[0] == '/': … … 457 484 # it under the terms of the GNU General Public License as published by 458 485 # the Free Software Foundation; either version 2 of the License, or 486 --- ./yum/rpmsack.py.orig 2007-04-27 15:16:12.000000000 +0200 487 +++ ./yum/rpmsack.py 2007-06-19 18:17:13.000000000 +0200 488 @@ -1,4 +1,4 @@ 489 -#!/usr/bin/python -tt 490 +#!@@PYTHON@@ -tt 491 # This program is free software; you can redistribute it and/or modify 492 # it under the terms of the GNU General Public License as published by 493 # the Free Software Foundation; either version 2 of the License, or 494 --- yum/rpmtrans.py.orig 2007-08-15 19:27:19.000000000 +0200 495 +++ yum/rpmtrans.py 2007-08-28 17:12:01.000000000 +0200 496 @@ -1,4 +1,4 @@ 497 -#!/usr/bin/python -t 498 +#!@@PYTHON@@ -t 499 # This program is free software; you can redistribute it and/or modify 500 # it under the terms of the GNU General Public License as published by 501 # the Free Software Foundation; either version 2 of the License, or 459 502 --- ./yum/repos.py.orig 2007-04-25 20:55:36.000000000 +0200 460 503 +++ ./yum/repos.py 2007-06-19 18:17:13.000000000 +0200 … … 465 508 # it under the terms of the GNU General Public License as published by 466 509 # the Free Software Foundation; either version 2 of the License, or 467 --- ./yum/rpmsack.py.orig 2007-04-27 15:16:12.000000000 +0200468 +++ ./yum/rpmsack.py 2007-06-19 18:17:13.000000000 +0200469 @@ -1,4 +1,4 @@470 -#!/usr/bin/python -tt471 +#!@@PYTHON@@ -tt472 # This program is free software; you can redistribute it and/or modify473 # it under the terms of the GNU General Public License as published by474 # the Free Software Foundation; either version 2 of the License, or475 --- ./yum/sqlitecache.py.orig 2007-04-04 01:03:50.000000000 +0200476 +++ ./yum/sqlitecache.py 2007-06-19 18:17:13.000000000 +0200477 @@ -1,4 +1,4 @@478 -#!/usr/bin/python -tt479 +#!@@PYTHON@@ -tt480 481 # This program is free software; you can redistribute it and/or modify482 # it under the terms of the GNU General Public License as published by483 510 --- ./yum/sqlitesack.py.orig 2007-04-25 20:55:36.000000000 +0200 484 511 +++ ./yum/sqlitesack.py 2007-06-19 18:17:13.000000000 +0200 … … 497 524 # utility functions to handle differences in pysqlite versions 498 525 # These are from Wichert Akkerman <wichert@deephackmode.org>'s python-dhm 499 --- ./yum/storagefactory.py.orig 2006-12-02 05:20:03.000000000 +0100500 +++ ./yum/storagefactory.py 2007-06-19 18:17:13.000000000 +0200501 @@ -1,4 +1,4 @@502 -#!/usr/bin/python -tt503 +#!@@PYTHON@@ -tt504 # This program is free software; you can redistribute it and/or modify505 # it under the terms of the GNU General Public License as published by506 # the Free Software Foundation; either version 2 of the License, or507 526 --- ./yum/update_md.py.orig 2007-05-15 14:18:08.000000000 +0200 508 527 +++ ./yum/update_md.py 2007-06-19 18:17:13.000000000 +0200
Note: See TracChangeset
for help on using the changeset viewer.