summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArch Nous2016-12-13 00:44:13 +0200
committerArch Nous2016-12-13 00:49:22 +0200
commit0b307a8d14284a91d59071d586918914235d1ce7 (patch)
tree35db1cac9511ca58e7ea84461d52c892b26aecb6
parent001f377db0b2d3101a72304ded04e1ab39d0a750 (diff)
downloadaur-0b307a8d14284a91d59071d586918914235d1ce7.tar.gz
4.4.38-1
-rw-r--r--.SRCINFO16
-rw-r--r--99-linux.hook11
-rw-r--r--PKGBUILD49
3 files changed, 50 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6e4617d07454..3e54d0980068 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = linux-pf-lts
- pkgver = 4.4.36
- pkgrel = 2
+ pkgver = 4.4.38
+ pkgrel = 1
url = http://pf.natalenko.name/
arch = i686
arch = x86_64
@@ -17,11 +17,14 @@ pkgbase = linux-pf-lts
source = config
source = config.x86_64
source = linux-pf-lts.preset
+ source = 99-linux.hook
source = 0001-sdhci-revert.patch
source = logo_linux_clut224.ppm.bz2
source = logo_linux_mono.pbm.bz2
source = logo_linux_vga16.ppm.bz2
source = http://pf.natalenko.name/sources/4.4/patch-4.4-pf10.xz
+ source = https://www.kernel.org/pub/linux/kernel/v4.x/incr/patch-4.4.36-37.xz
+ source = https://www.kernel.org/pub/linux/kernel/v4.x/incr/patch-4.4.37-38.xz
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
sha256sums = 401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2
@@ -29,11 +32,14 @@ pkgbase = linux-pf-lts
sha256sums = 15d9c10ede703dc06abd8ae9c68b4099637b32a27d2b2625eecd0ded317cec21
sha256sums = a5983205b7d13985566e96ab9fa7053b03c73769bbfa6ed67897131e9cc131c0
sha256sums = 1f036f7464da54ae510630f0edb69faa115287f86d9f17641197ffda8cfd49e0
+ sha256sums = 834bd254b56ab71d73f59b3221f056c72f559553c04718e350ab2a3e2991afe0
sha256sums = 5313df7cb5b4d005422bd4cd0dae956b2dadba8f3db904275aaf99ac53894375
sha256sums = 03ed4eb4a35d42ae6beaaa5e6fdbada4244ed6c343944bba6462defaa6fed0bf
sha256sums = 51ea665cfec42d9f9c7796af2b060b7edbdeb367e42811f8c02667ad729f6b19
sha256sums = 9e1e81d80afac6f316e53947e1b081017090081cd30e6c4c473420b77af4b52b
sha256sums = cb4d3fc91475d90179f88fe9994081b8fe37c2b6c2976778425d8e61a5a6541a
+ sha256sums = fd1481ed7d6a35a820bbb912d6899fbbc392b505fd1f6643c0060cd9c5f1494a
+ sha256sums = ee9869b1f354c3991f33e8bb7754b6b4143f4a44f5833da1fa0da2c1c8ac0f5c
pkgname = linux-pf-lts
pkgdesc = Linux kernel and modules with the pf-kernel patchset [-ck patch (BFS included), TuxOnIce, BFQ, UKSM] and aufs3. Long-term support.
@@ -42,7 +48,7 @@ pkgname = linux-pf-lts
depends = linux-firmware
depends = kmod
depends = mkinitcpio>=0.7
- optdepends = linux-docs: Kernel hackers manual - HTML documentation that comes with the Linux kernel.
+ optdepends = linux-lts-docs: Kernel hackers manual - HTML documentation that comes with the Linux kernel.
optdepends = crda: to set the correct wireless channels of your country
optdepends = pm-utils: utilities and scripts for suspend and hibernate power management
optdepends = tuxonice-userui: TuxOnIce userspace user interface
@@ -51,7 +57,7 @@ pkgname = linux-pf-lts
optdepends = nvidia-beta-all: NVIDIA drivers for all installed kernels
optdepends = modprobed_db: Keeps track of EVERY kernel module that has ever been probed. Useful for make localmodconfig.
provides = linux-pf-lts=4.4
- provides = linux=4.4.36
+ provides = linux=4.4.38
provides = aufs3
conflicts = linux-pf-lts
replaces = aufs3
@@ -60,6 +66,6 @@ pkgname = linux-pf-lts
pkgname = linux-pf-lts-headers
pkgdesc = Header files and scripts for building modules for linux-pf-lts kernel.
provides = linux-pf-lts-headers
- provides = linux-headers=4.4.36
+ provides = linux-headers=4.4.38
conflicts = linux-pf-lts-headers
diff --git a/99-linux.hook b/99-linux.hook
new file mode 100644
index 000000000000..9851151995bc
--- /dev/null
+++ b/99-linux.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = boot/vmlinuz-%PKGBASE%
+Target = usr/lib/initcpio/*
+
+[Action]
+Description = Updating %PKGBASE% initcpios
+When = PostTransaction
+Exec = /usr/bin/mkinitcpio -p %PKGBASE%
diff --git a/PKGBUILD b/PKGBUILD
index a1e8425258dc..403371fd2c1e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,13 +6,13 @@
pkgbase=linux-pf-lts
_major=4
_minor=4
-_patchlevel=36
+_patchlevel=38
_pfpatchlevel=36
#_subversion=1
_basekernel=${_major}.${_minor}
_srcname=linux-${_basekernel}
_pfrel=10
-pkgrel=2
+pkgrel=1
_kernelname=-pf
_pfpatchhome="http://pf.natalenko.name/sources/${_basekernel}/"
_pfpatchname="patch-${_basekernel}${_kernelname}${_pfrel}"
@@ -48,12 +48,27 @@ source=(https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.{xz,sign}
'config' 'config.x86_64'
# standard config files for mkinitcpio ramdisk
"$pkgbase.preset"
+ # pacman hook for initramfs regeneration
+ '99-linux.hook'
'0001-sdhci-revert.patch'
'logo_linux_clut224.ppm.bz2' #\
'logo_linux_mono.pbm.bz2' #-> the Arch Linux boot logos
'logo_linux_vga16.ppm.bz2' #/
"${_pfpatchhome}${_pfpatchname}.xz" # the -pf patchset
${_incr[@]}) # the incremental kernel patches
+sha256sums=('401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2'
+ 'SKIP'
+ '15d9c10ede703dc06abd8ae9c68b4099637b32a27d2b2625eecd0ded317cec21'
+ 'a5983205b7d13985566e96ab9fa7053b03c73769bbfa6ed67897131e9cc131c0'
+ '1f036f7464da54ae510630f0edb69faa115287f86d9f17641197ffda8cfd49e0'
+ '834bd254b56ab71d73f59b3221f056c72f559553c04718e350ab2a3e2991afe0'
+ '5313df7cb5b4d005422bd4cd0dae956b2dadba8f3db904275aaf99ac53894375'
+ '03ed4eb4a35d42ae6beaaa5e6fdbada4244ed6c343944bba6462defaa6fed0bf'
+ '51ea665cfec42d9f9c7796af2b060b7edbdeb367e42811f8c02667ad729f6b19'
+ '9e1e81d80afac6f316e53947e1b081017090081cd30e6c4c473420b77af4b52b'
+ 'cb4d3fc91475d90179f88fe9994081b8fe37c2b6c2976778425d8e61a5a6541a'
+ 'fd1481ed7d6a35a820bbb912d6899fbbc392b505fd1f6643c0060cd9c5f1494a'
+ 'ee9869b1f354c3991f33e8bb7754b6b4143f4a44f5833da1fa0da2c1c8ac0f5c')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds <torvalds@linux-foundation.org>
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman (Linux kernel stable release signing key) <greg@kroah.com>
)
@@ -65,7 +80,7 @@ _kernelname=${pkgbase#linux}
# '
prepare() {
- cd "${srcdir}/linux-${_basekernel}"
+ cd "${srcdir}/${_srcname}"
# This is for me, to test the PKGBUILD
@@ -160,7 +175,7 @@ prepare() {
}
build() {
- cd "${srcdir}/linux-${_basekernel}"
+ cd "${srcdir}/${_srcname}"
#----------------------------------------
if [[ "$_BATCH" != "y" ]]; then # for batch building
@@ -332,11 +347,12 @@ build() {
}
_package() {
+msg "Running package-${pkgbase}()"
_pkgdesc="Linux kernel and modules with the pf-kernel patchset [-ck patch (BFS included), TuxOnIce, BFQ, UKSM] and aufs3. Long-term support."
pkgdesc=${_pkgdesc}
[ "${pkgbase}" = "linux" ] && groups=('base')
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
- optdepends=('linux-docs: Kernel hackers manual - HTML documentation that comes with the Linux kernel.'
+ optdepends=('linux-lts-docs: Kernel hackers manual - HTML documentation that comes with the Linux kernel.'
'crda: to set the correct wireless channels of your country'
'pm-utils: utilities and scripts for suspend and hibernate power management'
'tuxonice-userui: TuxOnIce userspace user interface'
@@ -359,7 +375,7 @@ _package() {
install="$pkgbase.install"
#'
- cd "${srcdir}/linux-${_basekernel}"
+ cd "${srcdir}/${_srcname}"
# Remove undeeded aufs3 git tree
rm -fr aufs3 2>/dev/null
@@ -483,8 +499,6 @@ _package() {
msg "${pkgdesc}"
echo " ========================================"
echo
-exit
- ### package_linux-pf-lts
cd "${srcdir}/linux-${_basekernel}"
@@ -518,6 +532,10 @@ exit
-e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgbase}-fallback.img\"|" \
-i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
+ # install pacman hook for initramfs regeneration
+ sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/99-linux.hook" |
+ install -D -m644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/99-${pkgbase}.hook"
+
# remove build and source links
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
# remove the firmware
@@ -545,8 +563,8 @@ exit
true && pkgname="${pkgnameopt}"
}
-
_package-headers() {
+msg "Running package-${pkgbase}()"
pkgdesc="Header files and scripts for building modules for linux-pf-lts kernel."
# IFS=' ' read -a conflicts <<<${_conflicts}
# conflicts=( ${_conflicts[@]} )
@@ -678,6 +696,7 @@ _package-headers() {
# remove unneeded architectures
rm -rf "${pkgdir}"/usr/lib/modules/${_kernver}/build/arch/{alpha,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa}
+
# end c/p
# remove a file already in linux package
@@ -691,15 +710,3 @@ for _p in ${pkgname[@]}; do
_package${_p#${pkgbase}}
}"
done
-
-# makepkg -g >>PKGBUILD
-sha256sums=('401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2'
- 'SKIP'
- '15d9c10ede703dc06abd8ae9c68b4099637b32a27d2b2625eecd0ded317cec21'
- 'a5983205b7d13985566e96ab9fa7053b03c73769bbfa6ed67897131e9cc131c0'
- '1f036f7464da54ae510630f0edb69faa115287f86d9f17641197ffda8cfd49e0'
- '5313df7cb5b4d005422bd4cd0dae956b2dadba8f3db904275aaf99ac53894375'
- '03ed4eb4a35d42ae6beaaa5e6fdbada4244ed6c343944bba6462defaa6fed0bf'
- '51ea665cfec42d9f9c7796af2b060b7edbdeb367e42811f8c02667ad729f6b19'
- '9e1e81d80afac6f316e53947e1b081017090081cd30e6c4c473420b77af4b52b'
- 'cb4d3fc91475d90179f88fe9994081b8fe37c2b6c2976778425d8e61a5a6541a')