Allow staging as a regular user

This commit is contained in:
Antoine Brodin 2014-09-08 19:19:16 +00:00
parent dbc13e29fc
commit 1f3eb68eb7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367680

View File

@ -1,5 +1,5 @@
--- Makefile.orig 2013-11-16 20:34:19.000000000 +0800
+++ Makefile 2013-11-16 20:35:17.000000000 +0800
--- Makefile.orig 2014-09-08 12:18:04 UTC
+++ Makefile
@@ -1,14 +1,16 @@
# Compiler: eg. cc or gcc
CC = cc
@ -20,7 +20,7 @@
# Owner of tcplist executable
OWNER = root
@@ -45,18 +47,18 @@ MANEXT = 1
@@ -45,18 +47,18 @@
#
# Solaris 2.x (using LSOF):
#
@ -47,7 +47,7 @@
#
# If you're using an old version of lsof, uncomment this:
@@ -76,8 +78,8 @@ OBJS = $(SRCS:.c=.o)
@@ -76,8 +78,8 @@
RM = /bin/rm -rf
CP = /bin/cp
CHMOD = /bin/chmod
@ -58,22 +58,20 @@
all:: tcplist
@@ -95,13 +97,13 @@ depend:
@@ -94,14 +96,10 @@
makedepend -- $(CFLAGS) -- $(SRCS)
install: tcplist
strip tcplist
- strip tcplist
- $(CP) tcplist $(BINDIR)
- $(CHGRP) $(GROUP) $(BINDIR)/tcplist
- $(CHMOD) $(MODE) $(BINDIR)/tcplist
+ $(CP) tcplist $(DESTDIR)$(BINDIR)
+ $(CHGRP) $(GROUP) $(DESTDIR)$(BINDIR)/tcplist
+ $(CHMOD) $(MODE) $(DESTDIR)$(BINDIR)/tcplist
+ $(BSD_INSTALL_PROGRAM) tcplist $(DESTDIR)$(BINDIR)/tcplist
install.man: tcplist.1
- $(CP) tcplist.1 $(MANDIR)/tcplist.$(MANEXT)
- $(CHMOD) $(MANMODE) $(MANDIR)/tcplist.$(MANEXT)
+ $(CP) tcplist.1 $(DESTDIR)$(MANDIR)/tcplist.$(MANEXT)
+ $(CHMOD) $(MANMODE) $(DESTDIR)$(MANDIR)/tcplist.$(MANEXT)
+ $(BSD_INSTALL_MAN) tcplist.1 $(DESTDIR)$(MANDIR)/tcplist.$(MANEXT)
shar:
shar `awk '{print $$1}' MANIFEST` >tcplist-`awk '{print $$7;exit}' patchlevel.h`.shar