# $Id: Portfile 31861 2007-12-10 14:09:31Z afb@macports.org $ PortSystem 1.0 name yum-utils version 1.1.9 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 4325e5aec2ae73e099d4ebe04238598c 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}