udisk depent

This commit is contained in:
bayramkarahan committed 2023-05-21 22:09:51 +03:00
1 parent 894eb7d477
commit 638295752d
24 files changed
+756

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
if (( "$(vercmp "$2" 0.19.20121005)" < 0 )); then
echo 'btrfs multi-device support now relies on linux 3.6 or later'
elif (( "$(vercmp "$2" 4.3.1-2)" < 0 )); then
echo 'btrfs-scrub@.timer instance names must not be prefix by dash anymore'
echo 'use btrfs-scrub@-.timer to scrub / monthly'
echo ' btrfs-scrub@home.timer to scrub /home monthly.'
fi
}
# vim:set ts=2 sw=2 et:
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Btrfs scrub on %f
ConditionPathIsMountPoint=%f
RequiresMountsFor=%f
[Service]
Nice=19
IOSchedulingClass=idle
KillSignal=SIGINT
ExecStart=/usr/bin/btrfs scrub start -B %f
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Monthly Btrfs scrub on %f
[Timer]
OnCalendar=monthly
AccuracySec=1d
RandomizedDelaySec=1w
Persistent=true
[Install]
WantedBy=timers.target
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/ash
run_hook() {
btrfs device scan
}
# vim: set ft=sh ts=4 sw=4 et:
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
build() {
add_module btrfs
add_binary btrfs
add_binary btrfsck
add_runscript
}
help() {
cat <<HELPEOF
This hook provides support for multi-device btrfs volumes. This hook
is only needed for initramfs images which do not use udev.
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et:
+72
View File
@@ -0,0 +1,72 @@
#!/usr/bin/env bash
name='btrfs-progs'
release='1'
version='6.3'
url='https://github.com/storaged-project/libblockdev'
description='A library for manipulating block devices'
email='bayramk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://github.com/kdave/btrfs-progs/archive/refs/tags/v6.3.tar.gz"
'initcpio-install-btrfs'
'initcpio-hook-btrfs'
'btrfs-scrub@.service'
'btrfs-scrub@.timer'
)
depends=( e2fsprogs zlib libgcrypt libzstd)
makedepends=()
md5sums=('4806f9346f55cfbea44f9e423541e17c'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
group=(sys.fs)
uses=()
arch=('x86_64')
install=btrfs-progs.install
options=(!staticlibs)
cd $name-$version
prepare() {
# apply patch from the source array (should be a pacman feature)
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
}
setup(){
./autogen.sh
./configure --prefix=/usr \
--libdir=/usr/lib64/ --with-crypto=libgcrypt \
--disable-zstd \
--disable-py3-sphinx
}
build(){
make $jobs
}
package(){
make DESTDIR="$DESTDIR" install install_python
# install bash completion (FS#44618)
install -Dm644 btrfs-completion "$DESTDIR/usr/share/bash-completion/completions/btrfs"
# install mkinitcpio hooks
# cd "$srcdir"
install -Dm644 ../initcpio-hook-btrfs "$DESTDIR/usr/lib/initcpio/hooks/btrfs"
install -Dm644 ../initcpio-install-btrfs "$DESTDIR/usr/lib/initcpio/install/btrfs"
# install scrub service/timer
install -Dm644 ../btrfs-scrub@.service "$DESTDIR/usr/lib/systemd/system/btrfs-scrub@.service"
install -Dm644 ../btrfs-scrub@.timer "$DESTDIR/usr/lib/systemd/system/btrfs-scrub@.timer"
}
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
name='dosfstools'
release='1'
version='4.2'
url='https://github.com/dosfstools/dosfstools'
description='DOS filesystem tools - provides mkdosfs, mkfs.msdos, mkfs.vfat'
email='bayramk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://github.com/dosfstools/dosfstools/archive/refs/tags/v$version.tar.gz")
depends=()
makedepends=()
md5sums=('233cb9fd8827f849381f9cb5f0c56c90')
group=(sys.fs)
uses=()
arch=('x86_64')
cd $name-$version
setup(){
./autogen.sh
./configure --prefix=/usr \
--libdir=/usr/lib64/ \
--enable-compat-symlinks
}
build(){
make $jobs
}
package(){
make install $jobs
}
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
name='xfsprogs'
release='1'
version='6.2.0'
url='https://xfs.wiki.kernel.org/'
description='XFS filesystem utilities'
email='bayramk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-6.2.0.tar.xz")
depends=(inih liburcu)
makedepends=()
md5sums=('c6578f1726eaff001da1d73a0394905c')
group=(sys.fs)
uses=()
arch=('x86_64')
cd $name-$version
setup(){
make configure
#export OPTIMIZER="-march=${CARCH/_/-} -O1"
export DEBUG=-DNDEBUG
./configure --prefix=/usr --libdir=/usr/lib64/ --sbindir=/usr/bin
}
build(){
make $jobs
}
package(){
# make install $jobs
make DIST_ROOT="${DESTDIR}" PKG_ROOT_SBIN_DIR="/usr/bin" install install-dev
chown -R root "$DESTDIR"
chgrp -R root "$DESTDIR"
# add hack as we cannot set rootlibdir
mv "${DESTDIR}"/lib64/libhandle.so* "${DESTDIR}/usr/lib64/"
rm -rf "${DESTDIR}/lib64"
}