udisk depent
This commit is contained in:
1 parent
894eb7d477
commit
638295752d
24 files changed
+756
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
name='chrpath'
|
||||
release='1'
|
||||
version='0.16'
|
||||
url='https://directory.fsf.org/wiki/Chrpath'
|
||||
description='Chrpath can modify the rpath and runpath of ELF executables'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://deb.debian.org/debian/pool/main/c/chrpath/chrpath_$version.orig.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('2bf8d1d1ee345fc8a7915576f5649982')
|
||||
group=(app.admin)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
|
||||
#./configure --prefix=/usr \
|
||||
#--libdir=/usr/lib64/
|
||||
echo ""
|
||||
./configure --prefix=/usr --mandir=/usr/share/man
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make DESTDIR="${DESTDIR}" docdir=/usr/share/doc/chrpath install
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
name='inih'
|
||||
release='1'
|
||||
version='56'
|
||||
url='https://github.com/benhoyt/inih'
|
||||
description='inih (INI not invented here) simple .INI file parser'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/benhoyt/inih/archive/refs/tags/r$version.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('e27e394554d9f339b728035a5766d8f3')
|
||||
group=(dev.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-r$version
|
||||
setup(){
|
||||
meson setup build --prefix=/usr \
|
||||
--libdir=/usr/lib64/
|
||||
}
|
||||
|
||||
build(){
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
package(){
|
||||
ninja -C build install
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env bash
|
||||
name='iniparser'
|
||||
release='1'
|
||||
version='4.1'
|
||||
url='https://github.com/ndevilla/iniparser'
|
||||
description='A free stand-alone ini file parsing library'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/ndevilla/iniparser/archive/refs/tags/v$version.tar.gz")
|
||||
depends=(chrpath)
|
||||
makedepends=()
|
||||
md5sums=('e43b722c71b399ab17c329c04dbdf1d7')
|
||||
group=(dev.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
|
||||
#./configure --prefix=/usr \
|
||||
#--libdir=/usr/lib64/
|
||||
echo ""
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
install -Dm0644 src/iniparser.h "${DESTDIR}"/usr/include/iniparser.h
|
||||
install -Dm0644 src/dictionary.h "${DESTDIR}"/usr/include/dictionary.h
|
||||
install -Dm0644 libiniparser.so.1 "$DESTDIR"/usr/lib/libiniparser.so.1
|
||||
install -Dm0644 LICENSE "${DESTDIR}"/usr/share/licenses/iniparser/LICENSE
|
||||
ln -sf libiniparser.so.1 "${DESTDIR}"/usr/lib/libiniparser.so
|
||||
chrpath -d "${DESTDIR}"/usr/lib/libiniparser.so
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
name='libatasmart'
|
||||
release='1'
|
||||
version='0.19-5'
|
||||
url='https://salsa.debian.org/utopia-team/libatasmart'
|
||||
description='A small and lightweight parser library for ATA S.M.A.R.T. hard disks'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://salsa.debian.org/utopia-team/libatasmart/-/archive/debian/$version/libatasmart-debian-$version.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('24e9a399360e5d204c0eb4286dfcbc87')
|
||||
group=(dev.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-debian-$version
|
||||
setup(){
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64/
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
name='libtraceevent'
|
||||
release='1'
|
||||
version='1.7.2'
|
||||
url='https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/'
|
||||
description='Linux kernel trace event library'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-$version.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('5a8cd771ab709e7a7eb793555c7e570f')
|
||||
group=(dev.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
#./configure --prefix=/usr \
|
||||
#--libdir=/usr/lib64/
|
||||
echo ""
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
name='py3-sphinx'
|
||||
release='1'
|
||||
version='7.0.1'
|
||||
url='https://www.sphinx-doc.org/'
|
||||
description='Python documentation generator'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://pypi.org/packages/source/S/Sphinx/Sphinx-$version.tar.gz")
|
||||
depends=(python)
|
||||
makedepends=()
|
||||
md5sums=('9b5357daa219d036f1220e44bf1c9512')
|
||||
group=(dev.python)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
echo "adres: $pkgdir"
|
||||
|
||||
cd Sphinx-$version
|
||||
|
||||
build() {
|
||||
#python --skip-dependency-check --no-isolation
|
||||
echo "build"
|
||||
}
|
||||
|
||||
|
||||
package() {
|
||||
#python3 -m installer -d "$pkgdir" dist/sphinx-*.whl
|
||||
pip install .
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
name='libtrace'
|
||||
release='1'
|
||||
version='4.0.21-1'
|
||||
url='https://github.com/LibtraceTeam/libtrace'
|
||||
description='A library and tools for trace processing'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/LibtraceTeam/libtrace/archive/refs/tags/$version.tar.gz")
|
||||
depends=(wandio libpcap)
|
||||
makedepends=()
|
||||
md5sums=('b72ca1ccf9962caefe7913b3e3afaed2')
|
||||
group=(net.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
autoreconf -fvi
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64/
|
||||
echo ""
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
name='libtracefs'
|
||||
release='1'
|
||||
version='1.6.4'
|
||||
url='https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/'
|
||||
description='Linux kernel trace file system library'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-$version.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('eca92add29926d718bcdc8184358ab18')
|
||||
group=(net.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
|
||||
#./configure --prefix=/usr \
|
||||
#--libdir=/usr/lib64/
|
||||
echo ""
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
name='wandio'
|
||||
release='1'
|
||||
version='4.2.4-1'
|
||||
url='https://github.com/LibtraceTeam/wandio'
|
||||
description='C library for simple and efficient file IO'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/LibtraceTeam/wandio/archive/refs/tags/$version.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('6bacc4fe69eff6ffd747ba2b4d237edb')
|
||||
group=(net.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
autoreconf -fvi
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64/
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From f5de3401b974ce103ffd93af8f9d43505a04aaf9 Mon Sep 17 00:00:00 2001
|
||||
From: Damian Kurek <starfire24680@gmail.com>
|
||||
Date: Thu, 7 Jul 2022 03:39:16 +0000
|
||||
Subject: [PATCH] Fix NULL dereference when duplicating string argument
|
||||
|
||||
poptGetArg can return NULL if there are no additional arguments, which
|
||||
makes strdup dereference NULL on strlen
|
||||
---
|
||||
gptcl.cc | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gptcl.cc b/gptcl.cc
|
||||
index 0d578eb..ab95239 100644
|
||||
--- a/gptcl.cc
|
||||
+++ b/gptcl.cc
|
||||
@@ -155,10 +155,11 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
|
||||
} // while
|
||||
|
||||
// Assume first non-option argument is the device filename....
|
||||
- device = strdup((char*) poptGetArg(poptCon));
|
||||
- poptResetContext(poptCon);
|
||||
+ device = (char*) poptGetArg(poptCon);
|
||||
|
||||
if (device != NULL) {
|
||||
+ device = strdup(device);
|
||||
+ poptResetContext(poptCon);
|
||||
JustLooking(); // reset as necessary
|
||||
BeQuiet(); // Tell called functions to be less verbose & interactive
|
||||
if (LoadPartitions((string) device)) {
|
||||
@@ -498,6 +499,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
|
||||
cerr << "Error encountered; not saving changes.\n";
|
||||
retval = 4;
|
||||
} // if
|
||||
+ free(device);
|
||||
} // if (device != NULL)
|
||||
poptFreeContext(poptCon);
|
||||
return retval;
|
||||
@@ -0,0 +1,37 @@
|
||||
From 5d5e76d369a412bfb3d2cebb5fc0a7509cef878d Mon Sep 17 00:00:00 2001
|
||||
From: Rod Smith <rodsmith@rodsbooks.com>
|
||||
Date: Fri, 15 Apr 2022 18:10:14 -0400
|
||||
Subject: [PATCH] Fix failure & crash of sgdisk when compiled with latest popt
|
||||
(commit 740; presumably eventually release 1.19)
|
||||
|
||||
---
|
||||
gptcl.cc | 2 +-
|
||||
support.h | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gptcl.cc b/gptcl.cc
|
||||
index 34c9421..0d578eb 100644
|
||||
--- a/gptcl.cc
|
||||
+++ b/gptcl.cc
|
||||
@@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
|
||||
} // while
|
||||
|
||||
// Assume first non-option argument is the device filename....
|
||||
- device = (char*) poptGetArg(poptCon);
|
||||
+ device = strdup((char*) poptGetArg(poptCon));
|
||||
poptResetContext(poptCon);
|
||||
|
||||
if (device != NULL) {
|
||||
diff --git a/support.h b/support.h
|
||||
index 8ba9ad1..f91f1bc 100644
|
||||
--- a/support.h
|
||||
+++ b/support.h
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
|
||||
-#define GPTFDISK_VERSION "1.0.9"
|
||||
+#define GPTFDISK_VERSION "1.0.9.1"
|
||||
|
||||
#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__)
|
||||
// Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64
|
||||
@@ -0,0 +1,22 @@
|
||||
From 6a8416cbd12d55f882bb751993b94f72d338d96f Mon Sep 17 00:00:00 2001
|
||||
From: Rod Smith <rodsmith@rodsbooks.com>
|
||||
Date: Sat, 16 Apr 2022 09:32:04 -0400
|
||||
Subject: [PATCH] Updated guid.cc to deal with minor change in libuuid
|
||||
|
||||
---
|
||||
guid.cc | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/guid.cc b/guid.cc
|
||||
index 1e73ab7..d3e4fd5 100644
|
||||
--- a/guid.cc
|
||||
+++ b/guid.cc
|
||||
@@ -141,7 +141,7 @@ void GUIDData::Zero(void) {
|
||||
void GUIDData::Randomize(void) {
|
||||
int i, uuidGenerated = 0;
|
||||
|
||||
-#ifdef _UUID_UUID_H
|
||||
+#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)
|
||||
uuid_generate(uuidData);
|
||||
ReverseBytes(&uuidData[0], 4);
|
||||
ReverseBytes(&uuidData[4], 2);
|
||||
@@ -0,0 +1,57 @@
|
||||
#!/usr/bin/env bash
|
||||
name='gptfdisk'
|
||||
release='1'
|
||||
version='1.0.9'
|
||||
url='https://www.rodsbooks.com/gdisk/'
|
||||
description='GPT partition table manipulator for Linux'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://www.rodsbooks.com/gdisk/gptfdisk-$version.tar.gz"
|
||||
"popt-1.19.patch"
|
||||
"popt-1.19-follow-up.patch"
|
||||
"util-linux-2.38.patch"
|
||||
)
|
||||
depends=(popt)
|
||||
makedepends=()
|
||||
md5sums=('01c11ecfa454096543562e3068530e01'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
)
|
||||
group=(sys.apps)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
prepare() {
|
||||
patch -Np1 -i ../popt-1.19.patch
|
||||
patch -Np1 -i ../util-linux-2.38.patch
|
||||
# https://sourceforge.net/p/gptfdisk/code/merge-requests/28/
|
||||
patch -Np1 -i ../popt-1.19-follow-up.patch
|
||||
# https://sourceforge.net/p/gptfdisk/discussion/939590/thread/bc29ca06f8/
|
||||
sed -i '/^#include /s:ncursesw/::' gptcurses.cc
|
||||
}
|
||||
|
||||
|
||||
setup(){
|
||||
#./autogen.sh
|
||||
#./configure --prefix=/usr \
|
||||
#--libdir=/usr/lib64/
|
||||
echo ""
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
# make install $jobs
|
||||
#install -d "$pkgdir"/usr/{bin,share/{doc/gdisk,man/man8}}
|
||||
#install -t "$DESTDIR/usr/bin" {,c,s}gdisk fixparts
|
||||
#install -m644 -t "$pkgdir/usr/share/man/man8" {{,c,s}gdisk,fixparts}.8
|
||||
#install -m644 -t "$pkgdir/usr/share/doc/gdisk" README NEWS
|
||||
echo ""
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
name='keyutils'
|
||||
release='1'
|
||||
version='1.6.3'
|
||||
url='https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git'
|
||||
description='Linux Key Management Utilities'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-$version.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('6b70b2b381c1b6d9adfaf66d5d3e7c00')
|
||||
group=(sys.apps)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
|
||||
#./configure --prefix=/usr \
|
||||
#--libdir=/usr/lib64/
|
||||
echo ""
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
name='ndctl'
|
||||
release='1'
|
||||
version='77'
|
||||
url='https://github.com/pmem/ndctl'
|
||||
description='Helper tools and libraries for managing non-volatile memory on Linux'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/pmem/ndctl/archive/refs/tags/v$version.tar.gz")
|
||||
depends=(json-c kmod libtraceevent libtracefs keyutils iniparser)
|
||||
makedepends=()
|
||||
md5sums=('22adf45411cfbd111f4cd05f5c1012f5')
|
||||
group=(sys.block)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
setup(){
|
||||
meson setup build --prefix=/usr \
|
||||
--libdir=/usr/lib64/ \
|
||||
-Ddocs=disabled \
|
||||
-Dtest=disabled
|
||||
}
|
||||
|
||||
build(){
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
package(){
|
||||
ninja -C build install
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Monthly Btrfs scrub on %f
|
||||
|
||||
[Timer]
|
||||
OnCalendar=monthly
|
||||
AccuracySec=1d
|
||||
RandomizedDelaySec=1w
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/ash
|
||||
|
||||
run_hook() {
|
||||
btrfs device scan
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
@@ -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:
|
||||
@@ -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"
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
name='liburcu'
|
||||
release='1'
|
||||
version='0.14'
|
||||
url='https://lttng.org/urcu'
|
||||
description='LGPLv2.1 userspace RCU (read-copy-update) library'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://lttng.org/files/urcu/userspace-rcu-latest-$version.tar.bz2")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('0cd5647788b048a5d6bbdb3b08d46299')
|
||||
group=(sys.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd userspace-rcu-0.14.0
|
||||
setup(){
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64/
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user