aports/testing/adjtimex/10-Makefile.patch
2021-07-09 06:11:23 +00:00

35 lines
1.2 KiB
Diff

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)