mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/adjtimex: new aport
This commit is contained in:
parent
41d343ae46
commit
960cd2fe3d
35
testing/adjtimex/10-Makefile.patch
Normal file
35
testing/adjtimex/10-Makefile.patch
Normal file
@ -0,0 +1,35 @@
|
||||
Author: Anjandev Momi <anjan@momi.ca>
|
||||
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)
|
||||
33
testing/adjtimex/APKBUILD
Normal file
33
testing/adjtimex/APKBUILD
Normal file
@ -0,0 +1,33 @@
|
||||
# Contributor: Anjandev Momi <anjan@momi.ca>
|
||||
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
||||
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
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user