Browse Source

Fix kernel.SlackBuild for 14.1

master
mid-kid 7 years ago
parent
commit
baa24fdcf9
  1. 5
      convert32pkg.sh
  2. 11
      kernel.SlackBuild

5
convert32pkg.sh

@ -108,8 +108,9 @@ if [ -f install/doinst.sh ]; then
sed -i -e '/^if \[ \(-e etc\/rc.d\/rc.messagebus\|-r etc\/rc.d\/rc.messagebus.new\) \]; then/,/^fi/d' install/doinst.sh sed -i -e '/^if \[ \(-e etc\/rc.d\/rc.messagebus\|-r etc\/rc.d\/rc.messagebus.new\) \]; then/,/^fi/d' install/doinst.sh
fi fi
# Extract all lines treating with symlinks. See /sbin/removepkg # Extract all lines treating with symlinks or config files. See /sbin/removepkg
sed -n -e 's,^[ ]*( [ ]*cd[ ]* .* [ ]*; [ ]*\(rm\|ln\) [ ]*-\(rf\|sf\)[ ]* .* [ ]*)[ ]*$,&,p' -e 's,^[ ]*config .*[ ]*$,&,p' install/doinst.64 > install/doinst sed -n -e 's,^[ ]*( [ ]*cd[ ]* .* [ ]*; [ ]*\(rm\|ln\) [ ]*-\(rf\|sf\)[ ]* .* [ ]*)[ ]*$,&,p' \
-e 's,^[ ]*config .*[ ]*$,&,p' install/doinst.64 > install/doinst
rm install/doinst.64 rm install/doinst.64
echo echo

11
kernel.SlackBuild

@ -119,8 +119,7 @@ cp System.map $PKG
cp .config $PKG/config cp .config $PKG/config
# Copy the packaging SlackBuild # Copy the packaging SlackBuild
cp $CWD/packaging-$ARCH/kernel-huge/kernel-huge.SlackBuild $PKG cp -aT $CWD/packaging-$ARCH/kernel-huge $PKG
cp $CWD/packaging-$ARCH/kernel-huge/slack-desc $PKG
# Run the packaging SlackBuild # Run the packaging SlackBuild
cd $PKG cd $PKG
@ -147,8 +146,7 @@ cp System.map $PKG
cp .config $PKG/config cp .config $PKG/config
# Copy the packaging SlackBuild # Copy the packaging SlackBuild
cp $CWD/packaging-$ARCH/kernel-generic/kernel-generic.SlackBuild $PKG cp -aT $CWD/packaging-$ARCH/kernel-generic $PKG
cp $CWD/packaging-$ARCH/kernel-generic/slack-desc $PKG
# Run the packaging SlackBuild # Run the packaging SlackBuild
cd $PKG cd $PKG
@ -175,11 +173,10 @@ ln -s /usr/src/$PKGNAM-$VERSION $PKG/lib/modules/$VERSION/build
ln -s /usr/src/$PKGNAM-$VERSION $PKG/lib/modules/$VERSION/source ln -s /usr/src/$PKGNAM-$VERSION $PKG/lib/modules/$VERSION/source
# Copy the packaging SlackBuild # Copy the packaging SlackBuild
cp $CWD/packaging-$ARCH/kernel-modules/kernel-modules.SlackBuild $PKG cp -aT $CWD/packaging-$ARCH/kernel-modules $PKG
cp $CWD/packaging-$ARCH/kernel-modules/slack-desc $PKG
# Prefix absolute module paths in the SlackBuild with $CWD, since we installed the modules there # Prefix absolute module paths in the SlackBuild with $CWD, since we installed the modules there
sed -i -e 's@/lib/modules/${KERNELRELEASE}@$CWD&@' $PKG/kernel-modules.SlackBuild sed -i -e 's@/lib/modules/@$CWD&@' $PKG/kernel-modules.SlackBuild
# Run the packaging SlackBuild # Run the packaging SlackBuild
cd $PKG cd $PKG

Loading…
Cancel
Save