summaryrefslogtreecommitdiff
path: root/repo/libutempter
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
committerdavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
commit873665024ebfaa761ee49b508a79db7178aeb778 (patch)
tree6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /repo/libutempter
parent4445f6e15185f58dc599390ab74df3ca19b437b7 (diff)
added gnupg
Diffstat (limited to 'repo/libutempter')
-rw-r--r--repo/libutempter/libutempter.xibuild25
1 files changed, 25 insertions, 0 deletions
diff --git a/repo/libutempter/libutempter.xibuild b/repo/libutempter/libutempter.xibuild
new file mode 100644
index 0000000..fdab6c1
--- /dev/null
+++ b/repo/libutempter/libutempter.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+NAME="libutempter"
+DESC="Library interface to record user sessions in utmp/wtmp files"
+
+MAKEDEPS="utmps"
+
+PKG_VER=1.2.1
+SOURCE="https://github.com/altlinux/libutempter/archive/$PKG_VER-alt1.tar.gz"
+
+prepare () {
+ cd libutempter
+ sed -i 's/ -p -m/ -m/g' Makefile
+}
+
+build() {
+ make CFLAGS="-I/usr/include/utmps" LDLIBS="-Wl,--no-as-needed -lutmps -lskarnet -Wl,--as-needed"
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+ chown root "$PKG_DEST/usr/lib/utempter/utempter"
+ chmod 2755 "$PKG_DEST/usr/lib/utempter/utempter"
+}
+