upg pacman-contrib

add ndctl
This commit is contained in:
joborun linux 2022-05-05 18:25:10 +03:00
parent 40bd669b61
commit 208612c5c5
9 changed files with 235 additions and 6 deletions

54
ndctl/PKGBUILD Normal file
View File

@ -0,0 +1,54 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# From version 73 onwards upstream uses meson and it can't be configured
# to build without systemd, it seems as it requires a build and running systemd
# So this 72.1 may be the last for this pkg, unless they decide to allow a substitute
# Do not think of Artix, and Void, and Gentoo, how they do it, they use elogind and systemd-libs!
pkgname=ndctl
pkgver=72.1
pkgrel=03
pkgdesc='Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel w/o systemd'
arch=('x86_64')
url="https://github.com/pmem/ndctl"
makedepends=('asciidoctor' 'bash-completion' 'xmlto' 'iniparser' 'automake' 'autoconf') # 'meson')
source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
prepare() {
# fix location of modprobe.d conf
sed -i 's|^modprobedir =.*|modprobedir = /usr/lib/modprobe.d/|' $pkgname-$pkgver/Makefile.am
}
check() {
cd $pkgname-$pkgver
make check
}
build() {
cd $pkgname-$pkgver
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --without-systemd
make
}
package() {
depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'util-linux-libs' 'eudev')
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
#---- license gpg-key sha256sums ----
license=('LGPL')
# sha256sums=(97f85b897378d293da75f91c2f238c0a45e1626dc2c2367e7a8d78378ee0f73b) # ndctl-73.tar.gz
# ndctl 73 uses meson and does not allow configuration without systemd -- see note above
sha256sums=(9059ee4b129730604cee6aba7a8bc207b6e9aa6466b6da9b3b29d1996bf3712a) # ndctl-72.1.tar.gz

31
ndctl/PKGBUILD-arch Normal file
View File

@ -0,0 +1,31 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=ndctl
pkgver=73
pkgrel=1
pkgdesc='Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel'
arch=('x86_64')
url="https://github.com/pmem/ndctl"
license=('LGPL')
depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'systemd-libs' 'util-linux-libs')
makedepends=('asciidoctor' 'bash-completion' 'meson' 'systemd' 'xmlto')
source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('a52a1fb655f044e5cd48b95b3abd89b4f6a991d6439c02e66da6b55947b8a08c279fec873def0b5a18a4e0b670d40e246c333b619fb62f0c6808357d15d847a5')
prepare() {
# fix location of modprobe.d conf
sed -i "s|^modprobedatadir =.*|modprobedatadir = '/usr/lib/modprobe.d/'|" $pkgname-$pkgver/contrib/meson.build
}
build() {
arch-meson $pkgname-$pkgver build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
}

85
ndctl/PKGBUILD-oba Normal file
View File

@ -0,0 +1,85 @@
# Copyright : Obarun
#------------------------
# Maintainer : Eric Vidal <eric@obarun.org>
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
#----------------
# Obarun PkgSrc : https://git.obarun.org/pkg/obextra/ndctl
#--------------------------------------------------------------
# DESCRIPTION ]
pkgname=ndctl
pkgver=72.1
pkgrel=2
pkgdesc="Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel"
url='https://github.com/pmem/ndctl'
track="archive/v$pkgver"
target="$pkgname-$pkgver"
source=(
"https://github.com/pmem/ndctl/${track}/${target}.tar.gz"
)
#----------------------
# BUILD CONFIGURATION ]
makedepends=(
'asciidoctor'
'bash-completion'
'xmlto'
)
#------------------------
# INSTALL CONFIGURATION ]
depends=(
'iniparser'
'json-c'
'keyutils'
'kmod'
'eudev'
'util-linux-libs'
)
#----------------
# BUILD PREPARE ]
prepare() {
## fix location of modprobe.d conf
sed -i 's|^modprobedir =.*|modprobedir = /usr/lib/modprobe.d/|' $pkgname-$pkgver/Makefile.am
}
#----------------
# BUILD CONTROL ]
_flags=(
--prefix=/usr
--sysconfdir=/etc
--without-systemd
)
#--------
# BUILD ]
build() {
cd $pkgname-$pkgver
./autogen.sh
./configure "${_flags[@]}"
make
}
#----------
# PACKAGE ]
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
#--------------------
# ARCH LICENSE AUTH ]
arch=(x86_64)
license=(LGPL)
sha512sums=('')

