Browse Source

Initial commit

master
mid-kid 8 years ago
commit
9d01bc26ec
  1. 2
      binutils-ROCKET.TXT
  2. 2
      glib2-ROCKET.TXT
  3. 2
      gtk+2-ROCKET.TXT
  4. 128
      kernel.SlackBuild
  5. 8
      readme.txt

2
binutils-ROCKET.TXT

@ -0,0 +1,2 @@
Modifications:
- Apply a fix for https://sourceware.org/bugzilla/show_bug.cgi?id=19775.

2
glib2-ROCKET.TXT

@ -0,0 +1,2 @@
Modifications:
- Applied glib-thumbnailer.patch which is required by the patched gtk+2. Requires tumbler.

2
gtk+2-ROCKET.TXT

@ -0,0 +1,2 @@
Modifications:
- Applied gtk2-filechooser-icon-view.patch which adds support for an icon view.

128
kernel.SlackBuild

@ -0,0 +1,128 @@
#!/bin/sh -e
PKGNAM=${PKGNAM:-linux}
BASEVER=${BASEVER:-4.4.29}
VERSION=${VERSION:-4.4.29}
ARCH=${ARCH:-x86_64}
KARCH=${KARCH:-x86}
BUILD=${BUILD:-1_slack14.2}
CWD=$(pwd)
TMP=${TMP:-/tmp/kernel}
PKG=$TMP/package
NUMJOBS=${NUMJOBS:-" -j7 "}
export VERSION ARCH BUILD TMP
mkdir -p $TMP
cd $TMP
rm -rf $PKGNAM-$BASEVER $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$BASEVER.tar.xz
# Apply incremental patches
#mv $PKGNAM-$BASEVER $PKGNAM-$VERSION
#cd $PKGNAM-$VERSION
#xz -cd $CWD/patch-4.4.29-30.xz | patch -p1 --verbose
# Build kernel-headers
cd $TMP/$PKGNAM-$VERSION
rm -rf $PKG
mkdir -p $PKG/usr
make $NUMJOBS INSTALL_HDR_PATH=$PKG/usr headers_install
find $PKG/usr -type f -a ! -name '*.h' -delete
rm -rf $PKG/usr/include/drm
mv $PKG/usr/include/asm{,-x86}
ln -sf asm-x86 $PKG/usr/include/asm
mkdir -p $PKG/install
cat $CWD/kernel-headers/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/kernel-headers-$VERSION-$KARCH-$BUILD.txz
# Build kernel-huge
cd $TMP/$PKGNAM-$VERSION
make $NUMJOBS mrproper
cat $CWD/config-$ARCH/config-huge-* > .config
make $NUMJOBS oldconfig
make $NUMJOBS bzImage
rm -rf $PKG
mkdir -p $PKG
cp arch/$KARCH/boot/bzImage $PKG
cp System.map $PKG
cp .config $PKG/config
cp $CWD/packaging-$ARCH/kernel-huge/kernel-huge.SlackBuild $PKG
cp $CWD/packaging-$ARCH/kernel-huge/slack-desc $PKG
cd $PKG
./kernel-huge.SlackBuild
# Build kernel-generic
cd $TMP/$PKGNAM-$VERSION
make $NUMJOBS mrproper
cat $CWD/config-$ARCH/config-generic-* > .config
make $NUMJOBS oldconfig
make $NUMJOBS bzImage
rm -rf $PKG
mkdir -p $PKG
cp arch/$KARCH/boot/bzImage $PKG
cp System.map $PKG
cp .config $PKG/config
cp $CWD/packaging-$ARCH/kernel-generic/kernel-generic.SlackBuild $PKG
cp $CWD/packaging-$ARCH/kernel-generic/slack-desc $PKG
cd $PKG
./kernel-generic.SlackBuild
# Build kernel-modules
cd $TMP/$PKGNAM-$VERSION
make $NUMJOBS modules
rm -rf $PKG
mkdir -p $PKG
make $NUMJOBS INSTALL_MOD_PATH=$PKG modules_install
rm -f $PKG/lib/modules/$VERSION/{build,source}
ln -s /usr/src/$PKGNAM-$VERSION $PKG/lib/modules/$VERSION/build
ln -s /usr/src/$PKGNAM-$VERSION $PKG/lib/modules/$VERSION/source
cp $CWD/packaging-$ARCH/kernel-modules/kernel-modules.SlackBuild $PKG
cp $CWD/packaging-$ARCH/kernel-modules/slack-desc $PKG
sed -i -e 's@/lib/modules/${KERNELRELEASE}@$CWD&@' $PKG/kernel-modules.SlackBuild
cd $PKG
KERNELRELEASE=$VERSION ./kernel-modules.SlackBuild
# Build kernel-source
cd $TMP/$PKGNAM-$VERSION
make $NUMJOBS clean
make $NUMJOBS prepare
rm .version .config.old
rm -rf $PKG
mkdir -p $PKG/usr/src
ln -s $PKGNAM-$VERSION $PKG/usr/src/$PKGNAM
mkdir -p $PKG/install
cat $CWD/kernel-source/slack-desc > $PKG/install/slack-desc
cd $PKG
mv $TMP/$PKGNAM-$VERSION usr/src
/sbin/makepkg -l y -c n $TMP/kernel-source-$VERSION-noarch-$BUILD.txz
# Build kernel-firmware
exit
cd $TMP
rm -rf $PKG
mkdir -p $PKG
cp -a $CWD/kernel-firmware $PKG
sed -i -e 's/git clone/& --depth=1/' $PKG/kernel-firmware/kernel-firmware.SlackBuild
cd $PKG/kernel-firmware
unset VERSION
./kernel-firmware.SlackBuild

8
readme.txt

@ -0,0 +1,8 @@
This repo contains all my slackware modifications of the base install.
Additional packages are contained in RocketLinux and built in a non-standard manner.
This branch contains general bookkeeping information about the entire repo.
Right now, it's populated by .TXT files, containing ideas I will later implement.
There's also a kernel.SlackBuild, which I could use to build a new, nearly-identical slackware kernel.
Loading…
Cancel
Save