Codebase list libite / dcc7268
debian: update to 2.5.1 yangfl 2 years ago
11 changed file(s) with 54 addition(s) and 310 deletion(s). Raw diff Collapse all Expand all
0 !*
1
02 # Ignore generated files
13 *.deb
24 *.dsc
1315 *.debhelper
1416 *-stamp
1517 /*/
18
19 !examples/
1620 !missing-sources/
1721 !patches/
18 !patches/*.patch
22 !po/
23 !scripts/
1924 !source/
2025 !tests/
2126 !upstream/
0 libite (2.5.1-1) unstable; urgency=medium
1
2 * New upstream release
3 * Bump Standards-Version to 4.6.0
4
5 -- Yangfl <mmyangfl@gmail.com> Sun, 23 Jan 2022 02:03:34 +0800
6
07 libite (2.2.0-2) unstable; urgency=medium
18
29 * Add autopkgtest
22 Maintainer: Yangfl <mmyangfl@gmail.com>
33 Build-Depends: debhelper-compat (= 13), libtool
44 Rules-Requires-Root: no
5 Standards-Version: 4.5.0
5 Standards-Version: 4.6.0
66 Section: libs
77 Homepage: https://github.com/troglobit/libite
88 Vcs-Browser: https://salsa.debian.org/yangfl-guest/libite
3333
3434 Package: libite5
3535 Architecture: any
36 Multi-Arch: same
3637 Depends: ${misc:Depends}, ${shlibs:Depends}
3738 Description: That missing frog DNA you've been looking for
3839 Libite, or -lite, is a lightweight library of frog DNA. It can be used
00 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
11 Upstream-Name: libite
2 Upstream-Contact: Joachim Nilsson <troglobit@gmail.com>
2 Upstream-Contact: Joachim Wiberg <troglobit@gmail.com>
33 Source: https://github.com/troglobit/libite
44
55 Files: *
66 Copyright: 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
7 2008-2020 Joachim Nilsson <troglobit@gmail.com>
7 2008-2021 Joachim Wiberg <troglobit@gmail.com>
88 License: Expat
99
1010 Files: src/chomp.c
11 Copyright: 2014-2020 Joachim Nilsson <troglobit@gmail.com>
12 License: ISC
13
14 Files: src/conio.h
15 Copyright: 2009-2020 Joachim Nilsson <troglobit@gmail.com>
16 License: ISC
17
18 Files: src/dir.c
19 Copyright: 2008-2020 Joachim Nilsson <troglobit@gmail.com>
20 License: ISC
21
22 Files: src/lfile.c
23 Copyright: 2015-2020 Joachim Nilsson <troglobit@gmail.com>
11 src/conio.*
12 src/dir.c
13 src/erasef.c
14 src/fopenf.c
15 src/fremove.c
16 src/lfile.c
17 src/makepath.c
18 src/pidfilefn.c
19 src/progress.c
20 src/rsync.c
21 src/strlite.h
22 src/strmatch.c
23 src/strnlen.h
24 src/systemf.c
25 src/telnet.c
26 src/tempfile.c
27 src/touchf.c
28 src/truncatef.c
29 src/which.c
30 src/yorn.c
31 Copyright: 2008-2021 Joachim Wiberg <troglobit@gmail.com>
2432 License: ISC
2533
2634 Files: src/pidfile.c
3543 Copyright: 2008 Otto Moerbeek <otto@drijf.net>
3644 License: ISC
3745
38 Files: src/rsync.c
39 Copyright: 2011-2020 Joachim Nilsson <troglobit@gmail.com>
40 License: ISC
41
4246 Files: src/strdupa.h
4347 src/strndupa.h
4448 Copyright: 2009 William Ahern
4953 Copyright: 1998, 2015 Todd C. Miller <Todd.Miller@courtesan.com>
5054 License: Expat
5155
52 Files: src/strmatch.c
53 Copyright: 2009-2020 Joachim Nilsson <troglobit@gmail.com>
54 License: ISC
55
56 Files: src/strnlen.c
57 Copyright: 2016-2020 Joachim Nilsson <troglobit@gmail.com>
56 Files: src/strtrim.c
57 Copyright: 2014 Mattias Walström <lazzer@gmail.com>
58 2021 Joachim Wiberg <troglobit@gmail.com>
5859 License: ISC
5960
6061 Files: src/strtonum.c
6162 Copyright: 2004 Ted Unangst and Todd Miller
6263 License: ISC
6364
64 Files: src/telnet.c
65 Copyright: 2010-2020 Joachim Nilsson <troglobit@gmail.com>
66 License: ISC
67
68 Files: src/tempfile.c
69 Copyright: 2015-2020 Joachim Nilsson <troglobit@gmail.com>
70 License: ISC
71
7265 Files: src/tree.h
7366 Copyright: 2002 Niels Provos <provos@citi.umich.edu>
7467 License: BSD-2-clause
7568
76 Files: src/yorn.c
77 Copyright: 2009-2020 Joachim Nilsson <troglobit@gmail.com>
78 License: ISC
79
80 Files: tests/*.c
69 Files: test/*.c
8170 Copyright: 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
82 2008-2020 Joachim Nilsson <troglobit@gmail.com>
71 2008-2020 Joachim Wiberg <troglobit@gmail.com>
8372 License: public-domain
8473 This is released into the public domain.
8574
8675 Files: debian/*
8776 Copyright: 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
88 2008-2020 Joachim Nilsson <troglobit@gmail.com>
77 2008-2020 Joachim Wiberg <troglobit@gmail.com>
78 2020-2022 Yangfl <mmyangfl@gmail.com>
8979 License: Expat
9080
9181 License: Expat
0 usr/include/lite/*.h
0 usr/include/libite/*.h
1 usr/include/lite
12 usr/lib/*/lib*.a
23 usr/lib/*/lib*.so
34 usr/lib/*/pkgconfig/lib*.pc
44 chomp@Base 2.0.0
55 copyfile@Base 2.0.0
66 dir@Base 2.0.0
7 erasef@Base 2.5.1
78 fcopyfile@Base 2.0.0
89 fexist@Base 2.0.0
910 fgetint@Base 2.0.0
1112 fmkpath@Base 2.2.0
1213 fopenf@Base 2.2.0
1314 fparseln@Base 2.0.0
15 fremove@Base 2.5.1
1416 fsendfile@Base 2.0.0
1517 ifconfig@Base 2.0.0
1618 initscr@Base 2.0.0
3032 progress_simple@Base 2.0.0
3133 reallocarray@Base 2.0.0
3234 rsync@Base 2.0.0
33 sdbuf@Base 2.0.0
3435 strlcat@Base 2.0.0
3536 strlcpy@Base 2.0.0
3637 strmatch@Base 2.1.0
3738 strnmatch@Base 2.1.0
3839 strtonum@Base 2.1.0
40 strtrim@Base 2.5.1
3941 systemf@Base 2.2.0
4042 telnet_close@Base 2.1.0
4143 telnet_expect@Base 2.1.0
4244 telnet_open@Base 2.1.0
4345 telnet_session@Base 2.1.0
4446 tempfile@Base 2.0.0
47 touchf@Base 2.5.1
48 truncatef@Base 2.5.1
4549 which@Base 2.0.0
4650 whichp@Base 2.0.0
4751 yorn@Base 2.1.0
+0
-237
debian/patches/0001-Avoid-some-hard-coded-pathes-in-tests.patch less more
0 From f903a360a0b8194a84c7848735f7353ca7c70f95 Mon Sep 17 00:00:00 2001
1 From: yangfl <yangfl@users.noreply.github.com>
2 Date: Mon, 1 Jun 2020 10:23:34 +0800
3 Subject: [PATCH] Avoid (some) hard-coded pathes in tests
4
5 ---
6 tests/.gitignore | 42 +++++++++++++++---------------
7 tests/Makefile.am | 11 +++++++-
8 tests/data/fexist/broken-link | 1 +
9 tests/data/fexist/dir/.placeholder | 0
10 tests/data/fexist/executable | 0
11 tests/data/fexist/link | 1 +
12 tests/data/fexist/regular | 0
13 tests/data/lfile/fstab | 3 +++
14 tests/data/lfile/group | 1 +
15 tests/data/lfile/passwd | 1 +
16 tests/data/lfile/protocols | 1 +
17 tests/data/lfile/services | 2 ++
18 tests/data/which/executable | 0
19 tests/data/which/executable-link | 1 +
20 tests/data/which/regular | 0
21 tests/fexist.c | 11 +++++---
22 tests/lfile.c | 10 +++----
23 tests/which.c | 15 +++++------
24 18 files changed, 61 insertions(+), 39 deletions(-)
25 create mode 120000 tests/data/fexist/broken-link
26 create mode 100644 tests/data/fexist/dir/.placeholder
27 create mode 100755 tests/data/fexist/executable
28 create mode 120000 tests/data/fexist/link
29 create mode 100644 tests/data/fexist/regular
30 create mode 100644 tests/data/lfile/fstab
31 create mode 100644 tests/data/lfile/group
32 create mode 100644 tests/data/lfile/passwd
33 create mode 100644 tests/data/lfile/protocols
34 create mode 100644 tests/data/lfile/services
35 create mode 100755 tests/data/which/executable
36 create mode 120000 tests/data/which/executable-link
37 create mode 100644 tests/data/which/regular
38
39 diff --git a/tests/Makefile.am b/tests/Makefile.am
40 index 032dd3c..4baefae 100644
41 --- a/tests/Makefile.am
42 +++ b/tests/Makefile.am
43 @@ -1,6 +1,15 @@
44 -EXTRA_DIST = check.h
45 +EXTRA_DIST = check.h \
46 + data/fexist/dir/.placeholder data/fexist/executable data/fexist/link \
47 + data/fexist/regular data/lfile/fstab data/lfile/group data/lfile/passwd \
48 + data/lfile/protocols data/lfile/services data/which/executable \
49 + data/which/executable-link data/which/regular
50 CLEANFILES = *~ *.trs *.log
51
52 +TESTS_ENVIRONMENT = ([ -d data ] || ln -sf $(srcdir)/data) &&
53 +
54 +clean-local:
55 + -find -type l -name data -exec rm {} \;
56 +
57 TESTS =
58 TESTS += chomp
59 TESTS += copyfile
60 diff --git a/tests/data/fexist/broken-link b/tests/data/fexist/broken-link
61 new file mode 120000
62 index 0000000..09315f2
63 --- /dev/null
64 +++ b/tests/data/fexist/broken-link
65 @@ -0,0 +1 @@
66 +nonexistence
67 \ No newline at end of file
68 diff --git a/tests/data/fexist/dir/.placeholder b/tests/data/fexist/dir/.placeholder
69 new file mode 100644
70 index 0000000..e69de29
71 diff --git a/tests/data/fexist/executable b/tests/data/fexist/executable
72 new file mode 100755
73 index 0000000..e69de29
74 diff --git a/tests/data/fexist/link b/tests/data/fexist/link
75 new file mode 120000
76 index 0000000..1d89e5a
77 --- /dev/null
78 +++ b/tests/data/fexist/link
79 @@ -0,0 +1 @@
80 +regular
81 \ No newline at end of file
82 diff --git a/tests/data/fexist/regular b/tests/data/fexist/regular
83 new file mode 100644
84 index 0000000..e69de29
85 diff --git a/tests/data/lfile/fstab b/tests/data/lfile/fstab
86 new file mode 100644
87 index 0000000..f809e76
88 --- /dev/null
89 +++ b/tests/data/lfile/fstab
90 @@ -0,0 +1,3 @@
91 +UUID=xxxxxxxxxx / xfs defaults 0 1
92 +/dev/sda1 /boot/efi vfat umask=0077 0 1
93 +/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
94 diff --git a/tests/data/lfile/group b/tests/data/lfile/group
95 new file mode 100644
96 index 0000000..557fb2c
97 --- /dev/null
98 +++ b/tests/data/lfile/group
99 @@ -0,0 +1 @@
100 +utmp:x:43:
101 diff --git a/tests/data/lfile/passwd b/tests/data/lfile/passwd
102 new file mode 100644
103 index 0000000..6bb6b7e
104 --- /dev/null
105 +++ b/tests/data/lfile/passwd
106 @@ -0,0 +1 @@
107 +nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
108 diff --git a/tests/data/lfile/protocols b/tests/data/lfile/protocols
109 new file mode 100644
110 index 0000000..0f62e42
111 --- /dev/null
112 +++ b/tests/data/lfile/protocols
113 @@ -0,0 +1 @@
114 +udp 17 UDP
115 diff --git a/tests/data/lfile/services b/tests/data/lfile/services
116 new file mode 100644
117 index 0000000..cf25247
118 --- /dev/null
119 +++ b/tests/data/lfile/services
120 @@ -0,0 +1,2 @@
121 +ftp-data 20/tcp
122 +ftp 21/tcp
123 diff --git a/tests/data/which/executable b/tests/data/which/executable
124 new file mode 100755
125 index 0000000..e69de29
126 diff --git a/tests/data/which/executable-link b/tests/data/which/executable-link
127 new file mode 120000
128 index 0000000..9268d74
129 --- /dev/null
130 +++ b/tests/data/which/executable-link
131 @@ -0,0 +1 @@
132 +executable
133 \ No newline at end of file
134 diff --git a/tests/data/which/regular b/tests/data/which/regular
135 new file mode 100644
136 index 0000000..e69de29
137 diff --git a/tests/fexist.c b/tests/fexist.c
138 index 39e2daf..1cff56f 100644
139 --- a/tests/fexist.c
140 +++ b/tests/fexist.c
141 @@ -5,10 +5,13 @@ int main(void)
142 {
143 size_t i = 0;
144 struct { char *file; int exist; } arr[] = {
145 - { "/etc/passwd", 1 },
146 - { "/etc/kalle", 0 },
147 - { "/sbin/init", 1 },
148 - { "/dev/null", 1 },
149 + { "data/fexist/regular", 1 },
150 + { "data/fexist/executable", 1 },
151 + { "data/fexist/link", 1 },
152 + { "data/fexist/nonexistence", 0 },
153 + { "data/fexist/broken-link", 0 },
154 + { "data/fexist/dir", 1 },
155 + { "/dev/null", 1 },
156 { NULL, 0 },
157 };
158
159 diff --git a/tests/lfile.c b/tests/lfile.c
160 index 42ea8c3..19ba6e4 100644
161 --- a/tests/lfile.c
162 +++ b/tests/lfile.c
163 @@ -1,7 +1,7 @@
164 #include <stdio.h>
165 #include "check.h"
166
167 -#define FSTAB "/etc/fstab"
168 +#define FSTAB "data/lfile/fstab"
169
170 static int fstab(void)
171 {
172 @@ -42,28 +42,28 @@ int main(void)
173 {
174 int val;
175
176 - val = fgetint("/etc/protocols", " \n\t", "udp");
177 + val = fgetint("data/lfile/protocols", " \n\t", "udp");
178 if (val == -1) {
179 perror("Failed locating 'udp' protocol");
180 return 1;
181 }
182 printf("udp has proto %d\n", val);
183
184 - val = fgetint("/etc/services", " /\n\t", "ftp");
185 + val = fgetint("data/lfile/services", " /\n\t", "ftp");
186 if (val == -1) {
187 perror("Failed locating 'ftp' service");
188 return 1;
189 }
190 printf("ftp is inet port %d\n", val);
191
192 - val = fgetint("/etc/group", "x:\n", "utmp");
193 + val = fgetint("data/lfile/group", "x:\n", "utmp");
194 if (val == -1) {
195 perror("Failed locating group 'utmp'");
196 return 1;
197 }
198 printf("utmp is gid %d\n", val);
199
200 - val = fgetint("/etc/passwd", "x:\n", "nobody");
201 + val = fgetint("data/lfile/passwd", "x:\n", "nobody");
202 if (val == -1) {
203 perror("Failed locating user 'nobody'");
204 return 1;
205 diff --git a/tests/which.c b/tests/which.c
206 index 3e74867..a610844 100644
207 --- a/tests/which.c
208 +++ b/tests/which.c
209 @@ -11,17 +11,16 @@ int main(void)
210 int result = 0;
211 size_t i;
212 struct tc test[] = {
213 - { "ls", 1 },
214 - { "free", 1 },
215 - { "modinfo", 1 },
216 - { "useradd", 1 },
217 - { "/usr/bin/which", 1 },
218 - { "/bin/ps aux", 1 },
219 - { "/etc/passwd", 0 },
220 + { "executable", 1 },
221 + { "executable -h", 1 },
222 + { "executable-link", 1 },
223 + { "regular", 0 },
224 + { "ls", 1 },
225 + { "/usr/bin/which", 1 },
226 { NULL, 0 }
227 };
228
229 - setenv("PATH", "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin", 1);
230 + setenv("PATH", "data/which:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin", 1);
231 for (i = 0; test[i].cmd; i++) {
232 char *path;
233
234 --
235 2.26.2
236
+0
-2
debian/patches/series less more
0 0001-Avoid-some-hard-coded-pathes-in-tests.patch
1 tests.patch
+0
-12
debian/patches/tests.patch less more
0 diff --git a/tests/Makefile.am b/tests/Makefile.am
1 index 032dd3c..8bf137d 100644
2 --- a/tests/Makefile.am
3 +++ b/tests/Makefile.am
4 @@ -19,7 +19,6 @@ TESTS += str
5 TESTS += strmatch
6 TESTS += systemf
7 TESTS += touch
8 -TESTS += tempfile
9 TESTS += which
10 TESTS += yorn
11
1010 %:
1111 dh $@ --with autoreconf
1212
13 execute_after_dh_auto_configure:
14 mkdir tests/data/fexist/dir
15 touch tests/data/fexist/regular
16 touch tests/data/fexist/executable
17 chmod +x tests/data/fexist/executable
18 touch tests/data/which/regular
19 touch tests/data/which/executable
20 chmod +x tests/data/which/executable
13 override_dh_auto_configure:
14 dh_auto_configure -- --disable-doxygen-doc
00 #!/bin/sh
11 set -e
22
3 mkdir tests/data/fexist/dir
4 touch tests/data/fexist/regular
5 touch tests/data/fexist/executable
6 chmod +x tests/data/fexist/executable
7 touch tests/data/which/regular
8 touch tests/data/which/executable
9 chmod +x tests/data/which/executable
103 autoreconf -if
114 ./configure
125 make check