Date: Sun, 24 Aug 2014 19:33:08 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366006 - head/benchmarks/spp/files Message-ID: <201408241933.s7OJX8s4090112@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Sun Aug 24 19:33:07 2014 New Revision: 366006 URL: http://svnweb.freebsd.org/changeset/ports/366006 QAT: https://qat.redports.org/buildarchive/r366006/ Log: Allow staging as a regular user Modified: head/benchmarks/spp/files/patch-Makefile Modified: head/benchmarks/spp/files/patch-Makefile ============================================================================== --- head/benchmarks/spp/files/patch-Makefile Sun Aug 24 19:31:17 2014 (r366005) +++ head/benchmarks/spp/files/patch-Makefile Sun Aug 24 19:33:07 2014 (r366006) @@ -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' #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408241933.s7OJX8s4090112>