New package. OBS-URL: https://build.opensuse.org/request/show/253866 OBS-URL: https://build.opensuse.org/package/show/benchmark/dbench4?expand=0&rev=1
48 lines
1.5 KiB
Diff
48 lines
1.5 KiB
Diff
Rename binaries to *4 so it can be installed along with dbench v3,
|
|
add DESTDIR paths.
|
|
|
|
Index: dbench-4.0/Makefile.in
|
|
===================================================================
|
|
--- dbench-4.0.orig/Makefile.in
|
|
+++ dbench-4.0/Makefile.in
|
|
@@ -19,28 +19,28 @@ DB_OBJS = fileio.o util.o dbench.o child
|
|
TB_OBJS = sockio.o util.o dbench.o child.o socklib.o snprintf.o
|
|
SRV_OBJS = util.o tbench_srv.o socklib.o
|
|
|
|
-all: dbench tbench tbench_srv
|
|
+all: dbench4 tbench4 tbench4_srv
|
|
|
|
-dbench: $(DB_OBJS)
|
|
+dbench4: $(DB_OBJS)
|
|
$(CC) -o $@ $(DB_OBJS) $(LIBS)
|
|
|
|
-tbench: $(TB_OBJS)
|
|
+tbench4: $(TB_OBJS)
|
|
$(CC) -o $@ $(TB_OBJS) $(LIBS)
|
|
|
|
-tbench_srv: $(SRV_OBJS)
|
|
+tbench4_srv: $(SRV_OBJS)
|
|
$(CC) -o $@ $(SRV_OBJS) $(LIBS)
|
|
|
|
# Careful here: don't install client.txt over itself.
|
|
install: all
|
|
- ${INSTALLCMD} -d $(bindir) $(datadir) $(mandir)
|
|
- ${INSTALLCMD} dbench tbench tbench_srv $(bindir)
|
|
- ${INSTALLCMD} client.txt $(datadir)
|
|
- ${INSTALLCMD} -m644 dbench.1 $(mandir)
|
|
- ln -sf dbench.1 $(mandir)/tbench.1
|
|
- ln -sf dbench.1 $(mandir)/tbench_srv.1
|
|
+ ${INSTALLCMD} -d -m 0755 $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)/dbench4 $(DESTDIR)$(mandir)/man1
|
|
+ ${INSTALLCMD} dbench4 tbench4 tbench4_srv $(DESTDIR)$(bindir)
|
|
+ ${INSTALLCMD} client.txt $(DESTDIR)$(datadir)/dbench4
|
|
+ ${INSTALLCMD} -m 644 dbench.1 $(DESTDIR)$(mandir)/man1/dbench4.1
|
|
+ ln -sf dbench4.1 $(DESTDIR)$(mandir)/man1/tbench4.1
|
|
+ ln -sf dbench4.1 $(DESTDIR)$(mandir)/man1/tbench4_srv.1
|
|
|
|
clean:
|
|
- rm -f *.o *~ dbench tbench tbench_srv
|
|
+ rm -f *.o *~ dbench4 tbench4 tbench4_srv
|
|
|
|
proto:
|
|
./mkproto.pl *.c > proto.h
|