From 5fac1e92f4b25e003d2e4d010185fa143e7137b2 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Sun, 19 Feb 2017 22:02:47 +0000 Subject: [PATCH] Allow staging as a regular user --- devel/lnphost/files/patch-Include-lnphost.h | 4 ++-- devel/lnphost/files/patch-Makefile | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/devel/lnphost/files/patch-Include-lnphost.h b/devel/lnphost/files/patch-Include-lnphost.h index 2e7a286a1863..4dd6e00a16b0 100644 --- a/devel/lnphost/files/patch-Include-lnphost.h +++ b/devel/lnphost/files/patch-Include-lnphost.h @@ -1,5 +1,5 @@ ---- Include/lnphost.h.orig Sat Nov 20 14:22:00 2004 -+++ Include/lnphost.h Thu Sep 13 22:22:20 2007 +--- Include/lnphost.h.orig 2004-11-20 20:22:00 UTC ++++ Include/lnphost.h @@ -21,6 +21,8 @@ #if defined(LINUX) || defined(linux) diff --git a/devel/lnphost/files/patch-Makefile b/devel/lnphost/files/patch-Makefile index 7465e0bd2402..754e1d46dffd 100644 --- a/devel/lnphost/files/patch-Makefile +++ b/devel/lnphost/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig Fri Mar 18 10:20:31 2005 -+++ Makefile Thu Sep 13 21:14:41 2007 -@@ -8,16 +8,20 @@ +--- Makefile.orig 2005-03-18 16:20:31 UTC ++++ Makefile +@@ -8,16 +8,20 @@ else endif PROGRAMS=$(patsubst %.c,%$(EXT),$(wildcard *.c)) @@ -28,22 +28,25 @@ needroot: @if [ ! $$UID -eq 0 ]; then \ -@@ -26,21 +30,27 @@ +@@ -25,22 +29,28 @@ needroot: + exit 1; \ fi - install: all needroot +-install: all needroot - make -C Docs all - install -g root -o root -m 644 Docs/lnpdump.1.gz $(MANDIR) - install -g root -o root -m 755 lnpdump$(EXT) $(BINDIR) ++install: all + ${MAKE} -C Docs all + $(BSD_INSTALL_MAN) Docs/lnpdump.1 $(MANDIR) + $(BSD_INSTALL_PROGRAM) lnpdump$(EXT) $(BINDIR) + $(BSD_INSTALL_DATA) lnphost.a $(LIBDIR) + $(BSD_INSTALL_DATA) Include/lnphost.h $(INCDIR) - remove: needroot +-remove: needroot - rm -f $(MANDIR)/lnpdump.1.gz - rm -f $(BINDIR)/lnpdump$(EXT) ++remove: + ${RM} -f $(MANDIR)/lnpdump.1.gz + ${RM} -f $(BINDIR)/lnpdump$(EXT) + ${RM} -f $(LIBDIR)/lnphost.a