aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-02-26 00:12:13 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-02-27 01:31:29 -0300
commite8733ea600f392bd2fb377aa827aea6d10ad3da1 (patch)
tree6527c64b0f3c256c91afb442aa1ba77ac0109eda
parent9b6ef8fcb31c41b272022745d367dee2dec0238c (diff)
downloadaports-e8733ea600f392bd2fb377aa827aea6d10ad3da1.tar.gz
aports-e8733ea600f392bd2fb377aa827aea6d10ad3da1.tar.bz2
aports-e8733ea600f392bd2fb377aa827aea6d10ad3da1.tar.xz
testing/physlock: upgrade to 13
-rw-r--r--testing/physlock/APKBUILD30
-rw-r--r--testing/physlock/disable_systemd.patch11
2 files changed, 23 insertions, 18 deletions
diff --git a/testing/physlock/APKBUILD b/testing/physlock/APKBUILD
index 1c8a72ef55..66ab8a8c11 100644
--- a/testing/physlock/APKBUILD
+++ b/testing/physlock/APKBUILD
@@ -1,32 +1,26 @@
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=physlock
-pkgver=0.5
+pkgver=13
pkgrel=0
pkgdesc="Lightweight linux console locking tool"
url="https://github.com/muennich/physlock"
arch="all"
-license="GPL-2.0"
-makedepends="linux-headers"
-depends=""
-install=""
-subpackages="${pkgname}-doc"
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/muennich/physlock/archive/v${pkgver}.tar.gz"
-builddir="${srcdir}/${pkgname}-${pkgver}"
-options="!check suid"
-
-prepare() {
- default_prepare || return
-}
+license="GPL-2.0-or-later"
+options="!check suid" # No test suite
+makedepends="linux-headers linux-pam-dev"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/muennich/physlock/archive/v$pkgver.tar.gz
+ disable_systemd.patch
+ "
build() {
- cd "$builddir"
- make || return 1
+ make
}
package() {
- cd "$builddir"
- make PREFIX="/usr" DESTDIR="$pkgdir" install || return 1
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
}
-sha512sums="0e22d2c1093556e2ca52da4ee36e53a7eebf9c2cf8e10592c95971aa3479c3ee1a31b9d71e52fca715a483f22740f6cf9a3c167fb61e4c6034a2ecf900fd5f9d ${pkgname}-${pkgver}.tar.gz"
+sha512sums="85c291fb7b146fbd81aacbf94d8af07e727dd9b37b458988eaee5f7a51f9923871f9b19fd9438428635963864de67d3f2a72f938d99ffe6dc3015c3a1b99ea1c physlock-13.tar.gz
+ee5bbaefddf95fbf6756e4301f90b78c42981e873795e9f45b8c6a06d7ed0248d67228217b30a6b8d4a0893262c4892117317b267723d3ff8ed6eac2412fbac0 disable_systemd.patch"
diff --git a/testing/physlock/disable_systemd.patch b/testing/physlock/disable_systemd.patch
new file mode 100644
index 0000000000..a29393103b
--- /dev/null
+++ b/testing/physlock/disable_systemd.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -7,7 +7,7 @@
+ MANPREFIX = $(PREFIX)/share/man
+
+ # enable user detection using libsystemd
+-HAVE_SYSTEMD = 1
++HAVE_SYSTEMD = 0
+
+ cflags = -Wall -pedantic $(CFLAGS)
+ cppflags = -I. $(CPPFLAGS) -D_XOPEN_SOURCE=500