Allow staging as a regular user
This commit is contained in:
parent
b66109cca0
commit
5fac1e92f4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434419
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user