summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Reichelt <slackbuilds@mareichelt.de>2022-10-14 04:40:58 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-15 10:47:36 +0700
commit303756abe6041eee45905e88a75b59269fb526a1 (patch)
treeb2f945a3f9775bf9b30c6f8a5bf0388001c9ac25
parent6bd278c0e8ac141bfa2f1ba619b35f6cfe46f155 (diff)
downloadslackbuilds-303756abe6041eee45905e88a75b59269fb526a1.tar.gz
system/zfs-on-linux: Removed (renamed openzfs).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/zfs-on-linux/README12
-rw-r--r--system/zfs-on-linux/doinst.sh29
-rw-r--r--system/zfs-on-linux/rc.zfs127
-rw-r--r--system/zfs-on-linux/slack-desc19
-rw-r--r--system/zfs-on-linux/zfs-on-linux.SlackBuild138
-rw-r--r--system/zfs-on-linux/zfs-on-linux.info10
6 files changed, 0 insertions, 335 deletions
diff --git a/system/zfs-on-linux/README b/system/zfs-on-linux/README
deleted file mode 100644
index 81836a27dc..0000000000
--- a/system/zfs-on-linux/README
+++ /dev/null
@@ -1,12 +0,0 @@
-ZFS is a modern filesystem originally developed for SOLARIS.
-It provides many functionalities such as snapshots, data compression,
-data recovery, filesystem (snapshot) sending/reveiving, and more.
-
-NOTE: You'll need the kernel source code to be able to compile this.
-This package is kernel dependent, so you'll need to recompile it for
-every new kernel you choose to run.
-
-Please use KERNEL environment variable if target kernel version differs
-from that's of the build machine, e.g. `export KERNEL=5.15.19`.
-
-NOTE: you should run ZFS on 64-bit systems.
diff --git a/system/zfs-on-linux/doinst.sh b/system/zfs-on-linux/doinst.sh
deleted file mode 100644
index abc7164225..0000000000
--- a/system/zfs-on-linux/doinst.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
-preserve_perms() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- if [ -e $OLD ]; then
- cp -a $OLD ${NEW}.incoming
- cat $NEW > ${NEW}.incoming
- mv ${NEW}.incoming $NEW
- fi
- config $NEW
-}
-
-preserve_perms etc/rc.d/rc.zfs.new
-
-if [ -x /sbin/depmod ]; then
- chroot . /sbin/depmod -a >/dev/null 2>&1
-fi
diff --git a/system/zfs-on-linux/rc.zfs b/system/zfs-on-linux/rc.zfs
deleted file mode 100644
index 7df2057908..0000000000
--- a/system/zfs-on-linux/rc.zfs
+++ /dev/null
@@ -1,127 +0,0 @@
-#!/bin/bash
-#
-# zfs This script will mount/umount the zfs filesystems.
-#
-# chkconfig: 2345 01 99
-# description: This script will mount/umount the zfs filesystems during
-# system boot/shutdown. Configuration of which filesystems
-# should be mounted is handled by the zfs 'mountpoint' and
-# 'canmount' properties. See the zfs(8) man page for details.
-# It is also responsible for all userspace zfs services.
-#
-### BEGIN INIT INFO
-# Provides: zfs
-# Required-Start: $local_fs
-# Required-Stop: $local_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Should-Stop:
-# Short-Description: Mount/umount the zfs filesystems
-# Description: ZFS is an advanced filesystem designed to simplify managing
-# and protecting your data. This service mounts the ZFS
-# filesystems and starts all related zfs services.
-### END INIT INFO
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-LOCKFILE=/var/lock/zfs/zfs
-ZFS="/sbin/zfs"
-ZPOOL="/sbin/zpool"
-UDEVD="/dev/disk/by-id/"
-
-# Source zfs configuration.
-[ -r '/etc/default/zfs' ] && . /etc/default/zfs
-
-[ -x "$ZPOOL" ] || exit 1
-[ -x "$ZFS" ] || exit 2
-
-start()
-{
- [ -f "$LOCKFILE" ] && return 3
-
- # Requires selinux policy which has not been written.
- if [ -r "/selinux/enforce" ] &&
- [ "$(cat /selinux/enforce)" = "1" ]; then
-
- echo "SELinux ZFS policy required"
- return 4
- fi
-
- # Delay until all required block devices are present.
- udevadm settle
-
- # Load the zfs module stack
- /sbin/modprobe zfs
-
- # Ensure / exists in /etc/mtab, if not update mtab accordingly.
- # This should be handled by rc.sysinit but lets be paranoid.
- awk '$2 == "/" { exit 1 }' /etc/mtab
- RETVAL=$?
- if [ "$RETVAL" -eq 0 ]; then
- /bin/mount -f /
- fi
-
- # Import all pools, and then mount
- # all filesystem based on their properties.
- echo "Importing ZFS pools"
- "$ZPOOL" import -d "$UDEVD" -f -aN 2>/dev/null
-
- echo "Mounting ZFS filesystems"
- "$ZFS" mount -a
-
- echo "Exporting ZFS filesystems"
- "$ZFS" share -a
-
- mkdir -p $(dirname $LOCKFILE)
- touch "$LOCKFILE"
-}
-
-stop()
-{
- [ ! -f "$LOCKFILE" ] && return 3
-
- echo "Unmounting ZFS filesystems"
- "$ZFS" umount -a
-
- rm -f "$LOCKFILE"
-}
-
-status()
-{
- [ ! -f "$LOCKFILE" ] && return 3
-
- "$ZPOOL" status && echo "" && "$ZPOOL" list
-}
-
-case "$1" in
- start)
- start
- RETVAL=$?
- ;;
- stop)
- stop
- RETVAL=$?
- ;;
- status)
- status
- RETVAL=$?
- ;;
- restart)
- stop
- start
- ;;
- condrestart)
- if [ -f "$LOCKFILE" ]; then
- stop
- start
- fi
- ;;
- *)
- echo $"Usage: $0 {start|stop|status|restart|condrestart}"
- ;;
-esac
-
-exit $RETVAL
-
-# vim: set ts=4 sts=4 sw=4 expandtab textwidth=78:
diff --git a/system/zfs-on-linux/slack-desc b/system/zfs-on-linux/slack-desc
deleted file mode 100644
index cb6c12ed88..0000000000
--- a/system/zfs-on-linux/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description.
-# Line up the first '|' above the ':' following the base package name, and
-# the '|' on the right side marks the last column you can put a character in.
-# You must make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':' except on otherwise blank lines.
-
- |-----handy-ruler------------------------------------------------------|
-zfs-on-linux: zfs-on-linux (ZFS support for Linux)
-zfs-on-linux:
-zfs-on-linux: ZFS is a combined file system and logical volume manager designed by
-zfs-on-linux: Sun Microsystems for Solaris. It features protection against data
-zfs-on-linux: corruption, support for high storage capacities, efficient data
-zfs-on-linux: compression, snapshots, copy-on-write clones, continuous integrity
-zfs-on-linux: checking and automatic repair, native encryption, block-level data
-zfs-on-linux: deduplication, ability to serialize filesystems (snapshots)
-zfs-on-linux: e.g. to send/receive them over SSH, and many, many more.
-zfs-on-linux:
-zfs-on-linux: Homepage: https://zfsonlinux.org
diff --git a/system/zfs-on-linux/zfs-on-linux.SlackBuild b/system/zfs-on-linux/zfs-on-linux.SlackBuild
deleted file mode 100644
index 5aebbfda41..0000000000
--- a/system/zfs-on-linux/zfs-on-linux.SlackBuild
+++ /dev/null
@@ -1,138 +0,0 @@
-#!/bin/bash
-
-# Slackware build script for zfs-on-linux
-
-# Copyright 2021 Markus Reichelt <slackbuilds@mareichelt.de>, Germany
-# Copyright 2017 Marcin Szychowski <szycha@gmail.com>, Poland
-# Copyright 2016 Kevin Paulus <goarilla@gmail.com>, Belgium
-# Copyright 2013-2014 Petr Hejl - Czech Republic
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# Modified by the SlackBuilds.org project
-
-cd $(dirname $0) ; CWD=$(pwd)
-
-PRGNAM=zfs-on-linux
-SRCNAM=zfs
-VERSION=${VERSION:-2.1.2}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
-PKGTYPE=${PKGTYPE:-tgz}
-
-KERNEL=${KERNEL:-"$(uname -r)"}
-PKGVER="$(printf %s "${VERSION}_${KERNEL}" | tr - _)"
-
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
-if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
-set -e
-
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -fr $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-cd $SRCNAM-$VERSION
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-env -u ARCH \
-CFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --localstatedir=/var \
- --sysconfdir=/etc \
- --libdir=/lib$LIBDIRSUFFIX \
- --bindir=/usr/bin \
- --sbindir=/sbin \
- --includedir=/usr/include \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-linux="/lib/modules/${KERNEL}/source" \
- --with-linux-obj="/lib/modules/${KERNEL}/source" \
- --with-udevdir=/lib/udev \
- --enable-static=no \
- --build=$ARCH-slackware-linux
-
-env -u ARCH make
-env -u ARCH make install DESTDIR=$PKG
-
-# no such thing here
-rm -fr $PKG/usr/lib/dracut
-# no use to keep header files; the Module.symvers file would need the correct path anyway.
-rm -r $PKG/usr/src
-
-mkdir -p $PKG/etc/rc.d/init.d
-rm -fr $PKG/etc/init.d
-install -m 0755 -D $CWD/rc.zfs $PKG/etc/rc.d/rc.zfs.new
-ln -s ../rc.zfs $PKG/etc/rc.d/init.d/zfs
-
-# create the lock directory
-mkdir -p $PKG/var/lock/zfs
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYRIGHT LICENSE META README.md NEWS NOTICE CODE_OF_CONDUCT.md \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/zfs-on-linux/zfs-on-linux.info b/system/zfs-on-linux/zfs-on-linux.info
deleted file mode 100644
index fafae2e81a..0000000000
--- a/system/zfs-on-linux/zfs-on-linux.info
+++ /dev/null
@@ -1,10 +0,0 @@
-PRGNAM="zfs-on-linux"
-VERSION="2.1.2"
-HOMEPAGE="https://zfsonlinux.org"
-DOWNLOAD="https://github.com/zfsonlinux/zfs/releases/download/zfs-2.1.2/zfs-2.1.2.tar.gz"
-MD5SUM="f7061f28aede1a2adf2cab10f2a43a14"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES=""
-MAINTAINER="Markus Reichelt"
-EMAIL="slackbuilds@mareichelt.de"