summaryrefslogtreecommitdiff
path: root/app-admin/hddtemp
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/hddtemp')
-rw-r--r--app-admin/hddtemp/Manifest20
-rw-r--r--app-admin/hddtemp/files/hddgentoo.db253
-rw-r--r--app-admin/hddtemp/files/hddtemp-0.3_beta15-byteswap.patch28
-rw-r--r--app-admin/hddtemp/files/hddtemp-0.3_beta15-dontwake.patch20
-rw-r--r--app-admin/hddtemp/files/hddtemp-0.3_beta15-execinfo.patch21
-rw-r--r--app-admin/hddtemp/files/hddtemp-0.3_beta15-iconv.patch28
-rw-r--r--app-admin/hddtemp/files/hddtemp-0.3_beta15-nls.patch14
-rw-r--r--app-admin/hddtemp/files/hddtemp-0.3_beta15-satacmds.patch26
-rw-r--r--app-admin/hddtemp/files/hddtemp-conf.d12
-rw-r--r--app-admin/hddtemp/files/hddtemp-init22
-rw-r--r--app-admin/hddtemp/files/hddtemp.service11
-rw-r--r--app-admin/hddtemp/files/hddtemp.service-r110
-rw-r--r--app-admin/hddtemp/files/hddtemp.service.conf3
-rw-r--r--app-admin/hddtemp/files/update-hddtemp.db33
-rw-r--r--app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild114
-rw-r--r--app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild96
-rw-r--r--app-admin/hddtemp/metadata.xml10
17 files changed, 721 insertions, 0 deletions
diff --git a/app-admin/hddtemp/Manifest b/app-admin/hddtemp/Manifest
new file mode 100644
index 000000000000..a9f1b3eac175
--- /dev/null
+++ b/app-admin/hddtemp/Manifest
@@ -0,0 +1,20 @@
+AUX hddgentoo.db 18805 SHA256 799487ec3ef2bfa1b2a8adf7316cb2714a8e03101875b72f4d03c2865435ca58 SHA512 b0358f48f6e1389d0c8785b0e65fd2d65833803c2014035ddc5f223405da363556d573d50b21b2b3bdda9c81eecfb9419c3edf0a34e315493a8e5eecf4fd060b WHIRLPOOL 0f97fdfc34ff3ed1716b05c7003d39d2c9336d4a32b84b3ea75b43b8a859a84daa2b5d656a3abde60ccb1d08a21bdc12892ae19c3c0a2f184638a44159e9a502
+AUX hddtemp-0.3_beta15-byteswap.patch 1037 SHA256 85eeaff97c96d2f77a93caa3270ee598f756c4eb0da6753e5ee8602fa1a5bdec SHA512 4d37b31129be7f767a416d4b15e3eaf94af297a7d2f4ed57f900fc48775bbb389ca1259c13dd048d670f32fe53f8d0e06c6f1c02485cb95a08d2a80aac4f76a8 WHIRLPOOL e1ce1bfae1964c97aba189158d2ea6e027a1b74fbd392e395d4ea46d69bc2412a2492d3fa1acff6472085bb4af40c88a2dd54a783db7d35b270c61619f09fb2d
+AUX hddtemp-0.3_beta15-dontwake.patch 515 SHA256 796031779f0105e7eb991e0e69d3261a484349737f09d50a2d8fdd15dbb7f544 SHA512 ff5cfeb9fcd6a17ab3937212a85076fafa9abfde72a1b602ada09b5fb71f89a200e91398e9682a17034f630b90e57559e550c0f1565d12ca642af0c2e10a99e1 WHIRLPOOL f2b6086585263d704ca4afeba00db8b5460b9046de44020959a4f37ca22b732040e24365447bcaf55b3b21eda54752c8b155329c3ccf8db4efe16dae8490e9d5
+AUX hddtemp-0.3_beta15-execinfo.patch 751 SHA256 8f896c478f8f2b1776ff4e16fe1f12f0829d044a14e37df48e098aec80812c5c SHA512 cd320985142df5f07cb8c56613aa4110a63fed34e2e08f95272f3d43b75289d298e9dc61e86a42e0be5f15f9a76007d894d515d4d09c8a9deb41b16aa4ea3bc6 WHIRLPOOL 436c15a16a7a141a3dbd2195e14e00f46296e50091582adbab8d99e673db59b2d59caafe1d4f5f38595a770d058d6bcdffab0830323891a86ea52bf0e23fd91f
+AUX hddtemp-0.3_beta15-iconv.patch 780 SHA256 542f5b064098961b2fae4ab0185731b47d412c7e4cc8d8972694228f9bb1415f SHA512 53f988655d59dff675bb5a103b5688b1d564032350eb915c364e5aabd562d643e6fc9a9eb6bececba886d50b07162fb36d78702e1378f6cdb4a3f67f57209dce WHIRLPOOL 0173f4c5afc4cabb50be1566472997106e3375e0ae61e1ff48676a08a06f199d24d98cd2ac669cd39a330f60e2b44322621dc0efdf4f4c2e9a80fde7e9035fcf
+AUX hddtemp-0.3_beta15-nls.patch 414 SHA256 c81efff92e3cd52257438b834df652cfea8535140fe8b67ebded14fd29c3dd9c SHA512 bbed2015e4a1ff44f0daa5591502d15cb02b9f3e7da8ab490d1ce761db823855c12d2889d9a5abf3924aecb522f9f27167e798ace3147c85ab50983457a480a6 WHIRLPOOL 050113fc1270ee3cd09c48275eba19bc9ea96a4854e4b6075cab03b65fd48bc35895f0d8208baccdb5b9355068a706ce5f4ec8a9dbeceaaba012053652ccd742
+AUX hddtemp-0.3_beta15-satacmds.patch 986 SHA256 f3ae8ebd08d598cf9292d08e5fe07f54f894da7a90f02dcc9c46bb8d37afde56 SHA512 436e4e8370ef5d1946559ed6625d435b01c71019e0d39afb10305814825e8fb4cd98f23bbd860c8a94490285bb54cab2db84a8693255223cf44a7bcf77b60d2f WHIRLPOOL 8e7fefe631e89b79a0ff1344208acc81116134cebe54e61ea991b27a7aecf8b515aa861d6a39c79cfbd02cfe6a5c81384c21b5390617ce477538dba7de1ccabe
+AUX hddtemp-conf.d 304 SHA256 3d9c717ba03c84943f3e38fa14823e5ed6752a3fe79dd80b6fe2a97d9687a498 SHA512 b82d4be9edceac534bdb953b9ae5b49f4eb717fad8de8847bf43678451361438397b98280c291c638f93dc7d3b4dbb9d7cfae9c8263be007f908eaf6473b198d WHIRLPOOL 7be64efe932e9bfa308397dca4ecec96b6af0bcaf15b5be2c476b627338271126e19d1e95afe10df54e57d81ece75a3d8ef24cc8d41ac73c6bd19c4069e68b58
+AUX hddtemp-init 434 SHA256 6cb8b6d2021981103b95780d6bcb804c06a814229049b441b735b455aef3a616 SHA512 cb08834efd0e8f1a69bb07d7eb8ae75997072c0c1c04ac4ef1f10d561a29b56593efe52a30346b2fd88e0a50baa791c2a10655415a1ce97afd50a39effbaed64 WHIRLPOOL 6f723cc67e8bf3ac1168688f6ea020efc51eb630143da73815ae0514539e409b2f930ec43e82096bedfef15a80b98d062a587863040e3ad32083a14c56d68814
+AUX hddtemp.service 283 SHA256 8c7379f3bb88f29cd3a98f57655d336368a0d471edf1df93fb7b9647a67f3f3b SHA512 7a67da016027a96cc3aa18796f6fd499a5ec75de45d33a90cbecd3904a730cd9231337763c1b8c7e322dbeaaf60ec8299dd721ed1d0c68d645f19ca3a0ac8420 WHIRLPOOL 420bc4e87859ecefe531ecf259d7dbecd51ab3ead6ce8a71dbf519855d58ec1466f62554a8e6a09c2dafbf9a78e7c96bf0a1d2d62d72563eda66f8f739ef709d
+AUX hddtemp.service-r1 214 SHA256 029e51a7cd34835f22d9133d1e8755fa69ce494fe15fe4b265beae312e4aa9f2 SHA512 2218864bead8a0cc0f99d5125940f397fc1396d2e3f7afaf276c3bae0d6c2b2d23ebc51d3a93d3a492d055c8dcdaf44c56ed289d0343b9e264de48971d9153fd WHIRLPOOL cd09b8955e4697299c4297610b6bdf9ffe84aec37d39c1038cbdcabfe476776ef41e62e989372fd0c1fbeec6e6defc1531023fa195495644f941f260f60c4cc9
+AUX hddtemp.service.conf 88 SHA256 87954446f095607eb10ec281fa0ab93d782e5c19f843ad80f0fb86148d991786 SHA512 dac10db31111623f20580d36b49f2d9b292df39991a4b2590085c08b7a8dbda3903d5dc268d328a71c0bd8d02e781949ab2abde243ae35da8f79bef21aa3fae3 WHIRLPOOL 91374bdfafdb5959b696e119451d73e727e5f12acac90d1a0a68344b5800379e53fd8fa3e716ac2a5177cf2eb671e102ffdec5feed3fc6ba8bff00a89fccbf42
+AUX update-hddtemp.db 819 SHA256 1943cfe150b37a869df85ec193286f201fee6fe5186b6c55b2d0ddd4e041bbf8 SHA512 7d923d582da2e8012de4ebb4243a4fccd6135cfca7d06f02f50b290c5984af288942f7588da7c8c57b91e362a8febc76f14b489798af14f66e3ec7bec9518ba4 WHIRLPOOL 7c76b8ba439bf0a23211af84ca42629933282edea297b46a45c29dd82aa8682a0ddbc565a87589e42879c490ae1060f743f83f6cbfb031c048366c96f6256589
+DIST hddtemp-0.3-beta15.tar.bz2 256372 SHA256 618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b SHA512 7db5a3dff60c59ce147b996ea4f8b6de1abcd34301bb863507b4d4b44e72fdc031078867a7f37161e67e74f6b426a1d856d3081179c678d2a442815bb0faa94d WHIRLPOOL 2ce6a2336737e8cbb409443b874c6767c753fbe4bb700540f9a545e69cd951d3de5743d5b26bcd3a3f8e007b1364273ec85d15da8a00968895def063aaac7705
+DIST hddtemp-20080531.db.bz2 5627 SHA256 6a12bb68283c3224bef2ab086ae810b3f6b17b38f8203350acb3a73e21a6dfbd SHA512 cd03cc300aece4f7427fde1b58840643c8e41e6c0ce30b418a62bf44b268f249ef3dc4f5f4bcbc9cc0cfe0346c18d4f1da22451c87efc3d46faebcb81a1fe059 WHIRLPOOL 7443366204127c0831ce78a5dfd3506ff82a6c79a7daf75cc79e6bba6aad0357f7092c03e792e2e4ee31c2b47a8d8a15456e7b2c176d3a1c6b4633486f450666
+EBUILD hddtemp-0.3_beta15-r26.ebuild 2973 SHA256 57d1e78ce649c50f2fe014c9d11bd95c87c03f0527409766d724482a0470d4a6 SHA512 1bd1fce9fd028d089c25db6be2eeb1e4426e02be0d790d64d0395c25ae801d893e611a985e966fc381e69266b8c347ebebf266eb2bb64ccefd486016d6bfe4a6 WHIRLPOOL 906ef776bca137da5595a84d7a8a4ee353103ae973e4c535c0b49aa76828fe448b27321c285f78a8c240bcf8808f135d18fc96695b14b834565790c9bb87be65
+EBUILD hddtemp-0.3_beta15-r7.ebuild 2624 SHA256 cd557dc7063f802bb651351472c6d0261f13c2a3a4143ec2b58ac89dab2b6e47 SHA512 e52873a21479241b582ce0648aa8c973298b1adbced6738172733537a267d421f52bf454672f81578ab1293cb79ebd9ba3487c9b7024a66c4be073338bb40d87 WHIRLPOOL 42b3de8e47b070e6dea85e3c6aef39c47060d626c88d1990467072a2c604da3ae793f93a345b522af7dcf0d08e49a878f82356117a340d3991e4923be88b295e
+MISC ChangeLog 5331 SHA256 ea767cc88c66341898067c791be88791b2d52cff8fd8d4661fc05017c1761d17 SHA512 08be1f6d08e7efa2ca08efb59bcd1dac67a99a16167bbbdd9fc2ab9b59588a48f35b07e279185cb2d64c199db84a7771fa8307ea798751c8db89523fc1b4e773 WHIRLPOOL d765f99a13718497146ff2e5089ac75808aa4c90811f4025ae6452c2f2b9aa796525d9a8b491c27766177d725dc23c19c1a79823e9d90a34d0267322f9933b90
+MISC ChangeLog-2015 26095 SHA256 45668315f248a9bdd6a576a2ec293b68f9169b10139f7f385b97589ac8b2a81b SHA512 7668fe61c1ce771844b6c766498c7f3d25cce188a19a1cc7633db63a53019efeaf0f8516b0053a2449da90dded475650f066bbd42a0ddace37280d6ffbadf8f0 WHIRLPOOL 4bc7c471beccee6dc0667a9cb34fad576ddd6aa38ac8b4b19231a74c11ba93ba980c4c3cba05487ca2e1362d757e6c639cdb797213731c46f8485d98c70b41c8
+MISC metadata.xml 260 SHA256 418bd35f3d5ce7127e8162a24616d6f2712148438d6d79274e9ccc192b66bfa6 SHA512 480d8cf7f249c083d64b11e13bd93b42856531860afa935a9265bfcf9491fbd3997a9b9d8e90630daba103402fc9aa08c63ef18091cd6ee68310c0a8f3c38af3 WHIRLPOOL a12a9cfd068b88e7ed588450d1b20399b2e619c9e8fabd28573c10feef297871e199beb80ff125ee05b8a0b4f4b2248bc626a78a18603512f6acd210dcaa37ce
diff --git a/app-admin/hddtemp/files/hddgentoo.db b/app-admin/hddtemp/files/hddgentoo.db
new file mode 100644
index 000000000000..2158f4e24a0b
--- /dev/null
+++ b/app-admin/hddtemp/files/hddgentoo.db
@@ -0,0 +1,253 @@
+#############################################
+############# Misc drives, added by Gentoo
+#############################################
+
+"ST9160821AS" 194 C "Seagate ST9160821AS"
+"ST3400620A" 194 C "Seagate Barracuda 7200.10 ST3400620A"
+"MAXTOR STM3160212A" 194 C "Maxtor STM3160212A"
+"WDC WD2500JS-23MHB0" 194 C "Western Digital 250GB, 8MB cache"
+"WDC WD740ADFD-00NLR1" 194 C "Western Digital SATA Raptor 74GB 16MB"
+"ST3320620AS" 194 C "Seagate ST3320620AS"
+"WDC WD3200AAKS-00SBA0" 194 C "Western Digital WD3200AAKS-00SBA0"
+"ST3120813AS" 194 C "Seagate ST3120813AS"
+"ST3250620AS" 194 C "Seagate ST3250620AS"
+"ST3808110AS" 194 C "Seagate Barracuda 7200.9 SATA2 80GB 8MB"
+"ST3250824AS" 194 C "Seagate Barracuda 7200.9 SATA2 250GB 8MB"
+"ST3250310AS" 194 C "Seagate Barracuda 7200.10 SATA 250GB 8MB"
+"ST3500320AS" 194 C "Seagate Barracuda 7200.11 SATA 500GB 32MB"
+"ST3320613AS" 194 C "Seagate Barracuda 7200.11 SATA 320GB 16MB"
+"ST3500320AS" 194 C "Seagate Barracuda 7200.11 SATA 500GB 32MB"
+"ST3500620AS" 194 C "Seagate Barracuda 7200.11 SATA 500GB 16MB"
+"ST3640323AS" 194 C "Seagate Barracuda 7200.11 SATA 64GB 32MB"
+"ST3750330AS" 194 C "Seagate Barracuda 7200.11 SATA 750GB 32MB"
+"ST3750630AS" 194 C "Seagate Barracuda 7200.11 SATA 750GB 16MB"
+"ST31000340AS" 194 C "Seagate Barracuda 7200.11 SATA 1000GB 32MB"
+"SAMSUNG HD403LJ" 194 C "Samsung HD403LJ"
+"SAMSUNG HD250HJ" 194 C "Samsung SpinPoint SpinPoint S250"
+"ST3320620NS" 194 C "Seagate 320GB 7200rpm 16MB SATAII"
+"FUJITSU MHZ2250BJ FFS G2" 194 C "FUJITSU MHZ2250BJ FFS G2"
+"ST3500630A" 194 C "Seagate Barracuda 7200.10 PATA 500GB 16MB"
+"WDC WD740ADFD-00NLR5" 194 C "Western Digital SATA Raptor 74GB 16MB"
+"Hitachi HDP725032GLA360" 194 C "Hitachi Deskstar P7K500 - 320GB 7200RPM 16MB SATA II"
+"Hitachi HDT721050SLA360" 194 C "Hitachi Deskstar 7K1000.B - 500GB 7200RPM 16MB SATA II"
+"Hitachi HDT725025VLAT80" 194 C "Hitachi Deskstar T7K500 - 250GB 7200RPM 8MB PATA"
+"SAMSUNG HD322HJ" 194 C "Samsung HD322HJ 320GB 7200RPM 16MB SATA"
+"WDC WD2500BEVS-75UST0" 194 C "Western Digital WD2500BEVS-75UST0 - 250GB 5400RPM SATA"
+"SAMSUNG HD103UJ" 194 C "Samsung Spinpoint F1 1000GB 32MB"
+"SAMSUNG HD103SJ" 194 C "Samsung Spinpoint F3 1000GB 32MB"
+"ST9250421ASG" 194 C "Seagate Momentus 7200.3 SATA 250GB 16MB"
+"SAMSUNG HD401LJ" 194 C "SAMSUNG SpinPoint T133 series, 400GB"
+"SAMSUNG HD753LJ" 194 C "SAMSUNG F1 series, 750 GB"
+"SAMSUNG HD103SI" 194 C "Samsung Spinpoint F2 EcoGreen 1TB 5400RPM"
+"WDC WD7500AACS-00ZJB0" 194 C "Western Digital Caviar Green 750 GB"
+"WDC WD1002FAEX-00Z3A0" 194 C "Western Digital Caviar Black 1 TB"
+"ST31500341AS" 194 C "Seagate Barracuda 7200.11 1500GB SATA2 7200RPM 32MB"
+"ST31500541AS" 194 C "Seagate Barracuda Green 1500GB SATA2 5900RPM 32MB"
+"SAMSUNG HD502IJ" 194 C "Samsung HD502IJ"
+"Hitachi HTS545050B9SA00" 194 C "Hitachi Travelstar 500GB, SATA150, 2.5, 5400RPM, NCQ, 7MB Cache"
+"ST3500418AS" 194 C "Seagate Barracuda 7200.12 SATA 500GB 16MB"
+"ST9500420AS" 194 C "Seagate Momentus 7200.4 SATA 500GB 16MB"
+"WDC WD5000AAKS-00A7B0" 194 C "Western Digital WD5000AAKS-00A7B0"
+"ST9320325AS" 194 C "Seagate Momentus 5400.6 SATA 320GB 8MB"
+"MAXTOR STM3250310AS" 194 C "Seagate DiamondMax 21 SATA 250GB"
+"FUJITSU MHT2080AT PL" 194 C "Fujitsu MHT2080AT PL IDE/ATA 80GB"
+"FUJITSU MHV2120AH" 194 C "FUJITSU MHV2120AH"
+"WDC WD2001FASS-00W2B0" 194 C "Western Digital Caviar Black WD2001FASS"
+"WDC WD1000BB-00CAA1" 0 C "Western Digital Caviar WD1000BB"
+"WDC WD5000AADS-00S9B0" 194 C "Western Digital Caviar GP 500GB 32MB"
+"WDC WD5000AVDS-63U7B0" 194 C "Western Digital Caviar AV GP 500GB 32MB"
+"WDC WD5000AVJB-63YUA0" 194 C "Western Digital Caviar AV 500GB 8MB"
+"WDC WD20EVDS-63T3B0" 194 C "Western Digital Caviar AV GP 2TB 32MB"
+"WDC WD20EURS-63S48Y0" 194 C "Western Digital Caviar AV GP 2TB 64MB"
+"WDC WD3202ABYS-02B7A0" 194 C "Western Digital Caviar WD3202ABYS"
+"FUJITSU MHY2200BH" 194 C "FUJITSU MHY2200BH"
+"ST3320418AS" 194 C "Seagate Barracuda 7200.12 SATA 320GB"
+"TOSHIBA MK7559GSXP" 194 C "Toshiba MK7559GSXP"
+"TOSHIBA MK1637GSX" 194 C "Toshiba MK1637GSX 160GB SATA2 5200RPM"
+"TOSHIBA MG03ACA300" 194 C "Toshiba MG03ACA300 3TB SATA3 7200RPM"
+"TOSHIBA MD04ACA400" 194 C "Toshiba MD04ACA400 4TB SATA3 7200RPM Enterprise HDD"
+"OCZ-VERTEX2" 194 C "OCZ Vertex 2"
+"SAMSUNG HD204UI" 194 C "Samsung Spinpoint F4EG 2TB SATA2 5400RPM 32MB"
+"SAMSUNG HD154UI" 194 C "Samsung Spinpoint F2EG 1.5TB SATA2 5400RPM 32MB"
+"WDC WD10EADS-00M2B0" 194 C "Western Digital Caviar Green 1TB SATA2 5400RPM 32MB"
+"WDC WD20EARS-00S8B1" 194 C "Western Digital Caviar Green 2TB SATA2 IntelliPower 64MB"
+"WDC WD3200BEKT-00F3T0" 194 C "Western Digital Scorpio Black 320GB SATA2 7200RPM 16MB"
+"WDC WD3200BEKT-75A25T0" 194 C "Western Digital Scorpio Black 320GB SATA2 7200RPM 16MB"
+"WDC WD6400AACS-00M3B0" 194 C "Western Digital Caviar Green 640GB SATA2 7200RPM 16MB"
+"WDC WD5000AADS" 194 C "Western Digital Caviar Green 500GB SATA2 IntelliPower 32MB"
+"WDC WD7500AARX" 194 C "Western Digital Caviar Green 750GB SATA3 IntelliPower 64MB"
+"WDC WD3200AZDX" 194 C "Western Digital Caviar Green 320GB SATA3 IntelliPower 32MB"
+"WDC WD5000AZDX" 194 C "Western Digital Caviar Green 500GB SATA3 IntelliPower 32MB"
+"WDC WD5000AZRX-00A8LB0" 194 C "Western Digital Caviar Green 500GB SATA3 IntelliPower 64MB"
+"WDC WD7500AZRX" 194 C "Western Digital Caviar Green 750GB SATA3 IntelliPower 64MB"
+"WDC WD10EARS" 194 C "Western Digital Caviar Green 1TB SATA2 IntelliPower 64MB"
+"WDC WD15EARS" 194 C "Western Digital Caviar Green 1.5TB SATA2 IntelliPower 64MB"
+"WDC WD20EARS" 194 C "Western Digital Caviar Green 2TB SATA2 IntelliPower 64MB"
+"WDC WD10EZRX" 194 C "Western Digital Caviar Green 1TB SATA3 IntelliPower 64MB"
+"WDC WD25EZRX" 194 C "Western Digital Caviar Green 2.5TB SATA3 IntelliPower 64MB"
+"WDC WD30EZRX" 194 C "Western Digital Caviar Green 3TB SATA3 IntelliPower 64MB"
+"WDC WD10EARX" 194 C "Western Digital Caviar Green 1TB SATA3 IntelliPower 64MB"
+"WDC WD15EARX" 194 C "Western Digital Caviar Green 1.5TB SATA3 IntelliPower 64MB"
+"WDC WD20EARX" 194 C "Western Digital Caviar Green 2TB SATA3 IntelliPower 64MB"
+"WDC WD7500AADS-11M2B1" 194 C "Western Digital Caviar Green 750GB SATA2 IntelliPower 32MB"
+"WDC WD3200AABB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 2MB"
+"WDC WD3200BB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 2MB"
+"WDC WD3000BB" 194 C "Western Digital Caviar Blue 300GB PATA 7200RPM 2MB"
+"WDC WD2500AABB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 2MB"
+"WDC WD2500BB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 2MB"
+"WDC WD2500LB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 2MB"
+"WDC WD2000BB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 2MB"
+"WDC WD2000LB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 2MB"
+"WDC WD1800BB" 194 C "Western Digital Caviar Blue 180GB PATA 7200RPM 2MB"
+"WDC WD1750BB" 194 C "Western Digital Caviar Blue 180GB PATA 7200RPM 2MB"
+"WDC WD1600AABB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 2MB"
+"WDC WD1600BB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 2MB"
+"WDC WD1200BB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 2MB"
+"WDC WD1200LB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 2MB"
+"WDC WD1000BB" 194 C "Western Digital Caviar Blue 100GB PATA 7200RPM 2MB"
+"WDC WD800BB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB"
+"WDC WD800BB-00JHC0" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB"
+"WDC WD800LB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB"
+"WDC WD800PB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 2MB"
+"WDC WD600BB" 194 C "Western Digital Caviar Blue 60GB PATA 7200RPM 2MB"
+"WDC WD400BB" 194 C "Western Digital Caviar Blue 40GB PATA 7200RPM 2MB"
+"WDC WD400LB" 194 C "Western Digital Caviar Blue 40GB PATA 7200RPM 2MB"
+"WDC WD300BB" 194 C "Western Digital Caviar Blue 30GB PATA 7200RPM 2MB"
+"WDC WD200BB" 194 C "Western Digital Caviar Blue 20GB PATA 7200RPM 2MB"
+"WDC WD100BB" 194 C "Western Digital Caviar Blue 10GB PATA 7200RPM 2MB"
+"WDC WD5000AAKB" 194 C "Western Digital Caviar Blue 500GB PATA 7200RPM 16MB"
+"WDC WD5000AAJB" 194 C "Western Digital Caviar Blue 500GB PATA 7200RPM 8MB"
+"WDC WD5000JB" 194 C "Western Digital Caviar Blue 500GB PATA 7200RPM 8MB"
+"WDC WD4000AAKB" 194 C "Western Digital Caviar Blue 400GB PATA 7200RPM 16MB"
+"WDC WD4000AAJB" 194 C "Western Digital Caviar Blue 400GB PATA 7200RPM 8MB"
+"WDC WD4000JB" 194 C "Western Digital Caviar Blue 400GB PATA 7200RPM 8MB"
+"WDC WD3200AAKB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 16MB"
+"WDC WD3200AAJB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 8MB"
+"WDC WD3200JB" 194 C "Western Digital Caviar Blue 320GB PATA 7200RPM 8MB"
+"WDC WD3000JB" 194 C "Western Digital Caviar Blue 300GB PATA 7200RPM 8MB"
+"WDC WD2500AAKB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 16MB"
+"WDC WD2500AAJB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 8MB"
+"WDC WD2500JB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 8MB"
+"WDC WD2500PB" 194 C "Western Digital Caviar Blue 250GB PATA 7200RPM 8MB"
+"WDC WD2000JB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 8MB"
+"WDC WD2000PB" 194 C "Western Digital Caviar Blue 200GB PATA 7200RPM 8MB"
+"WDC WD1800JB" 194 C "Western Digital Caviar Blue 180GB PATA 7200RPM 8MB"
+"WDC WD1600AAJB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 8MB"
+"WDC WD1600JB" 194 C "Western Digital Caviar Blue 160GB PATA 7200RPM 8MB"
+"WDC WD1200JB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 8MB"
+"WDC WD1200PB" 194 C "Western Digital Caviar Blue 120GB PATA 7200RPM 8MB"
+"WDC WD1000JB" 194 C "Western Digital Caviar Blue 100GB PATA 7200RPM 8MB"
+"WDC WD800JB" 194 C "Western Digital Caviar Blue 80GB PATA 7200RPM 8MB"
+"WDC WD600JB" 194 C "Western Digital Caviar Blue 60GB PATA 7200RPM 8MB"
+"WDC WD400JB" 194 C "Western Digital Caviar Blue 40GB PATA 7200RPM 8MB"
+"WDC WD2002FAEX" 194 C "Western Digital Caviar Black 2TB SATA3 7200RPM 64MB"
+"WDC WD1502FAEX" 194 C "Western Digital Caviar Black 1.5TB SATA3 7200RPM 64MB"
+"WDC WD1002FAEX" 194 C "Western Digital Caviar Black 1TB SATA3 7200RPM 64MB"
+"WDC WD7502AAEX" 194 C "Western Digital Caviar Black 750GB SATA3 7200RPM 64MB"
+"WDC WD6402AAEX" 194 C "Western Digital Caviar Black 640GB SATA3 7200RPM 64MB"
+"WDC WD5002AALX" 194 C "Western Digital Caviar Black 500GB SATA3 7200RPM 32MB"
+"WDC WD2001FASS" 194 C "Western Digital Caviar Black 2TB SATA2 7200RPM 64MB"
+"WDC WD1001FALS" 194 C "Western Digital Caviar Black 1TB SATA2 7200RPM 32MB"
+"WDC WD7501AALS" 194 C "Western Digital Caviar Black 750GB SATA2 7200RPM 32MB"
+"WDC WD6401AALS" 194 C "Western Digital Caviar Black 640GB SATA2 7200RPM 32MB"
+"WDC WD5001AALS" 194 C "Western Digital Caviar Black 500GB SATA2 7200RPM 32MB"
+"WDC WD10EALX" 194 C "Western Digital Caviar Blue 1TB SATA3 7200RPM 32MB"
+"WDC WD7500AALX" 194 C "Western Digital Caviar Blue 750GB SATA3 7200RPM 32MB"
+"WDC WD5000AAKX" 194 C "Western Digital Caviar Blue 500GB SATA3 7200RPM 16MB"
+"WDC WD3200AAKX" 194 C "Western Digital Caviar Blue 320GB SATA3 7200RPM 16MB"
+"WDC WD2500AAKX" 194 C "Western Digital Caviar Blue 250GB SATA3 7200RPM 16MB"
+"WDC WD10EALS" 194 C "Western Digital Caviar Blue 1TB SATA2 7200RPM 32MB"
+"WDC WD6400AAKS" 194 C "Western Digital Caviar Blue 640GB SATA2 7200RPM 16MB"
+"WDC WD5000AAKS" 194 C "Western Digital Caviar Blue 500GB SATA2 7200RPM 16MB"
+"WDC WD3200AAKS" 194 C "Western Digital Caviar Blue 320GB SATA2 7200RPM 16MB"
+"WDC WD2500AAKS" 194 C "Western Digital Caviar Blue 250GB SATA2 7200RPM 16MB"
+"WDC WD2500AAKS-00VSA0" 194 C "Western Digital Caviar Blue 250GB SATA2 7200RPM 16MB"
+"WDC WD3200AAJS" 194 C "Western Digital Caviar Blue 320GB SATA2 7200RPM 8MB"
+"WDC WD2500AAJS" 194 C "Western Digital Caviar Blue 250GB SATA2 7200RPM 8MB"
+"WDC WD1600AAJS" 194 C "Western Digital Caviar Blue 160GB SATA2 7200RPM 8MB"
+"WDC WD800AAJS" 194 C "Western Digital Caviar Blue 80GB SATA2 7200RPM 8MB"
+"WDC WD10JPVT" 194 C "1TB SATA2 5400RPM 8MB"
+"WDC WD10TPVT" 194 C "1TB SATA2 5200RPM 8MB"
+"WDC WD7500BPVT" 194 C "750GB SATA2 5400RPM 8MB"
+"WDC WD6400BPVT" 194 C "640GB SATA2 5400RPM 8MB"
+"WDC WD5000BPVT" 194 C "500GB SATA2 5400RPM 8MB"
+"WDC WD3200BPVT" 194 C "320GB SATA2 5400RPM 8MB"
+"WDC WD2500BPVT" 194 C "250GB SATA2 5400RPM 8MB"
+"WDC WD3200BEVE" 194 C "320GB PATA6 5400RPM 8MB"
+"WDC WD2500BEVE" 194 C "250GB PATA6 5400RPM 8MB"
+"WDC WD1600BEVE" 194 C "160GB PATA6 5400RPM 8MB"
+"WDC WD1200BEVE" 194 C "120GB PATA6 5400RPM 8MB"
+"WDC WD800BEVE" 194 C "80GB PATA6 5400RPM 8MB"
+"WDC WD5000LPVT" 194 C "500GB SATA2 5400RPM 8MB"
+"WDC WD3200LPVT" 194 C "320GB SATA2 5400RPM 8MB"
+"WDC WD2500LPVT" 194 C "250GB SATA2 5400RPM 8MB"
+"ST320LT007-9ZV142" 194 C "Seagate 320GB SATA2 7200RPM 16MB"
+"ST250DM000" 194 C "Seagate Barracuda 7200.14 250GB SATA3 7200RPM 16MB"
+"ST320DM000" 194 C "Seagate Barracuda 7200.14 320GB SATA3 7200RPM 16MB"
+"ST500DM002" 194 C "Seagate Barracuda 7200.14 500GB SATA3 7200RPM 16MB"
+"ST750DM003" 194 C "Seagate Barracuda 7200.14 750GB SATA3 7200RPM 64MB"
+"ST1000DM003" 194 C "Seagate Barracuda 7200.14 1TB SATA3 7200RPM 64MB"
+"ST1500DM003" 194 C "Seagate Barracuda 7200.14 1.5TB SATA3 7200RPM 64MB"
+"ST2000DM001" 194 C "Seagate Barracuda 7200.14 2TB SATA3 7200RPM 64MB"
+"ST3000DM001" 194 C "Seagate Barracuda 7200.14 3TB SATA3 7200RPM 64MB"
+"ST32000641AS" 194 C "Seagate Barracuda XT ST32000641AS 2TB SATA3 7200RPM 64MB"
+"ST500LM000-1EJ16" 194 C "Seagate 500GB SSHD"
+"Hitachi HTS725050A9A364" 190 C "Hitachi Travelstar 7K500 500GB SATA2 7200RPM 16MB"
+"HTE721080G9AT00" 194 C "Hitachi Travelstar E7K100 80GB PATA6 7200RPM 8MB"
+"ST9250315AS" 194 C "Seagate Momentus 5400.6 250GB SATA2 5400RPM 8MB"
+"ST9750420AS" 194 C "Seagate Momentus 7200.4 750GB SATA2 7200RPM 16MB"
+"ST9500423AS" 194 C "Seagate Momentus 7200.4 500GB SATA2 7200RPM 16MB"
+"TOSHIBA MK3252GSX" 194 C "Toshiba MK3252GSX"
+"SAMSUNG HM160HC" 194 C "Samsung HM160HC"
+"WDC WD1003FBYX-01Y7B1" 194 C "Western Digital RE4 1TB SATA2 7200RPM 64MB"
+"WDC WD3003FZEX-00Z4SA0" 194 C "Western Digital Caviar Black 3TB SATA3 7200RPM 64MB"
+"WDC WD3000FYYZ-01UL1B2" 194 C "Western Digital WD3000FYYZ 3TB SATA3 7200RPM"
+"TOSHIBA DT01ACA050" 194 C "Toshiba 500GB SATA3 7200RPM 32MB"
+"WDC WD10JFCX-68N6GN0" 194 C "Western Digital Red 1TB SATA3 IntelliPower 64MB"
+"WDC WD40EFRX" 194 C "Western Digital Red 4TB SATA3 IntelliPower 64MB"
+"WDC WD40EZRX" 194 C "Western Digital Green 4TB SATA3 IntelliPower 64MB"
+"WDC WD20EARS" 194 C "Western Digital Green 2TB SATA2 IntelliPower 64MB"
+"WDC WD5000BEVT" 194 C "Western Digital Scorpio Blue 500GB SATA2 5400RPM 8MB"
+"WDC WD5000BPKT-00PK4T0" 194 C "Western Digital Scorpio Black 500GB SATA2 7200RPM 16MB"
+"SanDisk SD6SB1M256G1022I" 194 C "Sandisk SSD X110 256GB"
+"Hitachi HTS542512K9SA00" 194 C "Hitachi Travelstar 5K250 120GB SATA2 5400RPM 8MB"
+"Hitachi HTS542516K9SA00" 194 C "Hitachi Travelstar 5K250 160GB SATA2 5400RPM 8MB"
+"Hitachi HDS721680PLA380" 194 C "Hitachi Deskstar 7K160 80GB SATA2 7200RPM 8MB"
+"Hitachi HDS721010CLA332" 194 C "Hitachi Deskstar 7K1000.C 1TB SATA2 7200RPM"
+"HGST HDS724040ALE640" 194 C "HGST Deskstar 7K4000 4TB SATA3 7200RPM"
+"ST9120822AS" 194 C "Seagate Momentus 5400.3 120GB SATA 5400RPM 8MB"
+"ST32000542AS" 194 C "Seagate Barracuda LP 2000GB SATA2 5900RPM 32MB"
+"ST2000DL003-9VT166" 194 C "Seagate Barracuda LP 2000GB SATA3 5900RPM 64MB"
+"ST4000VN000-1H4168" 194 C "Seagate NAS HDD 4TB SATA3 64MB"
+"Hitachi HTS545050B9A300" 194 C "Hitachi Travelstar 500GB SATA2 2.5 5400RPM 8MB"
+"ST9500325AS" 194 C "Seagate Momentus 5400.6 500GB SATA2 5400RPM 8MB"
+"WDC WD30EFRX-68AX9N0" 194 C "Western Digital Red 3TB SATA3 64MB"
+"Toshiba DT01ACA300" 194 C "Toshiba DT01ACA300 3TB SATA3 7200RPM 64MB"
+"TOSHIBA DT01ACA300" 194 C "Toshiba DT01ACA300 3TB SATA3 7200RPM 64MB"
+"TOSHIBA HDWD130" 194 C "Toshiba P300 3TB SATA3 7200RPM 64MB"
+"Samsung SSD 850 EVO" 190 C "Samsung SSD 850 EVO Series"
+"Samsung SSD 840 Series" 190 C "Samsung SSD 840 Series"
+"Samsung SSD 840 PRO Serise" 190 C "Samsung SSD 840 Pro Series"
+"Samsung SSD 840 EVO" 190 C "Samsung SSD 840 EVO Series"
+"SAMSUNG HD203WI" 194 C "Samsung SpinPoint F3 EcoGreen 2TB SATA2 5400RPM 32MB"
+"SAMSUNG SSD 830 Series" 190 C "Samsung SSD 830 Series"
+"SanDisk SDSSDH2128G" 194 C "Sandisk SSD Ultra Plus 128GB"
+"SanDisk SDSSDH2256G" 194 C "Sandisk SSD Ultra Plus 256GB"
+"OCZ-VERTEX3" 194 C "OCZ Vertex 3 120GB SATA3"
+"Crucial_CT240M500SSD3" 194 C "Crucial M500 240GB SATA3 256MB"
+"WDC WD5003ABYX-01WERA2" 194 C "Western Digital RE4 500GB"
+"WDC WD5002ABYS-02B1B0" 194 C "Western Digital RE3 500GB"
+"WDC WD20EZRX" 194 C "Western Digital Green 2TB"
+"ST4000DM000" 194 C "Seagate Desktop 4TB"
+"STM3160815AS" 194 C "Maxtor DiamondMax 21 - 160GB - 8MB Cache SATA"
+"6G160E0" 194 C "Maxtor DiamondMax 17 - 160GB - 8MB Cache SATA"
+"WDC WD7500BFCX-68N6GN0" 194 C "Western Digital Red 750GB SATA"
+"Hitachi HTS547575A9E384" 190 C "Hitachi Travelstar 5K750 750GB SATA2 5400RPM 8MB"
+"WDC WD30PURX-64P6ZY0" 194 C "Western Digital Purple 3TB 64MB Cache"
+"WDC WD10EZEX-00BN5A0" 194 C "Western Digital Blue 1TB SATA3 7200RPM 64MB"
+"WDC WD1003FZEX-00MK2A0" 194 C "Western Digital Black 1TB SATA3 7200RPM 64MB"
+"SAMSUNG MZHPV128HDGM-00000" 194 C "Samsung SSD 128 GB PCIe Gen3 8Gb/s x4 M.2"
+"CT960BX200SSD1" 194 C "Crucial BX200 960GB SSD"
+"CT480BX200SSD1" 194 C "Crucial BX200 480GB SSD"
+"CT240BX200SSD1" 194 C "Crucial BX200 240GB SSD"
+"Crucial_CT256M550SSD1" 194 C "Crucial M550 256GB SSD"
diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-byteswap.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-byteswap.patch
new file mode 100644
index 000000000000..7b0dddc2ae47
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-byteswap.patch
@@ -0,0 +1,28 @@
+diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/sata.c hddtemp-0.3-beta15/src/sata.c
+--- hddtemp-0.3-beta15.orig/src/sata.c 2006-05-14 02:09:55.579437498 -0700
++++ hddtemp-0.3-beta15/src/sata.c 2006-05-14 02:06:08.495948437 -0700
+@@ -88,7 +88,9 @@
+ return strdup(_("unknown"));
+ else
+ {
++ //fprintf(stderr,"sata_model1=%s\n",identify + 54);
+ sata_fixstring(identify + 54, 24);
++ //fprintf(stderr,"sata_model2=%s\n",identify + 54);
+ return strdup(identify + 54);
+ }
+ }
+diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c
+--- hddtemp-0.3-beta15.orig/src/satacmds.c 2006-05-14 02:09:40.983470339 -0700
++++ hddtemp-0.3-beta15/src/satacmds.c 2006-05-14 02:09:02.319557333 -0700
+@@ -98,7 +98,10 @@
+ /* convert from big-endian to host byte order */
+ for (p = end ; p != s;) {
+ unsigned short *pp = (unsigned short *) (p -= 2);
+- *pp = ntohs(*pp);
++ char tmp = p[0];
++ p[0] = p[1];
++ p[1] = tmp;
++ //*pp = ntohs(*pp);
+ }
+
+ /* strip leading blanks */
diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-dontwake.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-dontwake.patch
new file mode 100644
index 000000000000..969da7a70e40
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-dontwake.patch
@@ -0,0 +1,20 @@
+--- hddtemp-0.3-beta15/src/sata.c 2012-07-01 16:35:01.681708074 +0200
++++ hddtemp-0.3-beta15/src/sata.c 2012-07-01 16:33:58.172109699 +0200
+@@ -125,6 +125,17 @@
+ dsk->fd = -1;
+ return GETTEMP_NOSENSOR;
+ }
++
++ switch(ata_get_powermode(dsk->fd)) {
++ case PWM_STANDBY:
++ case PWM_SLEEPING:
++ if (!wakeup)
++ return GETTEMP_DRIVE_SLEEP;
++ case PWM_UNKNOWN:
++ case PWM_ACTIVE: /* active or idle */
++ default:
++ break;
++ }
+
+ /* get SMART values */
+ if(sata_enable_smart(dsk->fd) != 0) {
diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-execinfo.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-execinfo.patch
new file mode 100644
index 000000000000..1e7239535d4d
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-execinfo.patch
@@ -0,0 +1,21 @@
+--- hddtemp-0.3-beta15/configure.in~ 2005-10-17 19:14:19 +0000
++++ hddtemp-0.3-beta15/configure.in 2006-12-11 18:23:22 +0000
+@@ -18,6 +18,7 @@
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(fcntl.h)
+ AC_CHECK_HEADERS(netinet/in.h)
++AC_CHECK_HEADERS(execinfo.h)
+ AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
+
+ # Checks for typedefs, structures, and compiler characteristics.
+--- hddtemp-0.3-beta15/src/backtrace.c-orig 2006-12-11 18:20:41 +0000
++++ hddtemp-0.3-beta15/src/backtrace.c 2006-12-11 18:23:28 +0000
+@@ -18,7 +18,7 @@
+
+ #include <features.h>
+
+-#if defined(__i386__) && defined(__GLIBC__)
++#ifdef HAS_EXECINFO_H
+
+ #include <execinfo.h>
+
diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-iconv.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-iconv.patch
new file mode 100644
index 000000000000..621e7549aa0b
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-iconv.patch
@@ -0,0 +1,28 @@
+--- hddtemp-0.3-beta15/src/utf8.c~ 2007-03-27 09:09:59.000000000 +0200
++++ hddtemp-0.3-beta15/src/utf8.c 2007-03-27 09:10:06.000000000 +0200
+@@ -23,7 +23,9 @@
+
+ // Standard includes
+ #include <stdlib.h>
++#ifdef HAVE_ICONV
+ #include <iconv.h>
++#endif
+ #include <langinfo.h>
+ #include <locale.h>
+ #include <string.h>
+@@ -34,6 +36,7 @@
+
+ static char *iconv_from_utf8_to_locale(const char *string, const char* fallback_string)
+ {
++#ifdef HAVE_ICONV
+ const size_t buffer_inc = 80; // Increment buffer size in 80 bytes step
+ const char *charset;
+ iconv_t cd;
+@@ -93,6 +96,7 @@
+ if (dest_buffer != NULL)
+ free(dest_buffer); // free buffer
+ free(src_buffer); // free string
++#endif // HAVE_ICONV
+ return strdup(fallback_string); // and return fallback string
+ }
+
diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-nls.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-nls.patch
new file mode 100644
index 000000000000..86567aeb8c39
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-nls.patch
@@ -0,0 +1,14 @@
+--- hddtemp-0.3-beta15/src/hddtemp.c~ 2006-04-19 02:37:35 +0000
++++ hddtemp-0.3-beta15/src/hddtemp.c 2007-03-26 08:14:17 +0000
+@@ -275,9 +275,11 @@
+ backtrace_sigill();
+ backtrace_sigbus();
+
++#if ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
++#endif
+
+ show_db = debug = numeric = quiet = wakeup = af_hint = syslog_interval = 0;
+ unit = DEFAULT;
diff --git a/app-admin/hddtemp/files/hddtemp-0.3_beta15-satacmds.patch b/app-admin/hddtemp/files/hddtemp-0.3_beta15-satacmds.patch
new file mode 100644
index 000000000000..d67e0681f33f
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-0.3_beta15-satacmds.patch
@@ -0,0 +1,26 @@
+diff -Naurp hddtemp-0.3-beta15-orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c
+--- hddtemp-0.3-beta15-orig/src/satacmds.c 2007-02-10 14:25:15.000000000 +0100
++++ hddtemp-0.3-beta15/src/satacmds.c 2007-02-10 14:26:53.000000000 +0100
+@@ -54,7 +54,6 @@ int sata_pass_thru(int device, unsigned
+ unsigned char cdb[16];
+ unsigned char sense[32];
+ int dxfer_direction;
+- int ret;
+
+ memset(cdb, 0, sizeof(cdb));
+ cdb[0] = ATA_16;
+@@ -78,13 +77,7 @@ int sata_pass_thru(int device, unsigned
+ cdb[6] = cmd[1];
+ cdb[14] = cmd[0];
+
+- ret = scsi_SG_IO(device, cdb, sizeof(cdb), buffer, cmd[3] * 512, sense, sizeof(sense), dxfer_direction);
+-
+- /* Verify SATA magics */
+- if (sense[0] != 0x72 || sense[7] != 0x0e || sense[9] != 0x0e || sense[10] != 0x00)
+- return 1;
+- else
+- return ret;
++ return scsi_SG_IO(device, cdb, sizeof(cdb), buffer, cmd[3] * 512, sense, sizeof(sense), dxfer_direction);
+ }
+
+ void sata_fixstring(unsigned char *s, int bytecount)
diff --git a/app-admin/hddtemp/files/hddtemp-conf.d b/app-admin/hddtemp/files/hddtemp-conf.d
new file mode 100644
index 000000000000..f2f34d93b6e1
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-conf.d
@@ -0,0 +1,12 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# the hddtemp executable
+HDDTEMP_EXEC=/usr/sbin/hddtemp
+
+# various options to pass to the daemon
+HDDTEMP_OPTS="--listen=127.0.0.1"
+
+# a list of drives to check
+HDDTEMP_DRIVES="/dev/sda /dev/sdb"
+
diff --git a/app-admin/hddtemp/files/hddtemp-init b/app-admin/hddtemp/files/hddtemp-init
new file mode 100644
index 000000000000..39a640997cfe
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-init
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting hddtemp daemon"
+ /sbin/start-stop-daemon --start --quiet --exec ${HDDTEMP_EXEC} \
+ -- -d ${HDDTEMP_OPTS} ${HDDTEMP_DRIVES}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping hddtemp daemon"
+ start-stop-daemon --stop --quiet --exec ${HDDTEMP_EXEC}
+ eend $?
+}
+
+
diff --git a/app-admin/hddtemp/files/hddtemp.service b/app-admin/hddtemp/files/hddtemp.service
new file mode 100644
index 000000000000..b2fca4214bca
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Hard drive temperature monitor daemon
+Documentation=man:hddtemp(8)
+
+[Service]
+Environment=HDDTEMP_OPTIONS=--listen=127.0.0.1
+EnvironmentFile=-/etc/conf.d/hddtemp
+ExecStart=/usr/sbin/hddtemp -d $HDDTEMP_OPTIONS $HDDTEMP_DRIVES
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-admin/hddtemp/files/hddtemp.service-r1 b/app-admin/hddtemp/files/hddtemp.service-r1
new file mode 100644
index 000000000000..8105bfc50cce
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp.service-r1
@@ -0,0 +1,10 @@
+[Unit]
+Description=Hard drive temperature monitor daemon
+Documentation=man:hddtemp(8)
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/hddtemp -d --listen=127.0.0.1 $HDDTEMP_DRIVES
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-admin/hddtemp/files/hddtemp.service.conf b/app-admin/hddtemp/files/hddtemp.service.conf
new file mode 100644
index 000000000000..a2a6c7fbd7f4
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp.service.conf
@@ -0,0 +1,3 @@
+# Set a list of drives to check
+[Service]
+Environment="HDDTEMP_DRIVES=/dev/sda /dev/sdb" \ No newline at end of file
diff --git a/app-admin/hddtemp/files/update-hddtemp.db b/app-admin/hddtemp/files/update-hddtemp.db
new file mode 100644
index 000000000000..bc29b3ec0caa
--- /dev/null
+++ b/app-admin/hddtemp/files/update-hddtemp.db
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+update_db() {
+ local src=$1
+ local dst=$2
+
+ while read line ; do
+ if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then
+ echo "${line}" >> "${dst}"
+ fi
+
+ id=$(echo "${line}" | grep -o '"[^"]*"')
+
+ grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}"
+ done < "${src}"
+}
+
+die() {
+ echo "$*"
+ exit 1
+}
+
+cd /usr/share/hddtemp
+wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db -O hddtemp.db -q || die "Failed to download new hddtemp.db file"
+
+# Try to get the Gentoo HDD DB from WebCVS. If that fails, just use the Gentoo HDD database
+# that was installed by the ebuild.
+if wget https://gitweb.gentoo.org/repo/gentoo.git/plain/app-admin/hddtemp/files/hddgentoo.db -O hddtmp.db -q; then
+ mv -f hddtmp.db hddgentoo.db
+fi
+
+update_db "hddgentoo.db" "hddtemp.db"
+
diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild
new file mode 100644
index 000000000000..988a38401bfc
--- /dev/null
+++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r26.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils autotools readme.gentoo-r1 systemd
+
+MY_P=${P/_beta/-beta}
+DBV=20080531
+
+DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives"
+HOMEPAGE="https://savannah.nongnu.org/projects/hddtemp/"
+SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ~ppc64 sparc x86"
+IUSE="network-cron nls selinux"
+
+DEPEND=""
+RDEPEND="selinux? ( sec-policy/selinux-hddtemp )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=(README TODO ChangeLog)
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="In order to update your hddtemp database, run:
+emerge --config =${CATEGORY}/${PF} or update-hddtemp.db (if USE
+network-cron is enabled)
+
+If your hard drive is not recognized by hddtemp, please consider
+submitting your HDD info for inclusion into the Gentoo hddtemp
+database by filing a bug at https://bugs.gentoo.org/
+
+If hddtemp complains but finds your HDD temperature sensor, use the
+--quiet option to suppress the warning.
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-satacmds.patch
+ "${FILESDIR}"/${P}-byteswap.patch
+ "${FILESDIR}"/${P}-execinfo.patch
+ "${FILESDIR}"/${P}-nls.patch
+ "${FILESDIR}"/${P}-iconv.patch
+ "${FILESDIR}"/${P}-dontwake.patch
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+ mv "${S}"/configure.{in,ac} || die
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
+ # disabling nls breaks compiling
+ use nls || myconf="--disable-nls ${myconf}"
+ econf ${myconf}
+}
+
+src_install() {
+ default
+
+ insinto /usr/share/hddtemp
+ newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db
+ doins "${FILESDIR}"/hddgentoo.db
+
+ update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db"
+ newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp
+ newinitd "${FILESDIR}"/hddtemp-init hddtemp
+ systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service"
+ systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf
+
+ readme.gentoo_create_doc
+
+ if use network-cron; then
+ dosbin "${FILESDIR}"/update-hddtemp.db
+ exeinto /etc/cron.monthly
+ echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron
+ newexe "${T}"/hddtemp.cron update-hddtemp.db
+ fi
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
+
+update_db() {
+ local src=$1
+ local dst=$2
+
+ while read line ; do
+ if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then
+ echo "${line}" >> "${dst}"
+ fi
+
+ id=$(echo "${line}" | grep -o '"[^"]*"')
+
+ grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}"
+ done < "${src}"
+}
+
+pkg_config() {
+ cd "${ROOT}"/usr/share/hddtemp || die
+
+ einfo "Trying to download the latest hddtemp.db file"
+ wget http://www.guzu.net/linux/hddtemp.db -O hddtemp.db \
+ || die "failed to download hddtemp.db"
+
+ update_db "hddgentoo.db" "hddtemp.db"
+}
diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild
new file mode 100644
index 000000000000..1350815a28ca
--- /dev/null
+++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools readme.gentoo systemd
+
+MY_P=${P/_beta/-beta}
+DBV=20080531
+
+DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives"
+HOMEPAGE="https://savannah.nongnu.org/projects/hddtemp/"
+SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc sparc x86"
+IUSE="nls selinux"
+
+DEPEND=""
+RDEPEND="selinux? ( sec-policy/selinux-hddtemp )"
+
+S="${WORKDIR}/${MY_P}"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="In order to update your hddtemp database, run:
+emerge --config =${CATEGORY}/${PF}
+
+If your hard drive is not recognized by hddtemp, please consider
+submitting your HDD info for inclusion into the Gentoo hddtemp
+database by filing a bug at https://bugs.gentoo.org/
+
+If hddtemp complains but finds your HDD temperature sensor, use the
+--quiet option to suppress the warning.
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-satacmds.patch
+ epatch "${FILESDIR}"/${P}-byteswap.patch
+ epatch "${FILESDIR}"/${P}-execinfo.patch
+ epatch "${FILESDIR}"/${P}-nls.patch
+ epatch "${FILESDIR}"/${P}-iconv.patch
+ epatch "${FILESDIR}"/${P}-dontwake.patch
+ mv "${S}"/configure.{in,ac} || die
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
+ # disabling nls breaks compiling
+ use nls || myconf="--disable-nls ${myconf}"
+ econf ${myconf}
+}
+
+src_install() {
+ default
+ dodoc README TODO ChangeLog
+
+ insinto /usr/share/hddtemp
+ newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db
+ doins "${FILESDIR}"/hddgentoo.db
+
+ update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db"
+ newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp
+ newinitd "${FILESDIR}"/hddtemp-init hddtemp
+ systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service"
+ systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf
+
+ readme.gentoo_create_doc
+}
+
+update_db() {
+ local src=$1
+ local dst=$2
+
+ while read line ; do
+ if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then
+ echo "${line}" >> "${dst}"
+ fi
+
+ id=$(echo "${line}" | grep -o '"[^"]*"')
+
+ grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}"
+ done < "${src}"
+}
+
+pkg_config() {
+ cd "${ROOT}"/usr/share/hddtemp || die
+
+ einfo "Trying to download the latest hddtemp.db file"
+ wget http://www.guzu.net/linux/hddtemp.db -O hddtemp.db \
+ || die "failed to download hddtemp.db"
+
+ update_db "hddgentoo.db" "hddtemp.db"
+}
diff --git a/app-admin/hddtemp/metadata.xml b/app-admin/hddtemp/metadata.xml
new file mode 100644
index 000000000000..fa25feea165c
--- /dev/null
+++ b/app-admin/hddtemp/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="network-cron">
+ Monthly cronjob to update hddtemp.db.
+ </flag>
+ </use>
+</pkgmetadata>