47
ndctl/PKGBUILD.like-arch Normal file
View File

@ -0,0 +1,47 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=ndctl
pkgver=73
pkgrel=01
pkgdesc='Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel w/o systemd'
arch=('x86_64')
url="https://github.com/pmem/ndctl"
makedepends=('asciidoctor' 'bash-completion' 'xmlto') # 'meson')
source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
prepare() {
# fix location of modprobe.d conf
sed -i "s|^modprobedatadir =.*|modprobedatadir = '/usr/lib/modprobe.d/'|" $pkgname-$pkgver/contrib/meson.build
}
build() {
jobo-meson $pkgname-$pkgver build
# cd $pkgname-$pkgver
# ./autogen.sh
# ./configure --prefix=/usr --sysconfdir=/etc --without-systemd
make
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'util-linux-libs' 'eudev')
meson install -C build --destdir "$pkgdir"
# cd $pkgname-$pkgver
# make DESTDIR="$pkgdir" install
}
#---- license gpg-key sha256sums ----
license=('LGPL')
sha256sums=(97f85b897378d293da75f91c2f238c0a45e1626dc2c2367e7a8d78378ee0f73b) # ndctl-73.tar.gz

1
ndctl/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,ndctl-*.tar.gz}

7
ndctl/deps Normal file
View File

@ -0,0 +1,7 @@
asciidoctor
bash-completion
xmlto
git
cmake
json-c
automake autoconf iniparser

6
ndctl/time Normal file
View File

@ -0,0 +1,6 @@
real 0m22.704s
user 0m41.575s
sys 0m3.844s

View File

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pacman-contrib
pkgver=1.5.0
pkgver=1.5.1
pkgrel=01
pkgdesc="Contributed scripts and tools for pacman systems w/o systemd"
url="https://gitlab.archlinux.org/pacman/pacman-contrib"
@ -55,8 +55,6 @@ license=('GPL')
validpgpkeys=('5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5' # Johannes Löthberg <johannes@kyriasis.com>
'04DC3FB1445FECA813C27EFAEA4F7B321A906AD9') # Daniel M. Capella <polyzen@archlinux.org>
b2sums=('1cfe87ad9b520d8851f3d7ec9e1f1f788210951ed167ad09486c64fa6b4321b1d473009d3f911b8066a65a88818254fabbbe4dcd34de63505e40a8b739d3ba7a')
sha256sums=(c9b521348d04df512b12ccc010d3f64302dc077ad5104485f6e8695f116e828d) # pacman-contrib-v1.5.0.tar.gz
sha256sums=(59c7581975746cf88d6932921a7ff26282ee789997ab90459fea1d5fb5537cc2) # pacman-contrib-v1.5.1.tar.gz

View File

@ -2,7 +2,7 @@
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
pkgname=pacman-contrib
pkgver=1.5.0
pkgver=1.5.1
pkgrel=1
pkgdesc='Contributed scripts and tools for pacman systems'
arch=('x86_64')
@ -16,7 +16,7 @@ optdepends=('diffutils: for pacdiff'
'sudo: privilege elevation for several scripts'
'vim: default merge program for pacdiff')
source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
b2sums=('1cfe87ad9b520d8851f3d7ec9e1f1f788210951ed167ad09486c64fa6b4321b1d473009d3f911b8066a65a88818254fabbbe4dcd34de63505e40a8b739d3ba7a')
b2sums=('e3ade880ce59f9576a9e06f687efd0f4d3adc5e3c4070f73f38108623b6cabb43e8009b0026bd405f4e341a2f6c8e8bd22b266b2aafccd336af3afdd74bf7d93')
#validpgpkeys=('5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5' # Johannes Löthberg <johannes@kyriasis.com>
# '04DC3FB1445FECA813C27EFAEA4F7B321A906AD9') # Daniel M. Capella <polyzen@archlinux.org>