Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: modprobed-db #6235

Merged
merged 11 commits into from
Jul 17, 2024
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ minecraft-launcher-deb
minecraft-pi-reborn-app
mint-themes
mobile-usb-networking-deb
modprobed-db
moka-icon-theme
mold-bin
ms-teams-deb
Expand Down
16 changes: 16 additions & 0 deletions packages/modprobed-db/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pkgbase = modprobed-db
gives = modprobed-db
pkgver = 2.47
pkgdesc = Keeps track of EVERY kernel module ever used - useful for make localmodconfig
url = https://wiki.archlinux.org/index.php/Modprobed-db
depends = kmod
optdepends = sudo: needed for recall function
breaks = modprobed_db
replaces = modprobed_db
replaces = modprobed-db-git
license = MIT
maintainer = xdavius <[email protected]>
source = https://github.com/graysky2/modprobed-db/archive/v2.47.tar.gz
sha256sums = fef19759fda476134bec718d997bcb2a0c43d0a19b72f8f9e38bba22c746531d

pkgname = modprobed-db
61 changes: 61 additions & 0 deletions packages/modprobed-db/modprobed-db.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
pkgname="modprobed-db"
gives="modprobed-db"
pkgver="2.47"
pkgdesc="Keeps track of EVERY kernel module ever used - useful for make localmodconfig"
license=("MIT")
depends=("kmod")
optdepends=('sudo: needed for recall function')
replaces=("modprobed_db" "${pkgname}-git")
breaks=("modprobed_db")
url='https://wiki.archlinux.org/index.php/Modprobed-db'
source=("https://github.com/graysky2/${gives}/archive/v${pkgver}.tar.gz")
sha256sums=('fef19759fda476134bec718d997bcb2a0c43d0a19b72f8f9e38bba22c746531d')
maintainer=("xdavius <[email protected]>")

build() {
cd "${_archive}"
make -j"${NCPU}"
}

package() {
cd "${_archive}"
make DESTDIR="${pkgdir}" install
install -Dm644 MIT "${pkgdir}/usr/share/licenses/${gives}/LICENSE"
}

post_install() {
function ecrire_en_orange() {
local ORANGE="\033[0;33m"
local BLANC="\033[0;37m"
local texte=$1
echo -e "${ORANGE}${texte}${BLANC}"
}
ecrire_en_orange '
-----------------------------------------------------------------------------------------------------------------------------'
ecrire_en_orange '
--> The system service and timer have been deprecated in favor of user flavors.'
ecrire_en_orange '--> See the manpage of modprobed for details.'
ecrire_en_orange '
- Create your fist database by running :'
echo '
modprobed-db && modprobed-db store'

ecrire_en_orange '
- Recommended modules need to be added manualy to your .config/modprobed.db file'
echo '
ext4, fat, vfat: to support common file systems and the EFI system partition
loop: to mount a file as a file system
isofs: to mount ISO files
cifs: for network filesystems like Samba
efivarfs: for mounting the UEFI#UEFI variables file system
usb_storage: to support USB storage devices
usbhid: to support USB input devices'
ecrire_en_orange '
- Add all this module in one command :
'
cat << 'EOF'
echo -e "ext4\nfat\nvfat\nloop\nisofs\ncifs\nefivarfs\nusb_storage\nusbhid" >> /home/${LOGNAME}/.config/modprobed.db
EOF
ecrire_en_orange '
-----------------------------------------------------------------------------------------------------------------------------'
}
17 changes: 17 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -5977,6 +5977,23 @@ pkgbase = mobile-usb-networking-deb

pkgname = mobile-usb-networking-deb
---
pkgbase = modprobed-db
gives = modprobed-db
pkgver = 2.47
pkgdesc = Keeps track of EVERY kernel module ever used - useful for make localmodconfig
url = https://wiki.archlinux.org/index.php/Modprobed-db
depends = kmod
optdepends = sudo: needed for recall function
breaks = modprobed_db
replaces = modprobed_db
replaces = modprobed-db-git
license = MIT
maintainer = xdavius <[email protected]>
source = https://github.com/graysky2/modprobed-db/archive/v2.47.tar.gz
sha256sums = fef19759fda476134bec718d997bcb2a0c43d0a19b72f8f9e38bba22c746531d

pkgname = modprobed-db
---
pkgbase = moka-icon-theme
pkgver = 5.4.0
pkgdesc = Moka is a stylized FreeDesktop icon set, created with simplicity in mind.
Expand Down
Loading