Commits

Anonymous committed e7c0b4f

Rebuild kmod

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>

Comments (0)

Files changed (1)

var/vabs/kmod/src/kmod.SlackBuild

 # Put any Patches here *NOTE this only works if all 
 # your patches use the -p1 strip option!
 #-----------------------------------------------------
-for i in $CWD/patches/*;do
-  patch -p1 <$i
-  mkdir -p $PKG/usr/doc/$NAME-$VERSION/patches/
-  cp $i $PKG/usr/doc/$NAME-$VERSION/patches/
-done
+#for i in $CWD/patches/*;do
+#  patch -p1 <$i
+#  mkdir -p $PKG/usr/doc/$NAME-$VERSION/patches/
+#  cp $i $PKG/usr/doc/$NAME-$VERSION/patches/
+#done
 #-----------------------------------------------------
  
- 
+# Fix paths in manual pages
+sed -i "s,/usr/lib,/lib,g" man/* 
 
 #SET PERMISSIONS
 #-----------------------------------------
   --sysconfdir=/etc \
   --localstatedir=/var \
   --mandir=/usr/man \
-  --with-included-gettext \
   --disable-debug \
   --program-prefix="" \
   --program-suffix="" \
-  --docdir=/usr/doc/$PKGNAM-$VERSION \
+  --docdir=/usr/doc/$NAME-$VERSION \
   --with-xz \
   --with-zlib \
   --build=$CONFIGURE_TRIPLET \
 mkdir -p $PKG/bin
 ( cd $PKG/bin ; ln -sf /sbin/lsmod . )
 
+# why slackware symlink libkmod.so.?
+#mkdir -p $PKG/etc/modprobe.d
+#mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+#mv $PKG/lib${LIBDIRSUFFIX}/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}
+#rm -f $PKG/lib${LIBDIRSUFFIX}/{*.so,*.la}
+#( cd $PKG/usr/lib${LIBDIRSUFFIX}
+#  ln -sf ../../lib${LIBDIRSUFFIX}/libkmod.so.? libkmod.so
+#)
+
 mkdir -p $PKG/etc/modprobe.d
 mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
-mv $PKG/lib${LIBDIRSUFFIX}/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}
+#mv $PKG/lib${LIBDIRSUFFIX}/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}
 rm -f $PKG/lib${LIBDIRSUFFIX}/{*.so,*.la}
 ( cd $PKG/usr/lib${LIBDIRSUFFIX}
   ln -sf libkmod.so.2.1.3 libkmod.so
 )
 
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
-cp -a AUTHORS COPYING ChangeLog Credits MANIFEST README TODO \
-$PKG/usr/doc/$NAME-$VERSION
+cp -a COPYING NEWS README TODO $PKG/usr/doc/$NAME-$VERSION
 cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
 
 #----------------------------------------------------------------------
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.