← recipes

Commit 148fc64

0
plików
+0
dodanych
-0
usuniętych
@@ -1,58 +0,0 @@
1 -pkgname: linux-headers
2 -pkgver: '7.1.8'
3 -pkgrel: '1'
4 -pkgdesc: 'Nagłówki jądra Pagan Linux (przygotowane źródła) – do budowy modułów zewnętrznych (np. nvidia-kernel).'
5 -url: 'https://www.kernel.org/'
6 -arch: x86_64
7 -license:
8 -- GPL-2.0-only
9 -depends: []
10 -makedepends:
11 -- bc
12 -- kmod
13 -- elfutils
14 -- python
15 -- openssl
16 -- flex
17 -- bison
18 -- perl
19 -- cpio
20 -
21 -source:
22 -- 'https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-${pkgver}.tar.xz'
23 -
24 -sha256sums:
25 -- SKIP
26 -
27 -build: |
28 - cd linux-${pkgver}
29 -
30 - # Ta sama konfiguracja co pakiet linux – moduły muszą pasować ABI.
31 - make defconfig
32 -
33 - ./scripts/config --set-str CONFIG_LOCALVERSION "-pagan"
34 - ./scripts/config --disable CONFIG_LOCALVERSION_AUTO
35 - ./scripts/config --disable CONFIG_WERROR
36 - ./scripts/config --disable CONFIG_MODULE_SIG
37 - ./scripts/config --enable CONFIG_MODULES
38 -
39 - make olddefconfig
40 -
41 - # Przygotuj drzewo do budowy modułów zewnętrznych (scripts, .config, ...)
42 - make -j$(nproc) modules_prepare
43 -
44 -package: |
45 - cd linux-${pkgver}
46 -
47 - # UAPI headers do /usr/include
48 - make headers_install INSTALL_HDR_PATH="${PKGDIR}/usr"
49 -
50 - # Pełne, przygotowane źródła do /usr/src/linux-headers-<ver>-pagan
51 - mkdir -p "${PKGDIR}/usr/src"
52 - cp -a . "${PKGDIR}/usr/src/linux-headers-${pkgver}-pagan"
53 -
54 - # Link build/source w katalogu modułów (jeśli linux już zainstalowany w chroot)
55 - if [ -d "${PKGDIR}/usr/lib/modules/${pkgver}-pagan" ]; then
56 - ln -sfn "/usr/src/linux-headers-${pkgver}-pagan" "${PKGDIR}/usr/lib/modules/${pkgver}-pagan/build"
57 - ln -sfn "/usr/src/linux-headers-${pkgver}-pagan" "${PKGDIR}/usr/lib/modules/${pkgver}-pagan/source"
58 - fi
59 0 deleted file mode 100644
@@ -1,130 +0,0 @@
1 -pkgname: linux
2 -pkgver: '7.1.8'
3 -pkgrel: '1'
4 -pkgdesc: 'Pagan Linux kernel (rolling) – jądro, moduły, System.map i config z lokalnym dostrojeniem Pagan.'
5 -url: 'https://www.kernel.org/'
6 -arch: x86_64
7 -license:
8 -- GPL-2.0-only
9 -depends: []
10 -makedepends:
11 -- bc
12 -- kmod
13 -- elfutils
14 -- python
15 -- openssl
16 -- flex
17 -- bison
18 -- perl
19 -- cpio
20 -- 'util-linux'
21 -
22 -source:
23 -- 'https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-${pkgver}.tar.xz'
24 -
25 -sha256sums:
26 -- SKIP
27 -
28 -build: |
29 - cd linux-${pkgver}
30 -
31 - # === Konfiguracja Pagan (identyczna jak w build-pagan.sh) ===
32 - make defconfig
33 -
34 - ./scripts/config --set-str CONFIG_LOCALVERSION "-pagan"
35 - ./scripts/config --disable CONFIG_LOCALVERSION_AUTO
36 - ./scripts/config --disable CONFIG_WERROR
37 -
38 - # Preemption i scheduling (desktop)
39 - ./scripts/config --enable CONFIG_PREEMPT
40 - ./scripts/config --disable CONFIG_PREEMPT_VOLUNTARY
41 - ./scripts/config --set-val CONFIG_HZ 1000
42 - ./scripts/config --enable CONFIG_SCHED_HRTICK
43 -
44 - # Moduły
45 - ./scripts/config --enable CONFIG_MODULES
46 - ./scripts/config --enable CONFIG_MODULE_UNLOAD
47 - ./scripts/config --enable CONFIG_MODULE_FORCE_UNLOAD
48 - ./scripts/config --enable CONFIG_MODVERSIONS
49 - ./scripts/config --disable CONFIG_MODULE_SIG
50 -
51 - # EFI
52 - ./scripts/config --enable CONFIG_EFI
53 - ./scripts/config --enable CONFIG_EFI_STUB
54 -
55 - # KVM
56 - ./scripts/config --enable CONFIG_VIRTUALIZATION
57 - ./scripts/config --enable CONFIG_KVM
58 - ./scripts/config --enable CONFIG_KVM_INTEL
59 - ./scripts/config --enable CONFIG_KVM_AMD
60 -
61 - # WiFi (moduły)
62 - ./scripts/config --enable CONFIG_WIRELESS
63 - ./scripts/config --module CONFIG_CFG80211
64 - ./scripts/config --module CONFIG_MAC80211
65 - ./scripts/config --module CONFIG_IWLWIFI
66 - ./scripts/config --module CONFIG_IWLMVM
67 - ./scripts/config --module CONFIG_ATH9K
68 - ./scripts/config --module CONFIG_ATH10K
69 - ./scripts/config --module CONFIG_RTW88
70 - ./scripts/config --module CONFIG_BRCMFMAC
71 -
72 - # Live ISO / dysk (squashfs + overlay + ISO9660 + loop) – w jądrze
73 - ./scripts/config --enable CONFIG_BLK_DEV_LOOP
74 - ./scripts/config --enable CONFIG_SQUASHFS
75 - ./scripts/config --enable CONFIG_SQUASHFS_XZ
76 - ./scripts/config --enable CONFIG_SQUASHFS_ZSTD
77 - ./scripts/config --enable CONFIG_OVERLAY_FS
78 - ./scripts/config --enable CONFIG_ISO9660_FS
79 - ./scripts/config --enable CONFIG_JOLIET
80 - ./scripts/config --enable CONFIG_ZISOFS
81 - ./scripts/config --enable CONFIG_UDF_FS
82 - ./scripts/config --enable CONFIG_EFI_FS
83 - ./scripts/config --enable CONFIG_EFI_PARTITION
84 - ./scripts/config --enable CONFIG_NLS_UTF8
85 - ./scripts/config --enable CONFIG_NLS_CODEPAGE_437
86 - ./scripts/config --enable CONFIG_DEVTMPFS
87 - ./scripts/config --enable CONFIG_DEVTMPFS_MOUNT
88 - ./scripts/config --enable CONFIG_TMPFS
89 -
90 - make olddefconfig
91 -
92 - # === Kompilacja ===
93 - make -j$(nproc) bzImage
94 - make -j$(nproc) modules
95 -
96 -package: |
97 - cd linux-${pkgver}
98 -
99 - # Moduły do PKGDIR/usr (usrmerge: /lib → usr/lib)
100 - make INSTALL_MOD_PATH="${PKGDIR}/usr" modules_install
101 -
102 - # Jądro + System.map + config do /boot
103 - install -Dm644 arch/x86/boot/bzImage "${PKGDIR}/boot/vmlinuz-${pkgver}-pagan"
104 - ln -sf "vmlinuz-${pkgver}-pagan" "${PKGDIR}/boot/vmlinuz-linux"
105 - install -Dm644 System.map "${PKGDIR}/boot/System.map-${pkgver}-pagan"
106 - ln -sf "System.map-${pkgver}-pagan" "${PKGDIR}/boot/System.map"
107 - install -Dm644 .config "${PKGDIR}/boot/config-${pkgver}-pagan"
108 -
109 - # Absolutne symlinki build/source z modules_install są blokowane przez pag
110 - # (security) – tworzymy je w hooku post-install po instalacji linux-headers.
111 - rm -f "${PKGDIR}/usr/lib/modules/${pkgver}-pagan/build" \
112 - "${PKGDIR}/usr/lib/modules/${pkgver}-pagan/source"
113 -
114 -hooks:
115 - 'post-install': |
116 - # Po aktualizacji jądra: przebuduj initramfs + GRUB (rolling bez nowego ISO).
117 - KV="$(uname -r 2>/dev/null)"
118 - # build symlink do nagłówków (jeśli linux-headers jest zainstalowany)
119 - if [ -d "/usr/src/linux-headers-${KV}" ] && [ -d "/usr/lib/modules/${KV}" ]; then
120 - ln -sfn "/usr/src/linux-headers-${KV}" "/usr/lib/modules/${KV}/build"
121 - ln -sfn "/usr/src/linux-headers-${KV}" "/usr/lib/modules/${KV}/source"
122 - fi
123 - if command -v pagan-initramfs >/dev/null 2>&1; then
124 - pagan-initramfs
125 - elif command -v pag >/dev/null 2>&1; then
126 - pag initramfs-update
127 - fi
128 - if command -v pag >/dev/null 2>&1; then
129 - pag grub-update
130 - fi
131 0 deleted file mode 100644
@@ -1,43 +0,0 @@
1 -pkgname: nvidia-kernel
2 -pkgver: '610.57.04'
3 -pkgrel: '1'
4 -pkgdesc: 'Moduły jądra NVIDIA (open-gpu-kernel-modules) dla kernela Pagan Linux. Budowane pod bieżącą wersję jądra – po aktualizacji jądra przebuduj ten pakiet.'
5 -url: 'https://github.com/NVIDIA/open-gpu-kernel-modules'
6 -arch: x86_64
7 -license:
8 -- GPL-2.0-only
9 -depends:
10 -- nvidia
11 -- linux
12 -makedepends:
13 -- linux-headers
14 -- kmod
15 -
16 -source:
17 -- 'https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/${pkgver}.tar.gz'
18 -
19 -sha256sums:
20 -- SKIP
21 -
22 -build: |
23 - cd open-gpu-kernel-modules-${pkgver}
24 - KV=$(ls -d /usr/src/linux-headers-* 2>/dev/null | sed 's|.*linux-headers-||' | head -n1)
25 - [ -n "$KV" ] || { echo "BŁĄD: brak linux-headers (linux-headers musi być zainstalowany)"; exit 1; }
26 - make -j$(nproc) modules \
27 - SYSSRC="/usr/src/linux-headers-${KV}" \
28 - SYSOUT="/usr/src/linux-headers-${KV}"
29 -
30 -package: |
31 - cd open-gpu-kernel-modules-${pkgver}
32 - KV=$(ls -d /usr/src/linux-headers-* 2>/dev/null | sed 's|.*linux-headers-||' | head -n1)
33 - make modules_install \
34 - SYSSRC="/usr/src/linux-headers-${KV}" \
35 - SYSOUT="/usr/src/linux-headers-${KV}" \
36 - DESTDIR="${PKGDIR}"
37 -
38 -hooks:
39 - 'post-install': |
40 - # Odśwież initramfs (moduły nvidia w initramfs dla wcześniejszego startu)
41 - if command -v pagan-initramfs >/dev/null 2>&1; then
42 - pagan-initramfs
43 - fi
44 0 deleted file mode 100644
@@ -1,84 +0,0 @@
1 -pkgname: paganlinux
2 -pkgver: '0.0.1'
3 -pkgrel: '1'
4 -pkgdesc: 'Base system of PaganLinux, contains all folders and startup scripts.'
5 -url: 'https://paganlinux.eu'
6 -arch: x86_64
7 -depends: []
8 -makedepends:
9 -- zstd
10 -- 'util-linux'
11 -
12 -source:
13 -- 'https://paganlinux.eu/static/pagan-loki-pingwin.png'
14 -- 'https://download.sourceforge.net/pagan/files/paganlinux-${pkgver}.tar.xz'
15 -
16 -sha256sums:
17 -- SKIP
18 -- SKIP
19 -
20 -footprint: |
21 - drwxr-xr-x root/root bin/
22 - -rwxr-xr-x root/root bin/which
23 - drwxr-xr-x root/root etc/
24 - lrwxrwxrwx root/root etc/mtab -> ../proc/self/mounts
25 - drwxr-xr-x root/root lib/
26 - lrwxrwxrwx root/root lib/lsb -> services
27 - drwxr-xr-x root/root lib/services/
28 - -rwxr-xr-x root/root lib/services/init-functions
29 - -rw-r--r-- root/root lib/services/init.in
30 - drwxr-xr-x root/root lib/services/setup-paganlinux/
31 - -rw-r--r-- root/root lib/services/setup-paganlinux/setup-paganlinux.locales.gz
32 - drwx------ root/root root/
33 - lrwxrwxrwx root/root root/bashrc -> ../etc/bashrc
34 - lrwxrwxrwx root/root root/profile.d -> ../etc/profile.d
35 - drwxr-xr-x root/root sbin/
36 - lrwxrwxrwx root/root sbin/chroot-paganlinux -> install-paganlinux
37 - -rwxr-xr-x root/root sbin/flushmem
38 - lrwxrwxrwx root/root sbin/generate-paganlinux -> install-paganlinux
39 - -rwxr-xr-x root/root sbin/genfstab
40 - -rwxr-xr-x root/root sbin/install-paganlinux
41 - -rwxr-xr-x root/root sbin/mkinitramfs
42 - -rwxr-xr-x root/root sbin/setup-paganlinux
43 - -rwxr-xr-x root/root sbin/unsquash-paganlinux
44 - drwxr-xr-x root/root usr/
45 - drwxr-xr-x root/root usr/share/
46 - drwxr-xr-x root/root usr/share/icons/
47 - drwxr-xr-x root/root usr/share/icons/hicolor/
48 - drwxr-xr-x root/root usr/share/icons/hicolor/128x128/
49 - drwxr-xr-x root/root usr/share/icons/hicolor/128x128/places/
50 - -rw-r--r-- root/root usr/share/icons/hicolor/128x128/places/paganlinux.png
51 - drwxr-xr-x root/root var/
52 - lrwxrwxrwx root/root var/lock -> /run/lock
53 - drwxr-xr-x root/root var/log/
54 - lrwxrwxrwx root/root var/run -> /run
55 -
56 -footprint_paganlinux_man: |
57 - drwxr-xr-x root/root usr/share/man/
58 - drwxr-xr-x root/root usr/share/man/man1/
59 - -rw-r--r-- root/root usr/share/man/man1/paganlinux.1.gz
60 - drwxr-xr-x root/root usr/share/man/man8/
61 - -rw-r--r-- root/root usr/share/man/man8/genfstab.8.gz
62 -
63 -hooks:
64 - 'post-install': |
65 - if [ -f usr/lib/os-release ]; then
66 - sed -i "/VERSION/d" usr/lib/os-release
67 - sed -i "/URL/d" usr/lib/os-release
68 - sed -i "/LOGO/d" usr/lib/os-release
69 - echo "VERSION=systemd
70 - VERSION_ID="0.0.1"
71 - LOGO=paganlinux.png
72 - HOME_URL="https://paganlinux.eu"" >> usr/lib/os-release
73 - fi
74 -
75 -build: |
76 - cd paganlinux-${pkgver}
77 - [ -z "$patchname" ] || patch -Np1 -i ../$patchname
78 - make DESTDIR=${PKGDIR} install
79 - # post-install autogen
80 -
81 -package: |
82 - # Logo ze źródła (source[0]) -> ikona dystrybucji
83 - install -Dm644 pagan-loki-pingwin.png \
84 - ${PKGDIR}/usr/share/icons/hicolor/128x128/places/paganlinux.png