summaryrefslogtreecommitdiff
path: root/repo/musl-nscd/musl-nscd.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/musl-nscd/musl-nscd.xibuild
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/musl-nscd/musl-nscd.xibuild')
-rw-r--r--repo/musl-nscd/musl-nscd.xibuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/musl-nscd/musl-nscd.xibuild b/repo/musl-nscd/musl-nscd.xibuild
new file mode 100644
index 0000000..0ad276b
--- /dev/null
+++ b/repo/musl-nscd/musl-nscd.xibuild
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+NAME="musl-nscd"
+DESC="Implementation of nscd for nsswitch modules for musl"
+
+MAKEDEPS="bison flex"
+
+PKG_VER=1.1.1
+SOURCE="https://github.com/pikhq/musl-nscd/archive/v$PKG_VER.tar.gz"
+
+ADDITIONAL="
+musl-nscd.initd
+"
+
+build() {
+ ./configure \
+ --prefix=/usr \ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+
+ install -m644 -D COPYRIGHT \
+ "$PKG_DEST"/usr/share/licenses/musl-nscd/COPYRIGHT
+
+ install -m755 -D "$BUILD_ROOT"/musl-nscd.initd \
+ "$PKG_DEST"/etc/init.d/nscd
+}
+