# $Id: Portfile 26872 2007-07-10 08:46:52Z afb@macports.org $ PortSystem 1.0 name yum version 3.2.1 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 a828e7a464d361de94e58c9691588f37 patchfiles patch-prefix.diff patch-translate.py depends_lib lib:librpm:rpm port:python24 port:py-celementtree port:py-urlgrabber port:py-libxml2 port:py-yum-metadata-parser 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 }