From 960cd2fe3dfd1836b144f2662bc2302dfb82e74e Mon Sep 17 00:00:00 2001 From: Anjandev Momi Date: Wed, 2 Jun 2021 05:11:05 +0000 Subject: [PATCH] testing/adjtimex: new aport --- testing/adjtimex/10-Makefile.patch | 35 ++++++++++++++++++++++++++++++ testing/adjtimex/APKBUILD | 33 ++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 testing/adjtimex/10-Makefile.patch create mode 100644 testing/adjtimex/APKBUILD diff --git a/testing/adjtimex/10-Makefile.patch b/testing/adjtimex/10-Makefile.patch new file mode 100644 index 00000000000..80ca12135ee --- /dev/null +++ b/testing/adjtimex/10-Makefile.patch @@ -0,0 +1,35 @@ +Author: Anjandev Momi +URL: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=adjtimex +Summary: create directory on install and make mandir respect DESTDIR +---- +diff -ruN adjtimex-debian-1.29-10.old/Makefile.in adjtimex-debian-1.29-10/Makefile.in +--- adjtimex-debian-1.29-10.old/Makefile.in 2018-07-25 17:02:11.000000000 +0000 ++++ adjtimex-debian-1.29-10/Makefile.in 2019-01-01 02:58:05.867107891 +0000 +@@ -8,7 +8,7 @@ + prefix = @prefix@ + man1dir=@mandir@/man1 + exec_prefix = @exec_prefix@ +-bindir=/sbin ++bindir=$(DESTDIR)/$(prefix)/bin + datadir = @datadir@ + datarootdir = @datarootdir@ + +@@ -18,7 +18,7 @@ + # Extension (not including `.') for the manual page filenames. + manext = 8 + # Where to put the manual pages. +-mandir = $(prefix)/share/man/man$(manext) ++mandir = $(DESTDIR)/$(prefix)/share/man/man$(manext) + + #### End of system configuration section. #### + +@@ -42,7 +42,8 @@ + $(CC) $(CFLAGS) -c mat.c + + install: all +- $(INSTALL) -g bin -m 755 -o root adjtimex $(bindir)/adjtimex ++ $(INSTALL) -d -g root -m 755 -o root $(bindir) ++ $(INSTALL) -g root -m 755 -o root adjtimex $(bindir)/adjtimex + $(INSTALL) -d -g root -m 755 -o root $(mandir) + -$(INSTALL) -g root -m 644 -o root $(srcdir)/adjtimex.8 \ + $(mandir)/adjtimex.$(manext) diff --git a/testing/adjtimex/APKBUILD b/testing/adjtimex/APKBUILD new file mode 100644 index 00000000000..85810444a2e --- /dev/null +++ b/testing/adjtimex/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Anjandev Momi +# Maintainer: Anjandev Momi +pkgname=adjtimex +pkgver=1.28 +pkgrel=0 +pkgdesc="Allows configuration of kernel time variables" +url="https://github.com/rogers0/adjtimex" +options="!check" # No tests +arch="all" +subpackages="$pkgname-doc" +license="GPL-2.0-or-later" +source="$pkgname-$pkgver.tar.gz::http://www.ibiblio.org/pub/Linux/system/admin/time/adjtimex-$pkgver.tar.gz + 10-Makefile.patch" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +package() { + make prefix="/usr" DESTDIR="$pkgdir" install +} + +sha512sums=" +1ba974d19dc2da8c0e7ee8e990ee91072b774163c74539d937d7cbf164236f0aec35b27f3204bc29b8020b96ebba9f0181cfe5005753831039c5f2c67c5a502b adjtimex-1.28.tar.gz +f75ede467d2b089306aa0bf08613c835d040f019eb74987869dd0495d2768db66f718a977fda6600238ba1a3582137d7035dfc900d10fd8531e5fbc091b53d93 10-Makefile.patch +"