diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/hddtemp | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/hddtemp')
18 files changed, 775 insertions, 0 deletions
diff --git a/app-admin/hddtemp/Manifest b/app-admin/hddtemp/Manifest new file mode 100644 index 000000000000..47640e8f0d8c --- /dev/null +++ b/app-admin/hddtemp/Manifest @@ -0,0 +1,2 @@ +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 diff --git a/app-admin/hddtemp/files/hddgentoo.db b/app-admin/hddtemp/files/hddgentoo.db new file mode 100644 index 000000000000..503421568d35 --- /dev/null +++ b/app-admin/hddtemp/files/hddgentoo.db @@ -0,0 +1,236 @@ +############################################# +############# 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" +"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" +"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" +"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" +"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" +"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" +"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" 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..b60b0f3fc6fe --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-conf.d @@ -0,0 +1,13 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# 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..60b1e31deeb5 --- /dev/null +++ b/app-admin/hddtemp/files/hddtemp-init @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 100755 index 000000000000..0a8c665b8794 --- /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 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/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-r24.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r24.ebuild new file mode 100644 index 000000000000..3ee76b2e683c --- /dev/null +++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r24.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils autotools systemd + +MY_P=${P/_beta/-beta} +DBV=20080531 + +DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives" +HOMEPAGE="http://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="network-cron nls selinux" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-hddtemp )" + +S="${WORKDIR}/${MY_P}" + +DOCS=(README TODO ChangeLog) + +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 + 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 + + dosbin "${FILESDIR}"/update-hddtemp.db + + if use network-cron ; then + 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() { + elog "In order to update your hddtemp database, run:" + elog " update-hddtemp.db" + elog "" + elog "If your hard drive is not recognized by hddtemp, please consider" + elog "submitting your HDD info for inclusion into the Gentoo hddtemp" + elog "database by filing a bug at https://bugs.gentoo.org/" + echo + ewarn "If hddtemp complains but finds your HDD temperature sensor, use the" + ewarn "--quiet option to suppress the warning." +} + +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}" +} diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r25.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r25.ebuild new file mode 100644 index 000000000000..7daa559ac305 --- /dev/null +++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r25.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="http://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="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. +" + +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 + 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 +} + +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..2e78d0704970 --- /dev/null +++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="http://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 + 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..a6041c523f54 --- /dev/null +++ b/app-admin/hddtemp/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>aidecoe@gentoo.org</email> +</maintainer> +<use> + <flag name='network-cron'> + Monthly cronjob to update hddtemp.db. + </flag> +</use> +</pkgmetadata> |