| 1 | NAME = mbuffer |
|---|
| 2 | VERSION = 20130220 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = A tool for buffering data streams |
|---|
| 6 | define BLURB |
|---|
| 7 | mbuffer is a tool for buffering data streams. Its special feature is to show |
|---|
| 8 | the I/O rate and summary to the user. It is especially useful, if you are |
|---|
| 9 | writing backups to fast tape drives or libraries. Those drives tend to stop |
|---|
| 10 | and rewind if they have a buffer underrun. This so called tape screwing |
|---|
| 11 | reduces the lifetime of the motors. mbuffer can prevent buffer underruns, |
|---|
| 12 | if used correctly and speed up the whole backup process. |
|---|
| 13 | endef |
|---|
| 14 | |
|---|
| 15 | MASTER_SITES = http://www.maier-komor.de/software/mbuffer/ |
|---|
| 16 | DISTFILES = $(DISTNAME).tgz |
|---|
| 17 | |
|---|
| 18 | VENDOR_URL = http://www.maier-komor.de/mbuffer.html |
|---|
| 19 | |
|---|
| 20 | LICENSE = LICENSE |
|---|
| 21 | |
|---|
| 22 | # Required during packaging (for the "test" target) |
|---|
| 23 | BUILD_DEP_PKGS = CSWmktemp |
|---|
| 24 | BUILD_DEP_PKGS += CSWgcc4core |
|---|
| 25 | BUILD_DEP_PKGS += CSWlibmhash-dev |
|---|
| 26 | |
|---|
| 27 | PACKAGES += CSWmbuffer |
|---|
| 28 | SPKG_DESC_CSWmbuffer = A tool for buffering data streams |
|---|
| 29 | # PKGFILES is catchall |
|---|
| 30 | RUNTIME_DEP_PKGS_CSWmbuffer += CSWlibmhash2 |
|---|
| 31 | |
|---|
| 32 | # 64-bit build enables buffers >= 2GB (see README). |
|---|
| 33 | BUILD64 = 1 |
|---|
| 34 | ISAEXEC = 1 |
|---|
| 35 | |
|---|
| 36 | # Required for updated libmhash (mbuffer builds against it) which allows for |
|---|
| 37 | # flexible const/non-const definitions. There should be a more intelligent |
|---|
| 38 | # way to do this than to just put it into every build recipe which requires |
|---|
| 39 | # libmhash though ... |
|---|
| 40 | EXTRA_CPPFLAGS = -D__const=const |
|---|
| 41 | |
|---|
| 42 | EXTRA_PAX_ARGS = -s ,ChangeLog$$,changelog,p |
|---|
| 43 | |
|---|
| 44 | include gar/category.mk |
|---|
| 45 | |
|---|
| 46 | post-install-modulated: DOCS = ChangeLog README AUTHORS |
|---|
| 47 | post-install-modulated: DOCDEST = $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 48 | post-install-modulated: |
|---|
| 49 | ginstall -d $(DOCDEST) |
|---|
| 50 | cp $(addprefix $(WORKSRC)/,$(DOCS)) $(DOCDEST) |
|---|
| 51 | cp $(FILEDIR)/changelog.CSW $(DOCDEST) |
|---|
| 52 | @$(MAKECOOKIE) |
|---|