1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: use @sample on pkg-plist.
3: bump version.
This commit is contained in:
Vanilla I. Shu 2014-06-13 14:48:58 +00:00
parent 8756ddcd7b
commit be758acae1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357685
3 changed files with 23 additions and 13 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= autobench
PORTVERSION= 2.1.2
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= benchmarks www
MASTER_SITES= http://www.xenoclast.org/autobench/downloads/ \
http://www.sfr-fresh.com/unix/privat/
@ -17,14 +17,11 @@ RUN_DEPENDS= httperf:${PORTSDIR}/benchmarks/httperf \
LICENSE= GPLv2
USES= gmake perl5
USES= gmake perl5 shebangfix
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" DEBUG_FLAGS= \
PREFIX=${PREFIX}
SHEBANG_FILES= autobench_admin autobenchd autobench
MAN1= autobench.1 autobench_admin.1 autobenchd.1 bench2graph.1 \
crfile.1 sesslog.1
NO_STAGE= yes
post-patch:
.for file in autobench autobench_admin
@${REINPLACE_CMD} -i '' -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/${file}

View File

@ -1,11 +1,18 @@
--- Makefile.orig Thu May 27 18:59:27 2004
+++ Makefile Sun Jan 16 19:44:14 2005
@@ -55,7 +55,7 @@
--- Makefile.orig 2004-05-28 00:59:27.000000000 +0800
+++ Makefile 2014-06-13 22:45:30.432113271 +0800
@@ -51,11 +51,11 @@ debug: crfile.c
$(CC) $(DEBUG_FLAGS) -o crfile crfile.c
install: crfile sesslog
- mkdir -p $(BINDIR) $(ETCDIR) $(MANDIR)
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(ETCDIR) $(DESTDIR)$(MANDIR)
perl -pi -e 's/my \$$MASTER_CONFIG =.*$$/my \$$MASTER_CONFIG = "$$ENV{AB_CFG}";/' autobench
cp crfile autobench autobenchd autobench_admin sesslog bench2graph $(BINDIR)
cp autobenchd.1 autobench_admin.1 crfile.1 autobench.1 sesslog.1 bench2graph.1 $(MANDIR)
- cp crfile autobench autobenchd autobench_admin sesslog bench2graph $(BINDIR)
- cp autobenchd.1 autobench_admin.1 crfile.1 autobench.1 sesslog.1 bench2graph.1 $(MANDIR)
- cp autobench.conf $(ETCDIR)
+ cp autobench.conf $(ETCDIR)/autobench.conf-dist
+ cp crfile autobench autobenchd autobench_admin sesslog bench2graph $(DESTDIR)$(BINDIR)
+ cp autobenchd.1 autobench_admin.1 crfile.1 autobench.1 sesslog.1 bench2graph.1 $(DESTDIR)$(MANDIR)
+ cp autobench.conf $(DESTDIR)$(ETCDIR)/autobench.conf.sample
clean:
rm -f crfile sesslog

View File

@ -4,4 +4,10 @@ bin/autobenchd
bin/bench2graph
bin/crfile
bin/sesslog
etc/autobench.conf-dist
@sample etc/autobench.conf.sample
man/man1/autobench.1.gz
man/man1/autobench_admin.1.gz
man/man1/autobenchd.1.gz
man/man1/bench2graph.1.gz
man/man1/crfile.1.gz
man/man1/sesslog.1.gz