|
| 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 | +} |
0 commit comments