source: trunk/dports/sysutils/yum-utils/Portfile @ 28337

Last change on this file since 28337 was 28337, checked in by afb@…, 13 years ago

new port: various yum utilities/plugins

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 28337 2007-08-28 15:25:05Z afb@macports.org $
2
3PortSystem 1.0
4
5name            yum-utils
6version         1.1.6
7platforms       darwin
8categories      sysutils
9maintainers     afb@macports.org
10description     Utilities based around the yum package manager
11long_description        yum-utils is a collection of utilities and examples for the yum package \
12manager. It includes utilities by different authors that make yum easier and \
13more powerful to use.
14
15homepage        http://linux.duke.edu/projects/yum/
16master_sites    ${homepage}download/${name}/
17checksums       md5 e7ad94116fdb343da0153f8fe556afd6
18
19patchfiles      patch-prefix.diff
20
21depends_lib     port:python24 port:yum
22
23patch {
24                foreach patch $patchfiles {
25                        system "cd '${workpath}/${distname}' && \
26                        sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${prefix}/bin/python2.4#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
27                }
28}
29
30use_configure   no
31build   {}
32
33variant "plugins" description "include yum plugins" {
34
35post-destroot {
36        set plugins "changelog fastestmirror protectbase versionlock tsflags downloadonly allowdowngrade skip-broken priorities refresh-updatesd merge-conf security protect-packages"
37        xinstall -d ${destroot}${prefix}/etc/yum/pluginconf.d ${destroot}${prefix}/lib/yum-plugins
38
39        foreach plug $plugins {
40                xinstall -m 644 [glob ${worksrcpath}/plugins/$plug/*.conf] ${destroot}${prefix}/etc/yum/pluginconf.d/
41                xinstall -m 644 [glob ${worksrcpath}/plugins/$plug/*.py] ${destroot}${prefix}/lib/yum-plugins/
42        }
43}
44
45}
46
47livecheck.check regex
48# get the last modified tarball
49livecheck.url   ${master_sites}?C=M\;O=D
50livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.