aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/spp
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-08-25 03:33:07 +0800
committerantoine <antoine@FreeBSD.org>2014-08-25 03:33:07 +0800
commit2a5cf1067a7c8204e9e3063dd890f94c5e239731 (patch)
tree3765b4ae42175c7a9688de20755a5f2693953902 /benchmarks/spp
parentd4d32fc693ec94bc64602663a3529fc59fa7cca8 (diff)
downloadfreebsd-ports-gnome-2a5cf1067a7c8204e9e3063dd890f94c5e239731.tar.gz
freebsd-ports-gnome-2a5cf1067a7c8204e9e3063dd890f94c5e239731.tar.zst
freebsd-ports-gnome-2a5cf1067a7c8204e9e3063dd890f94c5e239731.zip
Allow staging as a regular user
Diffstat (limited to 'benchmarks/spp')
-rw-r--r--benchmarks/spp/files/patch-Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/benchmarks/spp/files/patch-Makefile b/benchmarks/spp/files/patch-Makefile
index e0b354d4ed7a..60ef854fb7e8 100644
--- a/benchmarks/spp/files/patch-Makefile
+++ b/benchmarks/spp/files/patch-Makefile
@@ -1,5 +1,5 @@
---- ./Makefile.orig 2013-05-22 03:50:24.000000000 +0200
-+++ ./Makefile 2014-02-16 12:29:01.767731648 +0100
+--- Makefile.orig 2013-05-22 01:50:24 UTC
++++ Makefile
@@ -39,8 +39,8 @@
SLIBS= -pthread -lpcap
BINDIR=./bin
@@ -25,16 +25,19 @@
# turn on optimisation
CFLAGS += -O2
-@@ -80,9 +80,10 @@
- echo "You must be root to install" && exit 1 ; \
- fi ;
+@@ -76,13 +76,10 @@
+ rm -f $(PROGRAM) *.o $(SRCDIR)/*.o *~
+
+ install:
+- @if test "`id -u`" != "0" ; then \
+- echo "You must be root to install" && exit 1 ; \
+- fi ;
@echo "Installing spp binary"
- $(INSTALL) -c -m 755 $(PROGRAM) /usr/local/bin/
-+ @strip $(PROGRAM)
-+ $(INSTALL) -c -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
++ $(BSD_INSTALL_PROGRAM) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
@echo "Installing manual page"
- $(INSTALL) -c -m 644 doc/spp.1 /usr/local/man/man1/
-+ $(INSTALL) -c -m 644 doc/spp.1 $(DESTDIR)$(PREFIX)/man/man1/
++ $(BSD_INSTALL_MAN) doc/spp.1 $(DESTDIR)$(PREFIX)/man/man1/
# target 'distro'
#