mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-21 05:26:40 +02:00
30 lines
998 B
Text
30 lines
998 B
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=libutempter
|
|
pkgver=1.2.3
|
|
_pkgver=$pkgver-alt1
|
|
pkgrel=0
|
|
pkgdesc="Library interface to record user sessions in utmp/wtmp files"
|
|
url="http://freecode.com/projects/libutempter"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="utmps-dev"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
options="suid !check"
|
|
pkggroups="utmp"
|
|
source="https://github.com/altlinux/libutempter/archive/$_pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname-$_pkgver/$pkgname"
|
|
|
|
build() {
|
|
make CFLAGS="$CFLAGS -I/usr/include/utmps" LDLIBS="-Wl,--no-as-needed -lutmps -lskarnet -Wl,--as-needed"
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
chown root:$pkggroups "$pkgdir/usr/lib/utempter/utempter"
|
|
chmod 2755 "$pkgdir/usr/lib/utempter/utempter"
|
|
}
|
|
|
|
sha512sums="
|
|
badd2061a3b5a400aeb485c39403840088ae537561d3b539b3f4b2de1eeddab4df6b71143b2361c96c2c8a520fc524153ca3c0672ade9ff8a3e333fa9681e77b 1.2.3-alt1.tar.gz
|
|
"
|