Skip to content

Commit 7b7f43d

Browse files
Xdaviuspre-commit-ci[bot]oklopfer
authored
add: modprobed-db (#6235)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: oklopfer <[email protected]>
1 parent 1c84d24 commit 7b7f43d

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed

packagelist

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ minecraft-launcher-deb
307307
minecraft-pi-reborn-app
308308
mint-themes
309309
mobile-usb-networking-deb
310+
modprobed-db
310311
moka-icon-theme
311312
mold-bin
312313
ms-teams-deb

packages/modprobed-db/.SRCINFO

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
pkgbase = modprobed-db
2+
gives = modprobed-db
3+
pkgver = 2.47
4+
pkgdesc = Keeps track of EVERY kernel module ever used - useful for make localmodconfig
5+
url = https://wiki.archlinux.org/index.php/Modprobed-db
6+
depends = kmod
7+
optdepends = sudo: needed for recall function
8+
breaks = modprobed_db
9+
replaces = modprobed_db
10+
replaces = modprobed-db-git
11+
license = MIT
12+
maintainer = xdavius <[email protected]>
13+
source = https://github.com/graysky2/modprobed-db/archive/v2.47.tar.gz
14+
sha256sums = fef19759fda476134bec718d997bcb2a0c43d0a19b72f8f9e38bba22c746531d
15+
16+
pkgname = modprobed-db
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
pkgname="modprobed-db"
2+
gives="modprobed-db"
3+
pkgver="2.47"
4+
pkgdesc="Keeps track of EVERY kernel module ever used - useful for make localmodconfig"
5+
license=("MIT")
6+
depends=("kmod")
7+
optdepends=('sudo: needed for recall function')
8+
replaces=("modprobed_db" "${pkgname}-git")
9+
breaks=("modprobed_db")
10+
url='https://wiki.archlinux.org/index.php/Modprobed-db'
11+
source=("https://github.com/graysky2/${gives}/archive/v${pkgver}.tar.gz")
12+
sha256sums=('fef19759fda476134bec718d997bcb2a0c43d0a19b72f8f9e38bba22c746531d')
13+
maintainer=("xdavius <[email protected]>")
14+
15+
build() {
16+
cd "${_archive}"
17+
make -j"${NCPU}"
18+
}
19+
20+
package() {
21+
cd "${_archive}"
22+
make DESTDIR="${pkgdir}" install
23+
install -Dm644 MIT "${pkgdir}/usr/share/licenses/${gives}/LICENSE"
24+
}
25+
26+
post_install() {
27+
function ecrire_en_orange() {
28+
local ORANGE="\033[0;33m"
29+
local BLANC="\033[0;37m"
30+
local texte=$1
31+
echo -e "${ORANGE}${texte}${BLANC}"
32+
}
33+
ecrire_en_orange '
34+
-----------------------------------------------------------------------------------------------------------------------------'
35+
ecrire_en_orange '
36+
--> The system service and timer have been deprecated in favor of user flavors.'
37+
ecrire_en_orange '--> See the manpage of modprobed for details.'
38+
ecrire_en_orange '
39+
- Create your fist database by running :'
40+
echo '
41+
modprobed-db && modprobed-db store'
42+
43+
ecrire_en_orange '
44+
- Recommended modules need to be added manualy to your .config/modprobed.db file'
45+
echo '
46+
ext4, fat, vfat: to support common file systems and the EFI system partition
47+
loop: to mount a file as a file system
48+
isofs: to mount ISO files
49+
cifs: for network filesystems like Samba
50+
efivarfs: for mounting the UEFI#UEFI variables file system
51+
usb_storage: to support USB storage devices
52+
usbhid: to support USB input devices'
53+
ecrire_en_orange '
54+
- Add all this module in one command :
55+
'
56+
cat << 'EOF'
57+
echo -e "ext4\nfat\nvfat\nloop\nisofs\ncifs\nefivarfs\nusb_storage\nusbhid" >> /home/${LOGNAME}/.config/modprobed.db
58+
EOF
59+
ecrire_en_orange '
60+
-----------------------------------------------------------------------------------------------------------------------------'
61+
}

srclist

+17
Original file line numberDiff line numberDiff line change
@@ -5991,6 +5991,23 @@ pkgbase = mobile-usb-networking-deb
59915991

59925992
pkgname = mobile-usb-networking-deb
59935993
---
5994+
pkgbase = modprobed-db
5995+
gives = modprobed-db
5996+
pkgver = 2.47
5997+
pkgdesc = Keeps track of EVERY kernel module ever used - useful for make localmodconfig
5998+
url = https://wiki.archlinux.org/index.php/Modprobed-db
5999+
depends = kmod
6000+
optdepends = sudo: needed for recall function
6001+
breaks = modprobed_db
6002+
replaces = modprobed_db
6003+
replaces = modprobed-db-git
6004+
license = MIT
6005+
maintainer = xdavius <[email protected]>
6006+
source = https://github.com/graysky2/modprobed-db/archive/v2.47.tar.gz
6007+
sha256sums = fef19759fda476134bec718d997bcb2a0c43d0a19b72f8f9e38bba22c746531d
6008+
6009+
pkgname = modprobed-db
6010+
---
59946011
pkgbase = moka-icon-theme
59956012
pkgver = 5.4.0
59966013
pkgdesc = Moka is a stylized FreeDesktop icon set, created with simplicity in mind.

0 commit comments

Comments
 (0)