#Maintainer: Ejis #Anything commented out is optional and can be deleted. #Mandatory category=extra/a pkgname=crypto-modules-extra-rt pkgver=2.6.29.5.rt21 pkgrel=1 zenver=62 arch=i486 #source=("") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/ejis/$category/$pkgname/ doinst() { depmod -a } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "crypto-modules-extra-rt (Extra Cryptographic Kernel Modules)" "A collection of extra cryptograhic kernel modules" "needed by some applications to work perfectly." "" "This package is made for kernel-rt." ) build() { mkdir -p $startdir/pkg/lib/modules/$(uname -r)/kernel/crypto/ cd /usr/src/linux-$(uname -r) echo "Creating twofish_common module..." make CONFIG_CRYPTO_TWOFISH_COMMON=m M=crypto/ #Create twofish module echo "Creating twofish module..." make CONFIG_CRYPTO_TWOFISH=m M=crypto/ #Create rmd160 module echo "Creating rmd160 module..." make CONFIG_CRYPTO_RMD160=m M=crypto/ #Create serpent module echo "Creating serpent module..." make CONFIG_CRYPTO_SERPENT=m M=crypto/ #Create gf128mul module echo "Creating gf128mul module..." make CONFIG_CRYPTO_GF128MUL=m M=crypto/ #Create wp512 module echo "Creating serpent module..." make CONFIG_CRYPTO_WP512=m M=crypto/ #Create xts module echo "Creating xts module..." make CONFIG_CRYPTO_XTS=m M=crypto/ echo "Creation of cryptograhic modules done!" echo "Copying extra cryptographic kernel modules..." install -m0644 /usr/src/linux-$(uname -r)/crypto/twofish*.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/crypto install -m0644 /usr/src/linux-$(uname -r)/crypto/rmd160.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/crypto install -m0644 /usr/src/linux-$(uname -r)/crypto/serpent.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/crypto install -m0644 /usr/src/linux-$(uname -r)/crypto/gf128mul.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/crypto install -m0644 /usr/src/linux-$(uname -r)/crypto/wp512.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/crypto install -m0644 /usr/src/linux-$(uname -r)/crypto/xts.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/crypto echo "Finished!" }