diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-06 10:50:09 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-07 09:34:07 -0300 |
commit | 8a3960a9f0df3d4b494f0ef93d9c843109eb31fc (patch) | |
tree | ca895bd7b99f36cd66b0e5ad944acb7974b0d227 /community/utmps | |
parent | 884e0efe0196ae2398a186ee732e4892b279a0cf (diff) | |
download | aports-8a3960a9f0df3d4b494f0ef93d9c843109eb31fc.tar.bz2 aports-8a3960a9f0df3d4b494f0ef93d9c843109eb31fc.tar.xz |
community/utmps: clean APKBUILD
Diffstat (limited to 'community/utmps')
-rw-r--r-- | community/utmps/APKBUILD | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/community/utmps/APKBUILD b/community/utmps/APKBUILD index be7ed488c7..5d58b534ad 100644 --- a/community/utmps/APKBUILD +++ b/community/utmps/APKBUILD @@ -12,12 +12,14 @@ depends_dev="skalibs-dev" makedepends="skalibs-dev" options="!check" subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc" -source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz $pkgname.initd utmpd.run wtmpd.run" -builddir="$srcdir/$pkgname-$pkgver" +source="https://skarnet.org/software/utmps/utmps-$pkgver.tar.gz + $pkgname.initd + utmpd.run + wtmpd.run + " install="$pkgname.pre-install $pkgname.pre-upgrade" build() { - cd "$builddir" ./configure \ --enable-shared \ --enable-static \ @@ -29,18 +31,22 @@ build() { } package() { - cd "$builddir" make DESTDIR="$pkgdir" install - mkdir -p "$pkgdir/etc/init.d" "$pkgdir/var/lib/$pkgname/services/utmpd" "$pkgdir/var/lib/$pkgname/services/wtmpd" - cp -f "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname" - cp -f "$srcdir/utmpd.run" "$pkgdir/var/lib/$pkgname/services/utmpd/run" + mkdir -p "$pkgdir/etc/init.d" \ + "$pkgdir/var/lib/$pkgname/services/utmpd" \ + "$pkgdir/var/lib/$pkgname/services/wtmpd" + cp -f "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname" + cp -f "$srcdir/utmpd.run" "$pkgdir/var/lib/$pkgname/services/utmpd/run" echo 3 > "$pkgdir/var/lib/$pkgname/services/utmpd/notification-fd" s6-mkfifodir -g0 -- "$pkgdir/var/lib/$pkgname/services/utmpd/event" - cp -f "$srcdir/wtmpd.run" "$pkgdir/var/lib/$pkgname/services/wtmpd/run" + cp -f "$srcdir/wtmpd.run" "$pkgdir/var/lib/$pkgname/services/wtmpd/run" echo 3 > "$pkgdir/var/lib/$pkgname/services/wtmpd/notification-fd" s6-mkfifodir -g 0 -- "$pkgdir/var/lib/$pkgname/services/wtmpd/event" - chmod 0755 "$pkgdir/etc/init.d/$pkgname" "$pkgdir/var/lib/$pkgname/services/utmpd/run" "$pkgdir/var/lib/$pkgname/services/wtmpd/run" - mkdir -m 0700 "$pkgdir/var/lib/$pkgname/services/utmpd/supervise" "$pkgdir/var/lib/$pkgname/services/wtmpd/supervise" + chmod 0755 "$pkgdir/etc/init.d/$pkgname" \ + "$pkgdir/var/lib/$pkgname/services/utmpd/run" \ + "$pkgdir/var/lib/$pkgname/services/wtmpd/run" + mkdir -m 0700 "$pkgdir/var/lib/$pkgname/services/utmpd/supervise" \ + "$pkgdir/var/lib/$pkgname/services/wtmpd/supervise" dd if=/dev/zero of="$pkgdir/var/lib/$pkgname/services/utmpd/supervise/status" bs=35 count=1 dd if=/dev/zero of="$pkgdir/var/lib/$pkgname/services/wtmpd/supervise/status" bs=35 count=1 } |