diff options
author | Thilo Bangert <bangert@gentoo.org> | 2007-05-26 19:31:06 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2007-05-26 19:31:06 +0000 |
commit | b766e784e6e08e8bd038c493acbc37d40602c4d0 (patch) | |
tree | f1d25efcbd2ee9b1f9c848a4228962d76b911ac6 /app-admin | |
parent | add enhost: currently testing (diff) | |
download | bangert-b766e784e6e08e8bd038c493acbc37d40602c4d0.tar.gz bangert-b766e784e6e08e8bd038c493acbc37d40602c4d0.tar.bz2 bangert-b766e784e6e08e8bd038c493acbc37d40602c4d0.zip |
add patch to make it work
svn path=/ebuilds/; revision=32
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/enhost/ChangeLog | 3 | ||||
-rw-r--r-- | app-admin/enhost/Manifest | 20 | ||||
-rw-r--r-- | app-admin/enhost/enhost-1.0.4.ebuild | 8 | ||||
-rw-r--r-- | app-admin/enhost/files/enhost-1.0.4.patch | 34 |
4 files changed, 57 insertions, 8 deletions
diff --git a/app-admin/enhost/ChangeLog b/app-admin/enhost/ChangeLog index 6871573..35aaaf7 100644 --- a/app-admin/enhost/ChangeLog +++ b/app-admin/enhost/ChangeLog @@ -3,6 +3,9 @@ # $Header: $ 26 May 2007; Thilo Bangert <bangert@gentoo.org> ChangeLog: + add patch to make it work + + 26 May 2007; Thilo Bangert <bangert@gentoo.org> ChangeLog: initial import: A simple tool for collecting facts from dev-ruby/facter and storing them in LDAP. diff --git a/app-admin/enhost/Manifest b/app-admin/enhost/Manifest index 8c02683..6c33f21 100644 --- a/app-admin/enhost/Manifest +++ b/app-admin/enhost/Manifest @@ -1,16 +1,20 @@ +AUX enhost-1.0.4.patch 1128 RMD160 3ba02ab587706ce91ac7e6d0420f4b15f82ee7a3 SHA1 05175b2aa32a940b35aa7dc6432099df71d9b55e SHA256 fd843f3f32eeae949be67e2ce8c7a6c99c063173fefe29e3a718122498ea22d4 +MD5 614bdbd999773579cad466e878696a8d files/enhost-1.0.4.patch 1128 +RMD160 3ba02ab587706ce91ac7e6d0420f4b15f82ee7a3 files/enhost-1.0.4.patch 1128 +SHA256 fd843f3f32eeae949be67e2ce8c7a6c99c063173fefe29e3a718122498ea22d4 files/enhost-1.0.4.patch 1128 AUX enhost.schema 2097 RMD160 b707b35cda1d5c5645f88277f6bad40ffb978f34 SHA1 4dc3781cae81a2dc2b7fd0e5e2a8879792e5871e SHA256 a3bf189bbda63ec59c857a1f45149260d9903a0f3e0c31ac501141e400195f2c MD5 ccdcf5df1b944b513a4975e5ae3ecf66 files/enhost.schema 2097 RMD160 b707b35cda1d5c5645f88277f6bad40ffb978f34 files/enhost.schema 2097 SHA256 a3bf189bbda63ec59c857a1f45149260d9903a0f3e0c31ac501141e400195f2c files/enhost.schema 2097 DIST enhost-1.0.4.tgz 14473 RMD160 68a63a563f727da2f8960062f891f85502972f89 SHA1 caae76b0e6b3d9da7bf3186502d4ed30a9ecbe64 SHA256 0597adce169b13aa1c81ff97041abd64f7e57e30fd091778bec7f8e1f0ae26f3 -EBUILD enhost-1.0.4.ebuild 595 RMD160 66509fdb20f1c1558a62ba169c75d7038f017806 SHA1 8dac7c57fc59d14d02533cc426a93dbeb0a2cd59 SHA256 598a1b888dfa2b6f836135346d7d4bfce47b53407274c117d73b114e121148a6 -MD5 3ce49f04a47be10ca5247bfb71f58695 enhost-1.0.4.ebuild 595 -RMD160 66509fdb20f1c1558a62ba169c75d7038f017806 enhost-1.0.4.ebuild 595 -SHA256 598a1b888dfa2b6f836135346d7d4bfce47b53407274c117d73b114e121148a6 enhost-1.0.4.ebuild 595 -MISC ChangeLog 281 RMD160 8cc59f73492d108b04a682c6cdba3b6a3f9b5b64 SHA1 5c14dfc544ebd0467f6ca207ef15c33e108c862e SHA256 27e0b38795d6f0460874fd52db92e0a97f8e95afb96d8c88fb847be0985e6c0e -MD5 ed18faedac93b80e923fa9f52bdd0995 ChangeLog 281 -RMD160 8cc59f73492d108b04a682c6cdba3b6a3f9b5b64 ChangeLog 281 -SHA256 27e0b38795d6f0460874fd52db92e0a97f8e95afb96d8c88fb847be0985e6c0e ChangeLog 281 +EBUILD enhost-1.0.4.ebuild 680 RMD160 a01889dc5cf171745ff73fb2ced11996e46efdb5 SHA1 2b340c236f5f9d7cbfe44ade51148c5f5b751dff SHA256 91e99c1ff5c2100f77ceb4dc26af84e9b7ce03057cef25e23c7ea8fa22e85bf1 +MD5 71c07773427d19b515371b8b9f7a49c0 enhost-1.0.4.ebuild 680 +RMD160 a01889dc5cf171745ff73fb2ced11996e46efdb5 enhost-1.0.4.ebuild 680 +SHA256 91e99c1ff5c2100f77ceb4dc26af84e9b7ce03057cef25e23c7ea8fa22e85bf1 enhost-1.0.4.ebuild 680 +MISC ChangeLog 371 RMD160 23963d6daeb941c8c78227390ddbe06caf3fa4c9 SHA1 b4a415e703fad6531c74ba59d84576645213dc0c SHA256 93112aff44fe8f3f89beedb7b3be5e000138e38549e7e6dbac5163ad829071a5 +MD5 82919ee5e4fb9dff54f5a49ab00359cc ChangeLog 371 +RMD160 23963d6daeb941c8c78227390ddbe06caf3fa4c9 ChangeLog 371 +SHA256 93112aff44fe8f3f89beedb7b3be5e000138e38549e7e6dbac5163ad829071a5 ChangeLog 371 MD5 a42687b0f911c7f0f7231c723caaaf98 files/digest-enhost-1.0.4 226 RMD160 5d957aea3636449ec5ae584322eee8769dc08f32 files/digest-enhost-1.0.4 226 SHA256 4b2c90acdba45aad0a94dc29ba474d16bf572b78481f472c1265e13edc179e07 files/digest-enhost-1.0.4 226 diff --git a/app-admin/enhost/enhost-1.0.4.ebuild b/app-admin/enhost/enhost-1.0.4.ebuild index 3780540..ae2faaa 100644 --- a/app-admin/enhost/enhost-1.0.4.ebuild +++ b/app-admin/enhost/enhost-1.0.4.ebuild @@ -15,6 +15,14 @@ IUSE="" RDEPEND="dev-ruby/facter dev-ruby/ruby-ldap" +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/enhost-1.0.4.patch" +} + + src_install() { dobin bin/enhost insinto /etc diff --git a/app-admin/enhost/files/enhost-1.0.4.patch b/app-admin/enhost/files/enhost-1.0.4.patch new file mode 100644 index 0000000..1f75167 --- /dev/null +++ b/app-admin/enhost/files/enhost-1.0.4.patch @@ -0,0 +1,34 @@ +diff -ru enhost-1.0.4.orig/bin/enhost enhost-1.0.4/bin/enhost +--- enhost-1.0.4.orig/bin/enhost 2007-05-26 21:23:57.000000000 +0200 ++++ enhost-1.0.4/bin/enhost 2007-05-26 21:27:03.000000000 +0200 +@@ -170,6 +170,7 @@ + end + + @server ||= "ldap" ++ @hash[@rdn] = @hash["hostname"] + + unless @hash.include?(@rdn) + raise ArgumentError, "No value for #{@rdn}" +@@ -250,6 +251,12 @@ + if value.nil? or value == "" + raise ArgumentError, "#{var} is empty" + end ++ if var == "ipaddress" ++ puts "adding ipaddress" ++ mod = LDAP::Mod.new(LDAP::LDAP_MOD_ADD, "iphostnumber", [value]) ++ mods[var] = mod ++ next ++ end + unless ldapattrs.include?(var) + next + end +@@ -281,8 +288,7 @@ + @hash = {} + begin + Facter.each { |name, value| +- fact = Facter[name] +- @hash[fact.ldapname.downcase] = value ++ @hash[name] = value + } + rescue => details + $stderr.puts details |