From: <jh...@us...> - 2012-03-19 14:39:06
|
Revision: 309 http://etch.svn.sourceforge.net/etch/?rev=309&view=rev Author: jheiss Date: 2012-03-19 14:38:56 +0000 (Mon, 19 Mar 2012) Log Message: ----------- Update macports template to latest macports standards. Fix a bug in the Rakefile related to client directory structure changes. Modified Paths: -------------- trunk/client/Rakefile trunk/client/packages/macports/Portfile.template Modified: trunk/client/Rakefile =================================================================== --- trunk/client/Rakefile 2012-03-19 11:58:44 UTC (rev 308) +++ trunk/client/Rakefile 2012-03-19 14:38:56 UTC (rev 309) @@ -53,7 +53,7 @@ # Substitute ETCHVER into etch/client.rb # Substitute proper path into CONFIGDIR in etch/client.rb if appropriate File.open(File.join(libdir, 'etch', 'client.rb'), 'w') do |newfile| - IO.foreach(File.join('etch', 'client.rb')) do |line| + IO.foreach(File.join('lib', 'etch', 'client.rb')) do |line| if line =~ /^\s*VERSION/ line.sub!(/=.*/, "= '#{ETCHVER}'") end @@ -390,6 +390,7 @@ md5 = `openssl md5 #{TARBALL}`.chomp.split.last sha1 = `openssl sha1 #{TARBALL}`.chomp.split.last rmd160 = `openssl rmd160 #{TARBALL}`.chomp.split.last + sha256 = `openssl sha256 #{TARBALL}`.chomp.split.last portfile = File.join(Dir.tmpdir, 'Portfile') rm_f(portfile) @@ -399,6 +400,7 @@ line.sub!('%MD5%', md5) line.sub!('%SHA1%', sha1) line.sub!('%RMD160%', rmd160) + line.sub!('%SHA256%', sha256) newfile.puts(line) end end Modified: trunk/client/packages/macports/Portfile.template =================================================================== --- trunk/client/packages/macports/Portfile.template 2012-03-19 11:58:44 UTC (rev 308) +++ trunk/client/packages/macports/Portfile.template 2012-03-19 14:38:56 UTC (rev 309) @@ -9,6 +9,7 @@ categories sysutils maintainers aput.net:jheiss openmaintainer supported_archs noarch +license MIT description Etch is a system configuration management tool. @@ -24,17 +25,15 @@ homepage http://etch.sourceforge.net/ platforms darwin -master_sites sourceforge +master_sites sourceforge:project/etch/etch/${version} -checksums md5 %MD5% \ - sha1 %SHA1% \ - rmd160 %RMD160% +checksums rmd160 %RMD160% \ + sha256 %SHA256% depends_build port:rb-rake depends_run port:facter worksrcdir ${worksrcdir}/client -supported_archs noarch use_configure no build {} destroot.cmd ${prefix}/bin/rake This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |