summaryrefslogtreecommitdiff
path: root/repo/libutempter/libutempter.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libutempter/libutempter.xibuild')
-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"
+}
+