Codebase list delay / 77d7b6a
Initialize packaging Kun-Hung Tsai 5 years ago
16 changed file(s) with 198 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 delay (1.0-1) unstable; urgency=low
1
2 * Initial release (Closes: #860572)
3
4 -- Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com> Tue, 27 Nov 2018 18:57:10 +0800
0 Source: delay
1 Section: misc
2 Priority: optional
3 Maintainer: Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com>
4 Build-Depends: debhelper (>= 11)
5 Standards-Version: 4.2.1
6 Homepage: https://github.com/rom1v/delay
7
8 Package: delay
9 Architecture: any
10 Depends: ${misc:Depends}, ${shlibs:Depends}
11 Description: Constant delay generator
12 delay introduces a constant delay between its standard input
13 and its standard output. The data from its stdin will be
14 stored until it has been written to stdout.
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: delay
2 Source: https://github.com/rom1v/delay
3
4 Files: *
5 Copyright: 2014-2018 Romain Vimont <rom@rom1v.com>
6 License: GPL-3+
7
8 Files: debian/*
9 Copyright: 2018 Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com>
10 License: GPL-3+
11
12 License: GPL-3+
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 3 of the License, or
16 (at your option) any later version.
17 .
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 .
23 You should have received a copy of the GNU General Public License
24 along with this package; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 .
27 On Debian systems, the complete text of the GNU General
28 Public License can be found in the file
29 `/usr/share/common-licenses/GPL-3'.
0 .TH "DELAY" "1" "21 Nov 2018" "Version 1.0" "User Commands
1 .Dd Nov 21, 2018
2 .Dt DELAY 1
3 .Os
4 .Sh NAME
5 .Nm delay
6 .Nd a constant delay generator
7 .Sh SYNOPSIS
8 .Nm
9 .Op Ar -b bufsize
10 .Op Ar delay
11 .Sh DESCRIPTION
12 .Nm
13 introduces a constant delay between its standard input and its standard output. The data from its stdin will be stored until it has been written to stdout. The required \fBdelay\fP argument specifies the delay time in millisecond.
14 .Pp
15 .Nm
16 supports the following options:
17 .Pp
18 delay
19 delay is the desired delay time, in milliseconds. The following modifiers are accepted:
20 12s means 12 seconds
21 12m means 12 minutes
22 12h means 12 hours
23 .Pp
24 .Fl "b bufsize"
25 buffer size stores the data until it has been written to stdout, in bytes. The following modifiers are accepted:
26 12k means 12Kb
27 12m means 12Mb
28 12g means 12Gb
29 .Pp
30 .Sh EXAMPLES
31 .Pp
32 .Bd -literal
33 delay the output of command_A to command_B by 5 seconds:
34 $ command_A | delay 5s | command_B
35 .Pp
36 delay the output of command_A to command_B by 5 seconds with 10MB buffer:
37 $ command_A | delay -b 10m 5s | command_B
38 .Ed
39 .Sh AUTHORS
40 .An Romain Vimont Aq Mt rom@rom1v.com
41 .Sh HOME
42 .Em https://github.com/rom1v/delay
0 debian/delay.1
0 From: Kun-Hung Tsai <moonape1226@gmail.com>
1 Date: Thu, 8 Nov 2018 18:57:54 +0800
2 Subject: Add debug option in makefile
3
4 ---
5 Makefile | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8 diff --git a/Makefile b/Makefile
9 index 29f0376..27d3251 100644
10 --- a/Makefile
11 +++ b/Makefile
12 @@ -2,7 +2,7 @@
13
14 OUT = delay
15 OBJ = main.o dtbuf.o time_ms.o
16 -CFLAGS = -Wall -O3
17 +CFLAGS = -Wall -O3 -g
18
19 release: delay
20
0 From: Kun-Hung Tsai <moonape1226@gmail.com>
1 Date: Fri, 9 Nov 2018 21:27:23 +0800
2 Subject: Modify makefile to add C and LD flags
3
4 ---
5 Makefile | 4 ++--
6 1 file changed, 2 insertions(+), 2 deletions(-)
7
8 diff --git a/Makefile b/Makefile
9 index 27d3251..4aa5f27 100644
10 --- a/Makefile
11 +++ b/Makefile
12 @@ -2,12 +2,12 @@
13
14 OUT = delay
15 OBJ = main.o dtbuf.o time_ms.o
16 -CFLAGS = -Wall -O3 -g
17 +CFLAGS += -Wall -O3 -g
18
19 release: delay
20
21 delay: $(OBJ)
22 - $(CC) $(CFLAGS) -o $(OUT) $(OBJ)
23 + $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUT) $(OBJ)
24
25 $(OBJ): dtbuf.h time_ms.h
26
0 From: Kun-Hung Tsai <moonape1226@gmail.com>
1 Date: Thu, 8 Nov 2018 17:56:33 +0800
2 Subject: Modify makfile to install binary on /usr/bin
3
4 ---
5 Makefile | 3 ++-
6 1 file changed, 2 insertions(+), 1 deletion(-)
7
8 diff --git a/Makefile b/Makefile
9 index 6f84648..29f0376 100644
10 --- a/Makefile
11 +++ b/Makefile
12 @@ -26,4 +26,5 @@ clean:
13 rm -f $(OBJ) $(OUT)
14
15 install: release
16 - install $(OUT) $(DESTDIR)/usr/local/bin
17 + mkdir -p $(DESTDIR)/usr/bin
18 + install $(OUT) $(DESTDIR)/usr/bin
0 Modify-makfile-to-install-binary-on-usr-bin.patch
1 Add-debug-option-in-makefile.patch
2 Modify-makefile-to-add-C-and-LD-flags.patch
0 #!/usr/bin/make -f
1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
2 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
3 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
4
5 %:
6 dh $@
0 3.0 (quilt)
0 Tests: test
1 Depends: @
0 #!/bin/sh
1 # autopkgtest check: Build and run a program against glib, to verify that the
2 # headers and pkg-config file are installed correctly
3 # Author: Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com>
4
5 set -e
6
7 echo "run: Test example"
8 echo $(ls -al)
9 { for i in {1..15}; do sleep $(bc <<< "scale=1;$i/10"); echo $i; done } |
10 tee /dev/stderr | sed -u 's/^/\t/' | delay 1s
11
12 echo "run: OK"
0 Bug-Database: https://github.com/rom1v/delay/issues
1 Bug-Submit: https://github.com/rom1v/delay/issues/new
2 Name: delay
3 Repository: https://github.com/rom1v/delay.git
4 Repository-Browse: https://github.com/rom1v/delay
0 version=4
1
2 opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%<project>-$1.tar.gz%" \
3 https://github.com/rom1v/delay/releases \
4 (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate