# $Id: Portfile 30305 2007-10-24 08:07:42Z afb@macports.org $ PortSystem 1.0 name yum version 3.2.7 platforms darwin categories sysutils archivers maintainers n3npq@mac.com afb@macports.org description Automatic updater and package installer/remover for RPM long_description Yum is an automatic updater and package installer/remover for \ rpm systems. It automatically computes dependencies and figures \ out what things should occur to install packages. It makes it \ easier to maintain groups of machines without having to manually \ update each one using rpm. homepage http://linux.duke.edu/projects/yum/ master_sites ${homepage}download/3.2/ checksums md5 6a318b08019bd40e1c135921eee7ea80 \ sha1 a9944f5117454cb78a467bb7f319d71739d9f3b7 \ rmd160 bc59ec2daaa2063a641acc2968b5bb1dde7c60f1 patchfiles patch-prefix.diff patch-translate.py patch-sqlutils.py depends_lib lib:librpm:rpm port:python24 port:py-celementtree port:py-urlgrabber port:py-libxml2 port:py-yum-metadata-parser port:py-iniparse 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" } } post-patch { # problem with case-insensitive filesystem: file delete ${workpath}/${distname}/INSTALL } use_configure no build.args PYTHON="${prefix}/bin/python2.4" destroot.args PYSYSDIR="${prefix}" post-destroot { xinstall -d -m 755 ${destroot}${prefix}/etc/yum/repos.d xinstall -d -m 755 ${destroot}${prefix}/var/cache/yum/release/headers xinstall -d -m 755 ${destroot}${prefix}/var/cache/yum/release/packages copy -force ${filespath}/yum.conf ${destroot}${prefix}/etc/yum/yum.conf reinplace "s|@@PREFIX@@|$prefix|g" ${destroot}${prefix}/etc/yum/yum.conf reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/yum/yum.conf destroot.keepdirs ${destroot}${prefix}/etc/yum/repos.d \ ${destroot}${prefix}/var/cache/yum/release/headers \ ${destroot}${prefix}/var/cache/yum/release/packages \ ${destroot}${prefix}/var/log \ ${destroot}${prefix}/var/run } test.run yes test.cmd ${prefix}/bin/python2.4 test.target test/alltests.py livecheck.check regex # get the last modified tarball livecheck.url ${master_sites}?C=M\;O=D livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}