summaryrefslogtreecommitdiff
path: root/gnu/packages/linux.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r--gnu/packages/linux.scm126
1 files changed, 122 insertions, 4 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 03f933c2dfb..17ba1e439bd 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -313,7 +313,18 @@ It has been modified to remove all non-free binary blobs.")
313 (license gpl2) 313 (license gpl2)
314 (home-page "http://www.gnu.org/software/linux-libre/")))) 314 (home-page "http://www.gnu.org/software/linux-libre/"))))
315 315
316(define-public linux-libre-4.0
317 (package
318 (inherit linux-libre)
319 (version "4.0.8")
320 (source (origin
321 (method url-fetch)
322 (uri (linux-libre-urls version))
323 (sha256
324 (base32
325 "1xg5ysbdpna78yaz760c1z08sczagqyy74svr3p2mv8iczqyxdca"))))))
316 326
327
317;;; 328;;;
318;;; Pluggable authentication modules (PAM). 329;;; Pluggable authentication modules (PAM).
319;;; 330;;;
@@ -356,7 +367,7 @@ It has been modified to remove all non-free binary blobs.")
356 "A *Free* project to implement OSF's RFC 86.0. 367 "A *Free* project to implement OSF's RFC 86.0.
357Pluggable authentication modules are small shared object files that can 368Pluggable authentication modules are small shared object files that can
358be used through the PAM API to perform tasks, like authenticating a user 369be used through the PAM API to perform tasks, like authenticating a user
359at login. Local and dynamic reconfiguration are its key features") 370at login. Local and dynamic reconfiguration are its key features.")
360 (license bsd-3))) 371 (license bsd-3)))
361 372
362 373
@@ -1713,6 +1724,113 @@ interface.")
1713 (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html") 1724 (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
1714 (license gpl2+))) 1725 (license gpl2+)))
1715 1726
1727(define-public crda
1728 (package
1729 (name "crda")
1730 (version "3.18")
1731 (source (origin
1732 (method url-fetch)
1733 (uri (string-append "mirror://kernel.org/software/network/crda/"
1734 "crda-" version ".tar.xz"))
1735 (sha256
1736 (base32
1737 "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23"))
1738 (patches (list (search-patch "crda-optional-gcrypt.patch")))))
1739 (build-system gnu-build-system)
1740 (arguments
1741 '(#:phases (modify-phases %standard-phases
1742 (delete 'configure)
1743 (add-before
1744 'build 'no-werror-no-ldconfig
1745 (lambda _
1746 (substitute* "Makefile"
1747 (("-Werror") "")
1748 (("ldconfig") "true"))
1749 #t))
1750 (add-before
1751 'build 'set-regulator-db-file-name
1752 (lambda* (#:key inputs #:allow-other-keys)
1753 ;; Tell CRDA where to find our database.
1754 (let ((regdb (assoc-ref inputs "wireless-regdb")))
1755 (substitute* "crda.c"
1756 (("\"/lib/crda/regulatory.bin\"")
1757 (string-append "\"" regdb
1758 "/lib/crda/regulatory.bin\"")))
1759 #t))))
1760 #:test-target "verify"
1761 #:make-flags (let ((out (assoc-ref %outputs "out"))
1762 (regdb (assoc-ref %build-inputs "wireless-regdb")))
1763 (list "CC=gcc" "V=1"
1764
1765 ;; Disable signature-checking on 'regulatory.bin'.
1766 ;; The reason is that this simplifies maintenance
1767 ;; on our side (no need to manage a distro key
1768 ;; pair), and we can guarantee integrity of
1769 ;; 'regulatory.bin' by other means anyway, such as
1770 ;; 'guix gc --verify'. See
1771 ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
1772 ;; for a discssion.
1773 "USE_OPENSSL=0"
1774
1775 (string-append "PREFIX=" out)
1776 (string-append "SBINDIR=" out "/sbin/")
1777 (string-append "UDEV_RULE_DIR="
1778 out "/lib/udev/rules.d")
1779 (string-append "LDFLAGS=-Wl,-rpath="
1780 out "/lib -L.")
1781 (string-append "REG_BIN=" regdb
1782 "/lib/crda/regulatory.bin")))))
1783 (native-inputs `(("pkg-config" ,pkg-config)
1784 ("python" ,python-2)
1785 ("wireless-regdb" ,wireless-regdb)))
1786 (inputs `(("libnl" ,libnl)))
1787 (home-page
1788 "https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA")
1789 (synopsis "Central regulatory domain agent (CRDA) for WiFi")
1790 (description
1791 "The Central Regulatory Domain Agent (CRDA) acts as the udev helper for
1792communication between the kernel Linux and user space for regulatory
1793compliance.")
1794 (license copyleft-next)))
1795
1796(define-public wireless-regdb
1797 (package
1798 (name "wireless-regdb")
1799 (version "2015.04.06")
1800 (source (origin
1801 (method url-fetch)
1802 (uri (string-append
1803 "mirror://kernel.org/software/network/wireless-regdb/"
1804 "wireless-regdb-" version ".tar.xz"))
1805 (sha256
1806 (base32
1807 "0czi83k311fp27z42hxjm8vi88fsbc23mhavv96lkb4pmari0jjc"))))
1808 (build-system gnu-build-system)
1809 (arguments
1810 '(#:phases (modify-phases %standard-phases
1811 (delete 'configure))
1812 #:tests? #f ;no tests
1813 #:make-flags (let ((out (assoc-ref %outputs "out")))
1814 (list (string-append "PREFIX=" out)
1815 (string-append "LSB_ID=GuixSD")
1816 (string-append "DISTRO_PUBKEY=/dev/null")
1817 (string-append "DISTRO_PRIVKEY=/dev/null")
1818 (string-append "REGDB_PUBKEY=/dev/null")
1819
1820 ;; Leave that empty so that db2bin.py doesn't try
1821 ;; to sign 'regulatory.bin'. This allows us to
1822 ;; avoid managing a key pair for the whole distro.
1823 (string-append "REGDB_PRIVKEY=")))))
1824 (native-inputs `(("python" ,python-2)))
1825 (home-page
1826 "https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb")
1827 (synopsis "Wireless regulatory database")
1828 (description
1829 "This package contains the wireless regulatory database Central
1830Regulatory Database Agent (CRDA) daemon. The database contains information on
1831country-specific regulations for the wireless spectrum.")
1832 (license isc)))
1833
1716(define-public lm-sensors 1834(define-public lm-sensors
1717 (package 1835 (package
1718 (name "lm-sensors") 1836 (name "lm-sensors")
@@ -1949,10 +2067,10 @@ thanks to the use of namespaces.")
1949 #:phases (alist-delete 'configure %standard-phases) 2067 #:phases (alist-delete 'configure %standard-phases)
1950 #:tests? #f)) ; no test suite 2068 #:tests? #f)) ; no test suite
1951 (home-page "http://sourceforge.net/projects/hdparm/") 2069 (home-page "http://sourceforge.net/projects/hdparm/")
1952 (synopsis "tune hard disk parameters for high performance") 2070 (synopsis "Tune hard disk parameters for high performance")
1953 (description 2071 (description
1954 "Get/set device parameters for Linux SATA/IDE drives. It's primary use 2072 "Get/set device parameters for Linux SATA/IDE drives. It's primary use
1955is for enabling irq-unmasking and IDE multiplemode.") 2073is for enabling irq-unmasking and IDE multiple-mode.")
1956 (license (non-copyleft "file://LICENSE.TXT")))) 2074 (license (non-copyleft "file://LICENSE.TXT"))))
1957 2075
1958(define-public acpid 2076(define-public acpid
@@ -2048,7 +2166,7 @@ also contains the libsysfs library.")
2048 (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/") 2166 (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/")
2049 (synopsis "Utilities to get and set CPU frequency on Linux") 2167 (synopsis "Utilities to get and set CPU frequency on Linux")
2050 (description 2168 (description
2051 "The cpufrequtils suite contains utilities to retreive CPU frequency 2169 "The cpufrequtils suite contains utilities to retrieve CPU frequency
2052information, and set the CPU frequency if supported, using the cpufreq 2170information, and set the CPU frequency if supported, using the cpufreq
2053capabilities of the Linux kernel.") 2171capabilities of the Linux kernel.")
2054 (license gpl2))) 2172 (license gpl2)))