diff options
Diffstat (limited to 'system/zfs-on-linux/zfs-on-linux.SlackBuild')
-rw-r--r-- | system/zfs-on-linux/zfs-on-linux.SlackBuild | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/zfs-on-linux/zfs-on-linux.SlackBuild b/system/zfs-on-linux/zfs-on-linux.SlackBuild index 0dcf4c72fc585..c6ec1a908c8ef 100644 --- a/system/zfs-on-linux/zfs-on-linux.SlackBuild +++ b/system/zfs-on-linux/zfs-on-linux.SlackBuild @@ -28,11 +28,11 @@ PRGNAM=zfs-on-linux SRCNAM=zfs -VERSION=${VERSION:-0.7.4} +VERSION=${VERSION:-0.7.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -LINUXPATH=${LINUXPATH:-/usr/src/linux} -KERN=$(cut -d '"' -f2 $LINUXPATH/include/generated/utsrelease.h | tr - _) + +KERN=${KERN:-"$(uname -r)"} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -87,8 +87,8 @@ CFLAGS="$SLKCFLAGS" \ --includedir=/usr/include \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --with-linux=$LINUXPATH \ - --with-linux-obj=$LINUXPATH \ + --with-linux="/lib/modules/${KERN}/source" \ + --with-linux-obj="/lib/modules/${KERN}/source" \ --with-udevdir=/lib/udev \ --enable-static=no \ --build=$ARCH-slackware-linux |