add nsss and utmps replacement

This commit is contained in:
Daryl Ronningen 2023-12-11 23:46:03 -08:00
parent 5a58981d91
commit 533ccbf429
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 93 additions and 0 deletions

View file

@ -8,6 +8,7 @@ pkgdesc="Lightweight implementation of C standard library"
arch=("x86_64") arch=("x86_64")
url="https://musl.libc.org/" url="https://musl.libc.org/"
license=("MIT") license=("MIT")
depends=("nsss" "utmps")
optdepends=( optdepends=(
"argp-standalone: Port of argp from Glibc" "argp-standalone: Port of argp from Glibc"
"musl-fts: adds fts(3) functions" "musl-fts: adds fts(3) functions"
@ -79,4 +80,7 @@ package() {
install -Dm0644 README "$pkgdir"/usr/share/doc/musl/README install -Dm0644 README "$pkgdir"/usr/share/doc/musl/README
install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/musl/COPYRIGHT install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/musl/COPYRIGHT
# utmps & nsss replacements
rm -rf $pkgdir/usr/include/{grp,pwd,shadow,utmpx}.h
} }

29
nsss/PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=nsss
pkgver=0.2.0.4
pkgrel=1
pkgdesc="nsss is an implementation of a subset of the pwd.h, group.h and shadow.h family of functions"
arch=("x86_64")
url="https://skarnet.org/software/nsss/"
license=("ISC")
depends=("skalibs")
source=("https://skarnet.org/software/nsss/nsss-$pkgver.tar.gz")
sha256sums=("39b504f85bd8f6b523d334e5cfa62c02a395db35991b75f206df0abbd6761aad")
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-shared \
--enable-libc-includes
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

28
skalibs/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=skalibs
pkgver=2.14.0.1
pkgrel=1
pkgdesc="Library for skarnet tools"
arch=("x86_64")
url="https://skarnet.org/software/skalibs/"
license=("ISC")
source=("https://skarnet.org/software/skalibs/skalibs-$pkgver.tar.gz")
sha256sums=("b43ebdb36f8a8df40f1a08c13b08393bce49faf334e62a0db919b3ae4afd1488")
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-shared \
--libdir=/usr/lib
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

32
utmps/PKGBUILD Normal file
View file

@ -0,0 +1,32 @@
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=utmps
pkgver=0.1.2.2
pkgrel=1
pkgdesc="Re-implementation of the utmpx.h family of functions for musl"
arch=("x86_64")
url="https://skarnet.org/software/utmps/"
license=("ISC")
depends=("skalibs")
source=("https://skarnet.org/software/utmps/utmps-$pkgver.tar.gz")
sha256sums=("f7ffa3714c65973bb95fbcf1501c06fc0478d93a51cea1b373ec6811c2425f52")
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-shared \
--enabled-static \
--libdir=/usr/lib \
--enable-libc-includes \
--enable-nsss
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}