diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-12-01 16:28:20 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-12-01 16:28:20 +0000 |
commit | 852bd28ff3bcf0f7d37e58b0096ea609cd2b6aed (patch) | |
tree | c3e265d8ee0075a522f3e85aa2f6d3d62cfbdfd5 /osx/macports | |
parent | b789371b61d4334b3016cbad0a70d794e2185b1a (diff) | |
download | bcfg2-852bd28ff3bcf0f7d37e58b0096ea609cd2b6aed.tar.gz bcfg2-852bd28ff3bcf0f7d37e58b0096ea609cd2b6aed.tar.bz2 bcfg2-852bd28ff3bcf0f7d37e58b0096ea609cd2b6aed.zip |
OSX: Add Portfile for macports packaging
This adds the macports packaging from:
http://trac.macports.org/changeset/61067
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5602 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'osx/macports')
-rw-r--r-- | osx/macports/Portfile | 36 | ||||
-rw-r--r-- | osx/macports/files/patch-setup.py.diff | 56 |
2 files changed, 92 insertions, 0 deletions
diff --git a/osx/macports/Portfile b/osx/macports/Portfile new file mode 100644 index 000000000..1efba7694 --- /dev/null +++ b/osx/macports/Portfile @@ -0,0 +1,36 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 +PortGroup python26 1.0 + +name bcfg2 +version 1.0.0 +categories sysutils python +maintainers ices.utexas.edu:solj +description Bcfg2 configuration management system +long_description Bcfg2 helps system administrators deploy complex \ + changes across large numbers of systems in a \ + coherent and transparent fashion. + +homepage http://www.bcfg2.org/ +platforms darwin +master_sites ftp://ftp.mcs.anl.gov/pub/bcfg + +checksums md5 2303fc4cb7b5e49034dd1f71f5ad5847 \ + sha1 592d94b5626200aa513f06b8ecc38a7ea021aa72 \ + rmd160 974b9973e9a4297fcc9c94ee93cd16d4957a0418 + +patchfiles patch-setup.py.diff + +post-destroot { + ln -s ${python.prefix}/bin/bcfg2 ${destroot}${prefix}/bin/bcfg2 + + set pyman ${python.prefix}/share/man/ + set manroot ${destroot}${prefix}/share/man/ + + xinstall -d ${manroot}/man5 + xinstall -d ${manroot}/man1 + ln -s ${pyman}man5/bcfg2.conf.5 ${manroot}/man5/ + ln -s ${pyman}/man1/bcfg2.1 ${manroot}/man1/ +} diff --git a/osx/macports/files/patch-setup.py.diff b/osx/macports/files/patch-setup.py.diff new file mode 100644 index 000000000..d485014a5 --- /dev/null +++ b/osx/macports/files/patch-setup.py.diff @@ -0,0 +1,56 @@ +--- setup.py.orig 2009-11-20 16:07:52.000000000 -0600 ++++ setup.py 2009-11-20 16:29:56.000000000 -0600 +@@ -5,45 +5,19 @@ + + setup(name="Bcfg2", + version="1.0.0", +- description="Bcfg2 Server", ++ description="Bcfg2 Client", + author="Narayan Desai", + author_email="desai@mcs.anl.gov", +- packages=["Bcfg2", +- "Bcfg2.Client", ++ packages=["Bcfg2.Client", + "Bcfg2.Client.Tools", +- 'Bcfg2.Server', +- "Bcfg2.Server.Admin", +- "Bcfg2.Server.Hostbase", +- "Bcfg2.Server.Hostbase.hostbase", +- "Bcfg2.Server.Plugins", +- "Bcfg2.Server.Reports", +- "Bcfg2.Server.Reports.reports", +- "Bcfg2.Server.Reports.reports.templatetags", +- "Bcfg2.Server.Snapshots", + ], ++ py_modules = ["Bcfg2.Options", ++ "Bcfg2.Proxy", ++ "Bcfg2.Logger", ++ ], + package_dir = {'Bcfg2':'src/lib'}, +- package_data = {'Bcfg2.Server.Reports.reports':['fixtures/*.xml']}, +- scripts = glob('src/sbin/*'), +- data_files = [('share/bcfg2/schemas', +- glob('schemas/*.xsd')), +- ('share/bcfg2/xsl-transforms', +- glob('reports/xsl-transforms/*.xsl')), +- ('share/bcfg2/xsl-transforms/xsl-transform-includes', +- glob('reports/xsl-transforms/xsl-transform-includes/*.xsl')), +- ('share/man/man1', glob("man/bcfg2.1")), ++ scripts = glob('src/sbin/bcfg2'), ++ data_files = [('share/man/man1', glob("man/bcfg2.1")), + ('share/man/man5', glob("man/*.5")), +- ('share/man/man8', glob("man/*.8")), +- ('share/bcfg2/Reports/templates', +- glob('src/lib/Server/Reports/reports/templates/*.html')), +- ('share/bcfg2/Reports/templates/displays', +- glob('src/lib/Server/Reports/reports/templates/displays/*')), +- ('share/bcfg2/Reports/templates/clients', +- glob('src/lib/Server/Reports/reports/templates/clients/*')), +- ('share/bcfg2/Reports/templates/config_items', +- glob('src/lib/Server/Reports/reports/templates/config_items/*')), +- ('share/bcfg2/Hostbase/templates', +- glob('src/lib/Server/Hostbase/hostbase/webtemplates/*')), +- ('share/bcfg2/Hostbase/repo', +- glob('src/lib/Server/Hostbase/templates/*')), + ] + ) |